Browse Source

Christoph Hardegen: changed LACP to mode active in DCN lab, added labs

for BGP fabric and VXLAN
master
Sebastian Rieger 8 years ago
parent
commit
22d9352b40
  1. 279
      GIT-VIRL-HS-Fulda/Advanced Computer Networks (Master AI)/advcompnet-lab1-dcn-scenario2-LACP.virl
  2. 329
      GIT-VIRL-HS-Fulda/Advanced Computer Networks (Master AI)/advcompnet-lab1-dcn-scenario3-LACP.virl
  3. 77
      GIT-VIRL-HS-Fulda/Advanced Computer Networks (Master AI)/advcompnet-lab4-bgp.txt
  4. 563
      GIT-VIRL-HS-Fulda/Advanced Computer Networks (Master AI)/advcompnet-lab4-bgp.virl
  5. 64
      GIT-VIRL-HS-Fulda/Advanced Computer Networks (Master AI)/advcompnet-lab5-bgp_vxlan.txt
  6. 382
      GIT-VIRL-HS-Fulda/Advanced Computer Networks (Master AI)/advcompnet-lab5-vxlan-scenario1.virl
  7. 599
      GIT-VIRL-HS-Fulda/Advanced Computer Networks (Master AI)/advcompnet-lab5-vxlan-scenario2.virl

279
GIT-VIRL-HS-Fulda/Advanced Computer Networks (Master AI)/advcompnet-lab1-dcn-scenario2-LACP.virl

@ -0,0 +1,279 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<topology xmlns="http://www.cisco.com/VIRL" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" schemaVersion="0.95" xsi:schemaLocation="http://www.cisco.com/VIRL https://raw.github.com/CiscoVIRL/schema/v0.95/virl.xsd">
<extensions>
<entry key="management_network" type="String">exclusive</entry>
</extensions>
<node name="veos-1" type="SIMPLE" subtype="vEOS" location="413,31" ipv4="10.10.10.10">
<extensions>
<entry key="Auto-generate config" type="Boolean">false</entry>
<entry key="config" type="String">! device: vEOS-1 (vEOS, EOS-4.14.2F)&#xD;
!&#xD;
! boot system flash:/vEOS.swi&#xD;
!&#xD;
! AdvCompNet Lab 1 DCN Scenario 2&#xD;
!&#xD;
transceiver qsfp default-mode 4x10G&#xD;
!&#xD;
hostname vEOS-1&#xD;
!&#xD;
spanning-tree mode rapid-pvst&#xD;
!&#xD;
no aaa root&#xD;
!&#xD;
username admin privilege 15 role network-admin secret 5 $1$BfEAqVKe$0Et37rrWZGmDpeYfmQ8S40&#xD;
username cisco privilege 15 role network-admin secret 5 $1$rQS0W9wP$ZUzVG2XoGCCZCJopFp1aV/&#xD;
!&#xD;
interface Port-Channel12&#xD;
switchport mode trunk&#xD;
!&#xD;
interface Port-Channel13&#xD;
switchport mode trunk&#xD;
!&#xD;
interface Ethernet1&#xD;
switchport mode trunk&#xD;
channel-group 12 mode passive&#xD;
!&#xD;
interface Ethernet2&#xD;
switchport mode trunk&#xD;
channel-group 12 mode passive&#xD;
!&#xD;
interface Ethernet3&#xD;
switchport mode trunk&#xD;
channel-group 13 mode passive&#xD;
!&#xD;
interface Ethernet4&#xD;
switchport mode trunk&#xD;
channel-group 13 mode passive&#xD;
!&#xD;
interface Management1&#xD;
! ip of ma1 configured on launch&#xD;
!&#xD;
interface Vlan1&#xD;
ip address 10.10.10.10/24&#xD;
!&#xD;
no ip routing&#xD;
!&#xD;
!&#xD;
end&#xD;
</entry>
</extensions>
<interface id="0" name="Ethernet1"/>
<interface id="1" name="Ethernet2"/>
<interface id="2" name="Ethernet3"/>
<interface id="3" name="Ethernet4"/>
</node>
<node name="veos-2" type="SIMPLE" subtype="vEOS" location="218,127" ipv4="10.10.10.20">
<extensions>
<entry key="Auto-generate config" type="Boolean">false</entry>
<entry key="config" type="String">! device: vEOS-2 (vEOS, EOS-4.14.2F)&#xD;
!&#xD;
! boot system flash:/vEOS.swi&#xD;
!&#xD;
! AdvCompNet Lab 1 DCN Scenario 2&#xD;
!&#xD;
transceiver qsfp default-mode 4x10G&#xD;
!&#xD;
hostname veos-2&#xD;
!&#xD;
spanning-tree mode rapid-pvst&#xD;
!&#xD;
no aaa root&#xD;
!&#xD;
username admin privilege 15 role network-admin secret 5 $1$yUkG2yoL$0Lq.DaVPw9ECzR4Ew1.wW.&#xD;
username cisco privilege 15 role network-admin secret 5 $1$rQS0W9wP$ZUzVG2XoGCCZCJopFp1aV/&#xD;
!&#xD;
interface Port-Channel12&#xD;
switchport mode trunk&#xD;
!&#xD;
interface Port-Channel23&#xD;
switchport mode trunk&#xD;
!&#xD;
interface Port-Channel24&#xD;
switchport mode trunk&#xD;
!&#xD;
interface Ethernet1&#xD;
switchport mode trunk&#xD;
channel-group 12 mode active&#xD;
!&#xD;
interface Ethernet2&#xD;
switchport mode trunk&#xD;
channel-group 12 mode active&#xD;
!&#xD;
interface Ethernet3&#xD;
switchport mode trunk&#xD;
channel-group 23 mode active&#xD;
!&#xD;
interface Ethernet4&#xD;
switchport mode trunk&#xD;
channel-group 23 mode active&#xD;
!&#xD;
interface Ethernet5&#xD;
switchport mode trunk&#xD;
channel-group 24 mode active&#xD;
!&#xD;
interface Ethernet6&#xD;
switchport mode trunk&#xD;
channel-group 24 mode active&#xD;
!&#xD;
interface Management1&#xD;
! ip of ma1 configured on launch&#xD;
!&#xD;
interface Vlan1&#xD;
ip address 10.10.10.20/24&#xD;
!&#xD;
no ip routing&#xD;
!&#xD;
!&#xD;
end&#xD;
</entry>
</extensions>
<interface id="0" name="Ethernet1"/>
<interface id="1" name="Ethernet2"/>
<interface id="2" name="Ethernet3"/>
<interface id="3" name="Ethernet4"/>
<interface id="4" name="Ethernet5"/>
<interface id="5" name="Ethernet6"/>
</node>
<node name="veos-3" type="SIMPLE" subtype="vEOS" location="611,127" ipv4="10.10.10.30">
<extensions>
<entry key="Auto-generate config" type="Boolean">false</entry>
<entry key="config" type="String">! device: vEOS-3 (vEOS, EOS-4.14.2F)&#xD;
!&#xD;
! boot system flash:/vEOS.swi&#xD;
!&#xD;
! AdvCompNet Lab 1 DCN Scenario 2&#xD;
!&#xD;
transceiver qsfp default-mode 4x10G&#xD;
!&#xD;
hostname veos-3&#xD;
!&#xD;
spanning-tree mode rapid-pvst&#xD;
!&#xD;
no aaa root&#xD;
!&#xD;
username admin privilege 15 role network-admin secret 5 $1$sWptr0oA$lH1Jhpd3Uio1z44ImC83p1&#xD;
username cisco privilege 15 role network-admin secret 5 $1$rQS0W9wP$ZUzVG2XoGCCZCJopFp1aV/&#xD;
!&#xD;
interface Port-Channel13&#xD;
switchport mode trunk&#xD;
!&#xD;
interface Port-Channel23&#xD;
switchport mode trunk&#xD;
!&#xD;
interface Port-Channel34&#xD;
switchport mode trunk&#xD;
!&#xD;
interface Ethernet1&#xD;
switchport mode trunk&#xD;
channel-group 23 mode passive&#xD;
!&#xD;
interface Ethernet2&#xD;
switchport mode trunk&#xD;
channel-group 23 mode passive&#xD;
!&#xD;
interface Ethernet3&#xD;
switchport mode trunk&#xD;
channel-group 13 mode active&#xD;
!&#xD;
interface Ethernet4&#xD;
switchport mode trunk&#xD;
channel-group 13 mode active&#xD;
!&#xD;
interface Ethernet5&#xD;
switchport mode trunk&#xD;
channel-group 34 mode active&#xD;
!&#xD;
interface Ethernet6&#xD;
switchport mode trunk&#xD;
channel-group 34 mode active&#xD;
!&#xD;
interface Management1&#xD;
! ip of ma1 configured on launch&#xD;
!&#xD;
interface Vlan1&#xD;
ip address 10.10.10.30/24&#xD;
!&#xD;
no ip routing&#xD;
!&#xD;
!&#xD;
end&#xD;
</entry>
</extensions>
<interface id="0" name="Ethernet1"/>
<interface id="1" name="Ethernet2"/>
<interface id="2" name="Ethernet3"/>
<interface id="3" name="Ethernet4"/>
<interface id="4" name="Ethernet5"/>
<interface id="5" name="Ethernet6"/>
</node>
<node name="veos-4" type="SIMPLE" subtype="vEOS" location="413,221" ipv4="10.10.10.40">
<extensions>
<entry key="Auto-generate config" type="Boolean">false</entry>
<entry key="config" type="String">! device: vEOS-4 (vEOS, EOS-4.14.2F)&#xD;
!&#xD;
! boot system flash:/vEOS.swi&#xD;
!&#xD;
! AdvCompNet Lab 1 DCN Scenario 2&#xD;
!&#xD;
transceiver qsfp default-mode 4x10G&#xD;
!&#xD;
hostname veos-4&#xD;
!&#xD;
spanning-tree mode rapid-pvst&#xD;
!&#xD;
no aaa root&#xD;
!&#xD;
username admin privilege 15 role network-admin secret 5 $1$1.amWz6M$rWEBTalt7rkz5d8/8dbmU0&#xD;
username cisco privilege 15 role network-admin secret 5 $1$rQS0W9wP$ZUzVG2XoGCCZCJopFp1aV/&#xD;
!&#xD;
interface Port-Channel24&#xD;
switchport mode trunk&#xD;
!&#xD;
interface Port-Channel34&#xD;
switchport mode trunk&#xD;
!&#xD;
interface Ethernet1&#xD;
switchport mode trunk&#xD;
channel-group 24 mode passive&#xD;
!&#xD;
interface Ethernet2&#xD;
switchport mode trunk&#xD;
channel-group 24 mode passive&#xD;
!&#xD;
interface Ethernet3&#xD;
switchport mode trunk&#xD;
channel-group 34 mode passive&#xD;
!&#xD;
interface Ethernet4&#xD;
switchport mode trunk&#xD;
channel-group 34 mode passive&#xD;
!&#xD;
interface Management1&#xD;
! ip of ma1 configured on launch&#xD;
!&#xD;
interface Vlan1&#xD;
ip address 10.10.10.40/24&#xD;
!&#xD;
no ip routing&#xD;
!&#xD;
!&#xD;
end&#xD;
</entry>
</extensions>
<interface id="0" name="Ethernet1"/>
<interface id="1" name="Ethernet2"/>
<interface id="2" name="Ethernet3"/>
<interface id="3" name="Ethernet4"/>
</node>
<annotations/>
<connection dst="/virl:topology/virl:node[1]/virl:interface[1]" src="/virl:topology/virl:node[2]/virl:interface[1]"/>
<connection dst="/virl:topology/virl:node[1]/virl:interface[2]" src="/virl:topology/virl:node[2]/virl:interface[2]"/>
<connection dst="/virl:topology/virl:node[3]/virl:interface[1]" src="/virl:topology/virl:node[2]/virl:interface[3]"/>
<connection dst="/virl:topology/virl:node[3]/virl:interface[2]" src="/virl:topology/virl:node[2]/virl:interface[4]"/>
<connection dst="/virl:topology/virl:node[4]/virl:interface[1]" src="/virl:topology/virl:node[2]/virl:interface[5]"/>
<connection dst="/virl:topology/virl:node[4]/virl:interface[2]" src="/virl:topology/virl:node[2]/virl:interface[6]"/>
<connection dst="/virl:topology/virl:node[3]/virl:interface[3]" src="/virl:topology/virl:node[1]/virl:interface[3]"/>
<connection dst="/virl:topology/virl:node[3]/virl:interface[4]" src="/virl:topology/virl:node[1]/virl:interface[4]"/>
<connection dst="/virl:topology/virl:node[3]/virl:interface[5]" src="/virl:topology/virl:node[4]/virl:interface[3]"/>
<connection dst="/virl:topology/virl:node[3]/virl:interface[6]" src="/virl:topology/virl:node[4]/virl:interface[4]"/>
</topology>

329
GIT-VIRL-HS-Fulda/Advanced Computer Networks (Master AI)/advcompnet-lab1-dcn-scenario3-LACP.virl

@ -0,0 +1,329 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<topology xmlns="http://www.cisco.com/VIRL" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" schemaVersion="0.95" xsi:schemaLocation="http://www.cisco.com/VIRL https://raw.github.com/CiscoVIRL/schema/v0.95/virl.xsd">
<extensions>
<entry key="management_network" type="String">exclusive</entry>
</extensions>
<node name="veos-1" type="SIMPLE" subtype="vEOS" location="413,31" ipv4="10.10.10.10">
<extensions>
<entry key="Auto-generate config" type="Boolean">false</entry>
<entry key="config" type="String">! device: vEOS-1 (vEOS, EOS-4.14.2F)&#xD;
!&#xD;
! boot system flash:/vEOS.swi&#xD;
!&#xD;
! AdvCompNet Lab 1 DCN Scenario 3&#xD;
!&#xD;
transceiver qsfp default-mode 4x10G&#xD;
!&#xD;
hostname vEOS-1&#xD;
!&#xD;
spanning-tree mode rapid-pvst&#xD;
!&#xD;
no aaa root&#xD;
!&#xD;
username admin privilege 15 role network-admin secret 5 $1$BfEAqVKe$0Et37rrWZGmDpeYfmQ8S40&#xD;
username cisco privilege 15 role network-admin secret 5 $1$rQS0W9wP$ZUzVG2XoGCCZCJopFp1aV/&#xD;
!&#xD;
interface Port-Channel11&#xD;
switchport mode trunk&#xD;
!&#xD;
interface Port-Channel12&#xD;
switchport mode trunk&#xD;
!&#xD;
interface Ethernet1&#xD;
switchport mode trunk&#xD;
channel-group 11 mode passive&#xD;
!&#xD;
interface Ethernet2&#xD;
switchport mode trunk&#xD;
channel-group 12 mode passive&#xD;
!&#xD;
interface Ethernet3&#xD;
switchport mode trunk&#xD;
channel-group 11 mode passive&#xD;
!&#xD;
interface Ethernet4&#xD;
switchport mode trunk&#xD;
channel-group 12 mode passive&#xD;
!&#xD;
interface Management1&#xD;
! ip of ma1 configured on launch&#xD;
!&#xD;
interface Vlan1&#xD;
ip address 10.10.10.10/24&#xD;
!&#xD;
no ip routing&#xD;
!&#xD;
!&#xD;
end&#xD;
</entry>
</extensions>
<interface id="0" name="Ethernet1"/>
<interface id="1" name="Ethernet2"/>
<interface id="2" name="Ethernet3"/>
<interface id="3" name="Ethernet4"/>
</node>
<node name="veos-2" type="SIMPLE" subtype="vEOS" location="218,127" ipv4="10.10.10.20">
<extensions>
<entry key="Auto-generate config" type="Boolean">false</entry>
<entry key="config" type="String">! device: vEOS-2 (vEOS, EOS-4.14.2F)&#xD;
!&#xD;
! boot system flash:/vEOS.swi&#xD;
!&#xD;
! AdvCompNet Lab 1 DCN Scenario 3&#xD;
!&#xD;
transceiver qsfp default-mode 4x10G&#xD;
!&#xD;
hostname veos-2&#xD;
!&#xD;
spanning-tree mode rapid-pvst&#xD;
no spanning-tree vlan 99&#xD;
!&#xD;
no aaa root&#xD;
!&#xD;
username admin privilege 15 role network-admin secret 5 $1$yUkG2yoL$0Lq.DaVPw9ECzR4Ew1.wW.&#xD;
username cisco privilege 15 role network-admin secret 5 $1$rQS0W9wP$ZUzVG2XoGCCZCJopFp1aV/&#xD;
!&#xD;
vlan 99&#xD;
name MLAG&#xD;
trunk group mlagpeer&#xD;
!&#xD;
interface Port-Channel11&#xD;
switchport mode trunk&#xD;
mlag 11&#xD;
!&#xD;
interface Port-Channel12&#xD;
switchport mode trunk&#xD;
mlag 12&#xD;
!&#xD;
interface Port-Channel21&#xD;
switchport mode trunk&#xD;
mlag 21&#xD;
!&#xD;
interface Port-Channel22&#xD;
switchport mode trunk&#xD;
mlag 22&#xD;
!&#xD;
interface Port-Channel23&#xD;
switchport mode trunk&#xD;
switchport trunk group mlagpeer&#xD;
!&#xD;
interface Ethernet1&#xD;
switchport mode trunk&#xD;
channel-group 11 mode active&#xD;
!&#xD;
interface Ethernet2&#xD;
switchport mode trunk&#xD;
channel-group 12 mode active&#xD;
!&#xD;
interface Ethernet3&#xD;
switchport mode trunk&#xD;
channel-group 23 mode active&#xD;
!&#xD;
interface Ethernet4&#xD;
switchport mode trunk&#xD;
channel-group 23 mode active&#xD;
!&#xD;
interface Ethernet5&#xD;
switchport mode trunk&#xD;
channel-group 21 mode active&#xD;
!&#xD;
interface Ethernet6&#xD;
switchport mode trunk&#xD;
channel-group 22 mode active&#xD;
!&#xD;
interface Management1&#xD;
! ip of ma1 configured on launch&#xD;
!&#xD;
interface Vlan1&#xD;
ip address 10.10.10.20/24&#xD;
!&#xD;
interface Vlan99&#xD;
ip address 172.23.99.1/30&#xD;
!&#xD;
no ip routing&#xD;
!&#xD;
mlag configuration&#xD;
domain-id mlag1&#xD;
local-interface Vlan99&#xD;
peer-address 172.23.99.2&#xD;
peer-link Port-Channel23&#xD;
!&#xD;
!&#xD;
end&#xD;
</entry>
</extensions>
<interface id="0" name="Ethernet1"/>
<interface id="1" name="Ethernet2"/>
<interface id="2" name="Ethernet3"/>
<interface id="3" name="Ethernet4"/>
<interface id="4" name="Ethernet5"/>
<interface id="5" name="Ethernet6"/>
</node>
<node name="veos-3" type="SIMPLE" subtype="vEOS" location="611,127" ipv4="10.10.10.30">
<extensions>
<entry key="Auto-generate config" type="Boolean">false</entry>
<entry key="config" type="String">! device: vEOS-3 (vEOS, EOS-4.14.2F)&#xD;
!&#xD;
! boot system flash:/vEOS.swi&#xD;
!&#xD;
! AdvCompNet Lab 1 DCN Scenario 3&#xD;
!&#xD;
transceiver qsfp default-mode 4x10G&#xD;
!&#xD;
hostname veos-3&#xD;
!&#xD;
spanning-tree mode rapid-pvst&#xD;
no spanning-tree vlan 99&#xD;
!&#xD;
no aaa root&#xD;
!&#xD;
username admin privilege 15 role network-admin secret 5 $1$sWptr0oA$lH1Jhpd3Uio1z44ImC83p1&#xD;
username cisco privilege 15 role network-admin secret 5 $1$rQS0W9wP$ZUzVG2XoGCCZCJopFp1aV/&#xD;
!&#xD;
vlan 99&#xD;
name MLAG&#xD;
trunk group mlagpeer&#xD;
!&#xD;
interface Port-Channel11&#xD;
switchport mode trunk&#xD;
mlag 11&#xD;
!&#xD;
interface Port-Channel12&#xD;
switchport mode trunk&#xD;
mlag 12&#xD;
!&#xD;
interface Port-Channel21&#xD;
switchport mode trunk&#xD;
mlag 21&#xD;
!&#xD;
interface Port-Channel22&#xD;
switchport mode trunk&#xD;
mlag 22&#xD;
!&#xD;
interface Port-Channel23&#xD;
switchport mode trunk&#xD;
switchport trunk group mlagpeer&#xD;
!&#xD;
interface Ethernet1&#xD;
switchport mode trunk&#xD;
channel-group 23 mode passive&#xD;
!&#xD;
interface Ethernet2&#xD;
switchport mode trunk&#xD;
channel-group 23 mode passive&#xD;
!&#xD;
interface Ethernet3&#xD;
switchport mode trunk&#xD;
channel-group 11 mode active&#xD;
!&#xD;
interface Ethernet4&#xD;
switchport mode trunk&#xD;
channel-group 12 mode active&#xD;
!&#xD;
interface Ethernet5&#xD;
switchport mode trunk&#xD;
channel-group 21 mode active&#xD;
!&#xD;
interface Ethernet6&#xD;
switchport mode trunk&#xD;
channel-group 22 mode active&#xD;
!&#xD;
interface Management1&#xD;
! ip of ma1 configured on launch&#xD;
!&#xD;
interface Vlan1&#xD;
ip address 10.10.10.30/24&#xD;
!&#xD;
interface Vlan99&#xD;
ip address 172.23.99.2/30&#xD;
!&#xD;
no ip routing&#xD;
!&#xD;
mlag configuration&#xD;
domain-id mlag1&#xD;
local-interface Vlan99&#xD;
peer-address 172.23.99.1&#xD;
peer-link Port-Channel23&#xD;
!&#xD;
!&#xD;
end&#xD;
</entry>
</extensions>
<interface id="0" name="Ethernet1"/>
<interface id="1" name="Ethernet2"/>
<interface id="2" name="Ethernet3"/>
<interface id="3" name="Ethernet4"/>
<interface id="4" name="Ethernet5"/>
<interface id="5" name="Ethernet6"/>
</node>
<node name="veos-4" type="SIMPLE" subtype="vEOS" location="413,221" ipv4="10.10.10.40">
<extensions>
<entry key="Auto-generate config" type="Boolean">false</entry>
<entry key="config" type="String">! device: vEOS-4 (vEOS, EOS-4.14.2F)&#xD;
!&#xD;
! boot system flash:/vEOS.swi&#xD;
!&#xD;
! AdvCompNet Lab 1 DCN Scenario 3&#xD;
!&#xD;
transceiver qsfp default-mode 4x10G&#xD;
!&#xD;
hostname veos-4&#xD;
!&#xD;
spanning-tree mode rapid-pvst&#xD;
!&#xD;
no aaa root&#xD;
!&#xD;
username admin privilege 15 role network-admin secret 5 $1$1.amWz6M$rWEBTalt7rkz5d8/8dbmU0&#xD;
username cisco privilege 15 role network-admin secret 5 $1$rQS0W9wP$ZUzVG2XoGCCZCJopFp1aV/&#xD;
!&#xD;
interface Port-Channel21&#xD;
switchport mode trunk&#xD;
!&#xD;
interface Port-Channel22&#xD;
switchport mode trunk&#xD;
!&#xD;
interface Ethernet1&#xD;
switchport mode trunk&#xD;
channel-group 21 mode passive&#xD;
!&#xD;
interface Ethernet2&#xD;
switchport mode trunk&#xD;
channel-group 22 mode passive&#xD;
!&#xD;
interface Ethernet3&#xD;
switchport mode trunk&#xD;
channel-group 21 mode passive&#xD;
!&#xD;
interface Ethernet4&#xD;
switchport mode trunk&#xD;
channel-group 22 mode passive&#xD;
!&#xD;
interface Management1&#xD;
! ip of ma1 configured on launch&#xD;
!&#xD;
interface Vlan1&#xD;
ip address 10.10.10.40/24&#xD;
!&#xD;
no ip routing&#xD;
!&#xD;
!&#xD;
end&#xD;
</entry>
</extensions>
<interface id="0" name="Ethernet1"/>
<interface id="1" name="Ethernet2"/>
<interface id="2" name="Ethernet3"/>
<interface id="3" name="Ethernet4"/>
</node>
<annotations/>
<connection dst="/virl:topology/virl:node[1]/virl:interface[1]" src="/virl:topology/virl:node[2]/virl:interface[1]"/>
<connection dst="/virl:topology/virl:node[1]/virl:interface[2]" src="/virl:topology/virl:node[2]/virl:interface[2]"/>
<connection dst="/virl:topology/virl:node[3]/virl:interface[1]" src="/virl:topology/virl:node[2]/virl:interface[3]"/>
<connection dst="/virl:topology/virl:node[3]/virl:interface[2]" src="/virl:topology/virl:node[2]/virl:interface[4]"/>
<connection dst="/virl:topology/virl:node[4]/virl:interface[1]" src="/virl:topology/virl:node[2]/virl:interface[5]"/>
<connection dst="/virl:topology/virl:node[4]/virl:interface[2]" src="/virl:topology/virl:node[2]/virl:interface[6]"/>
<connection dst="/virl:topology/virl:node[3]/virl:interface[3]" src="/virl:topology/virl:node[1]/virl:interface[3]"/>
<connection dst="/virl:topology/virl:node[3]/virl:interface[4]" src="/virl:topology/virl:node[1]/virl:interface[4]"/>
<connection dst="/virl:topology/virl:node[3]/virl:interface[5]" src="/virl:topology/virl:node[4]/virl:interface[3]"/>
<connection dst="/virl:topology/virl:node[3]/virl:interface[6]" src="/virl:topology/virl:node[4]/virl:interface[4]"/>
</topology>

77
GIT-VIRL-HS-Fulda/Advanced Computer Networks (Master AI)/advcompnet-lab4-bgp.txt

@ -0,0 +1,77 @@
BGP configuration considerations:
- subdivide single "public" AS (100) into multiple internal sub-AS (BGP confederation)
- spine layer: all switches reside in one AS (65000)
- leaf layer: every switch resides in its own AS (65001, 65002, 65003, 65004)
- direct static peering between leaf and spine nodes (interfaces of interconnection network, no loopbacks)
- allow load balancing across multiple BGP paths with equal costs (=> ECMP)
- maximum path count equals number of used spine switches
- only one AS at spine layer => no BGP multipath relaxing necessary
- every BGP router is used as next hop in its advertised/forwarded routing messages
ip subnet for l3-switch interconnection networks: 10.20.30.0/27
-------------------------------------------------
10.20.30.0/30 veos-leaf-1 <> veos-spine-1
.1 veos-spine-1 Ethernet1
.2 veos-leaf-1 Ethernet1
10.20.30.4/30 veos-leaf-1 <> veos-spine-2
.5 veos-spine-2 Ethernet1
.6 veos-leaf-1 Ethernet2
10.20.30.8/30 veos-leaf-2 <> veos-spine-1
.9 veos-spine-1 Ethernet2
.10 veos-leaf-2 Ethernet1
10.20.30.12/30 veos-leaf-2 <> veos-spine-2
.13 veos-spine-2 Ethernet2
.14 veos-leaf-2 Ethernet2
10.20.30.16/30 veos-leaf-3 <> veos-spine-1
.17 veos-spine-1 Ethernet3
.18 veos-leaf-3 Ethernet1
10.20.30.20/30 veos-leaf-3 <> veos-spine-2
.21 veos-spine-2 Ethernet3
.22 veos-leaf-3 Ethernet2
10.20.30.24/30 veos-leaf-4 <> veos-spine-1
.25 veos-spine-1 Ethernet4
.26 veos-leaf-4 Ethernet1
10.20.30.28/30 veos-leaf-4 <> veos-spine-2
.29 veos-spine-2 Ethernet4
.30 veos-leaf-4 Ethernet2
l3-switch networks/ip subnets:
(advertised using BGP)
-------------------------------------------------
veos-leaf-1
172.23.24.0/24
veos-leaf-1 Ethernet3 172.23.24.1
lxc-iperf-1 172.23.24.10
veos-leaf-2
172.23.25.0/24
veos-leaf-2 Ethernet3 172.23.25.1
lxc-iperf-2 172.23.25.10
veos-leaf-3
172.23.26.0/24
veos-leaf-3 Ethernet3 172.23.26.1
lxc-iperf-3 172.23.26.10
veos-leaf-4
172.23.27.0/24
veos-leaf-4 Ethernet3 172.23.27.1
lxc-iperf-4 172.23.27.10

563
GIT-VIRL-HS-Fulda/Advanced Computer Networks (Master AI)/advcompnet-lab4-bgp.virl

@ -0,0 +1,563 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<topology xmlns="http://www.cisco.com/VIRL" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" schemaVersion="0.95" xsi:schemaLocation="http://www.cisco.com/VIRL https://raw.github.com/CiscoVIRL/schema/v0.95/virl.xsd">
<extensions>
<entry key="management_network" type="String">exclusive</entry>
</extensions>
<node name="lxc-iperf-1" type="SIMPLE" subtype="lxc-iperf" location="222,385" ipv4="172.23.24.10">
<extensions>
<entry key="config" type="String">#cloud-config&#xD;
bootcmd:&#xD;
- ln -s -t /etc/rc.d /etc/rc.local&#xD;
hostname: lxc-iperf-1&#xD;
manage_etc_hosts: true&#xD;
runcmd:&#xD;
- systemctl start rc-local&#xD;
- sed -i '/^\s*PasswordAuthentication\s\+no/d' /etc/ssh/sshd_config&#xD;
- echo "UseDNS no" &gt;&gt; /etc/ssh/sshd_config&#xD;
- service ssh restart&#xD;
- service sshd restart&#xD;
users:&#xD;
- default&#xD;
- gecos: User configured by VIRL Configuration Engine 0.20.22&#xD;
lock-passwd: false&#xD;
name: cisco&#xD;
plain-text-passwd: cisco&#xD;
shell: /bin/bash&#xD;
ssh-authorized-keys:&#xD;
- VIRL-USER-SSH-PUBLIC-KEY&#xD;
sudo: ALL=(ALL) ALL&#xD;
write_files:&#xD;
- path: /etc/systemd/system/dhclient@.service&#xD;
content: |&#xD;
[Unit]&#xD;
Description=Run dhclient on %i interface&#xD;
After=network.target&#xD;
[Service]&#xD;
Type=oneshot&#xD;
ExecStart=/sbin/dhclient %i -pf /var/run/dhclient.%i.pid -lf /var/lib/dhclient/dhclient.%i.lease&#xD;
RemainAfterExit=yes&#xD;
owner: root:root&#xD;
permissions: '0644'&#xD;
- path: /etc/rc.local&#xD;
owner: root:root&#xD;
permissions: '0755'&#xD;
content: |-&#xD;
#!/bin/sh&#xD;
ifconfig eth1 up 172.23.24.10 netmask 255.255.255.0
route add default gw 172.23.24.1&#xD;
exit 0&#xD;
</entry>
</extensions>
<interface id="0" name="eth1"/>
</node>
<node name="lxc-iperf-2" type="SIMPLE" subtype="lxc-iperf" location="404,386" ipv4="172.23.25.10">
<extensions>
<entry key="config" type="String">#cloud-config&#xD;
bootcmd:&#xD;
- ln -s -t /etc/rc.d /etc/rc.local&#xD;
hostname: lxc-iperf-2&#xD;
manage_etc_hosts: true&#xD;
runcmd:&#xD;
- systemctl start rc-local&#xD;
- sed -i '/^\s*PasswordAuthentication\s\+no/d' /etc/ssh/sshd_config&#xD;
- echo "UseDNS no" &gt;&gt; /etc/ssh/sshd_config&#xD;
- service ssh restart&#xD;
- service sshd restart&#xD;
users:&#xD;
- default&#xD;
- gecos: User configured by VIRL Configuration Engine 0.20.22&#xD;
lock-passwd: false&#xD;
name: cisco&#xD;
plain-text-passwd: cisco&#xD;
shell: /bin/bash&#xD;
ssh-authorized-keys:&#xD;
- VIRL-USER-SSH-PUBLIC-KEY&#xD;
sudo: ALL=(ALL) ALL&#xD;
write_files:&#xD;
- path: /etc/systemd/system/dhclient@.service&#xD;
content: |&#xD;
[Unit]&#xD;
Description=Run dhclient on %i interface&#xD;
After=network.target&#xD;
[Service]&#xD;
Type=oneshot&#xD;
ExecStart=/sbin/dhclient %i -pf /var/run/dhclient.%i.pid -lf /var/lib/dhclient/dhclient.%i.lease&#xD;
RemainAfterExit=yes&#xD;
owner: root:root&#xD;
permissions: '0644'&#xD;
- path: /etc/rc.local&#xD;
owner: root:root&#xD;
permissions: '0755'&#xD;
content: |-&#xD;
#!/bin/sh&#xD;
ifconfig eth1 up 172.23.25.10 netmask 255.255.255.0
route add default gw 172.23.25.1&#xD;
exit 0&#xD;
</entry>
</extensions>
<interface id="0" name="eth1"/>
</node>
<node name="lxc-iperf-3" type="SIMPLE" subtype="lxc-iperf" location="596,387" ipv4="172.23.26.10">
<extensions>
<entry key="config" type="String">#cloud-config&#xD;
bootcmd:&#xD;
- ln -s -t /etc/rc.d /etc/rc.local&#xD;
hostname: lxc-iperf-3&#xD;
manage_etc_hosts: true&#xD;
runcmd:&#xD;
- systemctl start rc-local&#xD;
- sed -i '/^\s*PasswordAuthentication\s\+no/d' /etc/ssh/sshd_config&#xD;
- echo "UseDNS no" &gt;&gt; /etc/ssh/sshd_config&#xD;
- service ssh restart&#xD;
- service sshd restart&#xD;
users:&#xD;
- default&#xD;
- gecos: User configured by VIRL Configuration Engine 0.20.22&#xD;
lock-passwd: false&#xD;
name: cisco&#xD;
plain-text-passwd: cisco&#xD;
shell: /bin/bash&#xD;
ssh-authorized-keys:&#xD;
- VIRL-USER-SSH-PUBLIC-KEY&#xD;
sudo: ALL=(ALL) ALL&#xD;
write_files:&#xD;
- path: /etc/systemd/system/dhclient@.service&#xD;
content: |&#xD;
[Unit]&#xD;
Description=Run dhclient on %i interface&#xD;
After=network.target&#xD;
[Service]&#xD;
Type=oneshot&#xD;
ExecStart=/sbin/dhclient %i -pf /var/run/dhclient.%i.pid -lf /var/lib/dhclient/dhclient.%i.lease&#xD;
RemainAfterExit=yes&#xD;
owner: root:root&#xD;
permissions: '0644'&#xD;
- path: /etc/rc.local&#xD;
owner: root:root&#xD;
permissions: '0755'&#xD;
content: |-&#xD;
#!/bin/sh&#xD;
ifconfig eth1 up 172.23.26.10 netmask 255.255.255.0
route add default gw 172.23.26.1&#xD;
exit 0&#xD;
</entry>
</extensions>
<interface id="0" name="eth1"/>
</node>
<node name="lxc-iperf-4" type="SIMPLE" subtype="lxc-iperf" location="780,385" ipv4="172.23.27.10">
<extensions>
<entry key="config" type="String">#cloud-config&#xD;
bootcmd:&#xD;
- ln -s -t /etc/rc.d /etc/rc.local&#xD;
hostname: lxc-iperf-4&#xD;
manage_etc_hosts: true&#xD;
runcmd:&#xD;
- systemctl start rc-local&#xD;
- sed -i '/^\s*PasswordAuthentication\s\+no/d' /etc/ssh/sshd_config&#xD;
- echo "UseDNS no" &gt;&gt; /etc/ssh/sshd_config&#xD;
- service ssh restart&#xD;
- service sshd restart&#xD;
users:&#xD;
- default&#xD;
- gecos: User configured by VIRL Configuration Engine 0.20.22&#xD;
lock-passwd: false&#xD;
name: cisco&#xD;
plain-text-passwd: cisco&#xD;
shell: /bin/bash&#xD;
ssh-authorized-keys:&#xD;
- VIRL-USER-SSH-PUBLIC-KEY&#xD;
sudo: ALL=(ALL) ALL&#xD;
write_files:&#xD;
- path: /etc/systemd/system/dhclient@.service&#xD;
content: |&#xD;
[Unit]&#xD;
Description=Run dhclient on %i interface&#xD;
After=network.target&#xD;
[Service]&#xD;
Type=oneshot&#xD;
ExecStart=/sbin/dhclient %i -pf /var/run/dhclient.%i.pid -lf /var/lib/dhclient/dhclient.%i.lease&#xD;
RemainAfterExit=yes&#xD;
owner: root:root&#xD;
permissions: '0644'&#xD;
- path: /etc/rc.local&#xD;
owner: root:root&#xD;
permissions: '0755'&#xD;
content: |-&#xD;
#!/bin/sh&#xD;
ifconfig eth1 up 172.23.27.10 netmask 255.255.255.0
route add default gw 172.23.27.1&#xD;
exit 0&#xD;
</entry>
</extensions>
<interface id="0" name="eth1"/>
</node>
<node name="veos-leaf1" type="SIMPLE" subtype="vEOS" location="222,257">
<extensions>
<entry key="config" type="String">! Command: show running-config
! device: vEOS-3 (vEOS, EOS-4.16.6M)
!
! boot system flash:/vEOS-lab.swi
!&#xD;
! AdvCompNet Lab 4 BGP&#xD;
!
transceiver qsfp default-mode 4x10G
!
hostname veos-leaf1
!
spanning-tree mode rapid-pvst
!
no aaa root
!&#xD;
username admin privilege 15 role network-admin secret 5 $1$yUkG2yoL$0Lq.DaVPw9ECzR4Ew1.wW.&#xD;
username cisco privilege 15 role network-admin secret 5 $1$rQS0W9wP$ZUzVG2XoGCCZCJopFp1aV/&#xD;
!
interface Ethernet1
no switchport
ip address 10.20.30.2/30
!
interface Ethernet2
no switchport
ip address 10.20.30.6/30
!
interface Ethernet3
no switchport
ip address 172.23.24.1/24
!&#xD;
interface Management1&#xD;
! ip of ma1 configured on launch&#xD;
!
ip routing
!
router bgp 65001
maximum-paths 2
router-id 11.11.11.11
bgp confederation identifier 100
bgp confederation peers 65000
network 172.23.24.0 mask 255.255.255.0
neighbor 10.20.30.1 remote-as 65000
neighbor 10.20.30.1 next-hop-self
neighbor 10.20.30.5 remote-as 65000
neighbor 10.20.30.5 next-hop-self
! no synchronization
! no auto-summary
!
!
end</entry>
</extensions>
<interface id="0" name="Ethernet1"/>
<interface id="1" name="Ethernet2"/>
<interface id="2" name="Ethernet3"/>
</node>
<node name="veos-leaf2" type="SIMPLE" subtype="vEOS" location="404,254">
<extensions>
<entry key="config" type="String">! Command: show running-config
! device: vEOS-3 (vEOS, EOS-4.16.6M)
!
! boot system flash:/vEOS-lab.swi
!&#xD;
! AdvCompNet Lab 4 BGP&#xD;
!
transceiver qsfp default-mode 4x10G
!
hostname veos-leaf2
!
spanning-tree mode rapid-pvst
!
no aaa root
!&#xD;
username admin privilege 15 role network-admin secret 5 $1$yUkG2yoL$0Lq.DaVPw9ECzR4Ew1.wW.&#xD;
username cisco privilege 15 role network-admin secret 5 $1$rQS0W9wP$ZUzVG2XoGCCZCJopFp1aV/&#xD;
!
interface Ethernet1
no switchport
ip address 10.20.30.10/30
!
interface Ethernet2
no switchport
ip address 10.20.30.14/30
!
interface Ethernet3
no switchport
ip address 172.23.25.1/24
!&#xD;
interface Management1&#xD;
! ip of ma1 configured on launch&#xD;
!
ip routing
!
router bgp 65002
maximum-paths 2
router-id 22.22.22.22
bgp confederation identifier 100
bgp confederation peers 65000
network 172.23.25.0 mask 255.255.255.0
neighbor 10.20.30.9 remote-as 65000
neighbor 10.20.30.9 next-hop-self
neighbor 10.20.30.13 remote-as 65000
neighbor 10.20.30.13 next-hop-self
! no synchronization
! no auto-summary
!
!
end</entry>
</extensions>
<interface id="0" name="Ethernet1"/>
<interface id="1" name="Ethernet2"/>
<interface id="2" name="Ethernet3"/>
</node>
<node name="veos-leaf3" type="SIMPLE" subtype="vEOS" location="596,256">
<extensions>
<entry key="config" type="String">! Command: show running-config
! device: vEOS-3 (vEOS, EOS-4.16.6M)
!
! boot system flash:/vEOS-lab.swi
!&#xD;
! AdvCompNet Lab 4 BGP&#xD;
!
transceiver qsfp default-mode 4x10G
!
hostname veos-leaf3
!
spanning-tree mode rapid-pvst
!
no aaa root
!&#xD;
username admin privilege 15 role network-admin secret 5 $1$yUkG2yoL$0Lq.DaVPw9ECzR4Ew1.wW.&#xD;
username cisco privilege 15 role network-admin secret 5 $1$rQS0W9wP$ZUzVG2XoGCCZCJopFp1aV/&#xD;
!
interface Ethernet1
no switchport
ip address 10.20.30.18/30
!
interface Ethernet2
no switchport
ip address 10.20.30.22/30
!
interface Ethernet3
no switchport
ip address 172.23.26.1/24
!&#xD;
interface Management1&#xD;
! ip of ma1 configured on launch&#xD;
!
ip routing
!
router bgp 65003
maximum-paths 2
router-id 33.33.33.33
bgp confederation identifier 100
bgp confederation peers 65000
network 172.23.26.0 mask 255.255.255.0
neighbor 10.20.30.17 remote-as 65000
neighbor 10.20.30.17 next-hop-self
neighbor 10.20.30.21 remote-as 65000
neighbor 10.20.30.21 next-hop-self
! no synchronization
! no auto-summary
!
!
end</entry>
</extensions>
<interface id="0" name="Ethernet1"/>
<interface id="1" name="Ethernet2"/>
<interface id="2" name="Ethernet3"/>
</node>
<node name="veos-leaf4" type="SIMPLE" subtype="vEOS" location="780,262">
<extensions>
<entry key="config" type="String">! Command: show running-config
! device: vEOS-3 (vEOS, EOS-4.16.6M)
!
! boot system flash:/vEOS-lab.swi
!&#xD;
! AdvCompNet Lab 4 BGP&#xD;
!
transceiver qsfp default-mode 4x10G
!
hostname veos-leaf4
!
spanning-tree mode rapid-pvst
!
no aaa root
!&#xD;
username admin privilege 15 role network-admin secret 5 $1$yUkG2yoL$0Lq.DaVPw9ECzR4Ew1.wW.&#xD;
username cisco privilege 15 role network-admin secret 5 $1$rQS0W9wP$ZUzVG2XoGCCZCJopFp1aV/&#xD;
!
interface Ethernet1
no switchport
ip address 10.20.30.26/30
!
interface Ethernet2
no switchport
ip address 10.20.30.30/30
!
interface Ethernet3
no switchport
ip address 172.23.27.1/24
!&#xD;
interface Management1&#xD;
! ip of ma1 configured on launch&#xD;
!
ip routing
!
router bgp 65004
maximum-paths 2
router-id 44.44.44.44
bgp confederation identifier 100
bgp confederation peers 65000
network 172.23.27.0 mask 255.255.255.0
neighbor 10.20.30.25 remote-as 65000
neighbor 10.20.30.25 next-hop-self
neighbor 10.20.30.29 remote-as 65000
neighbor 10.20.30.29 next-hop-self
! no synchronization
! no auto-summary
!
!
end</entry>
</extensions>
<interface id="0" name="Ethernet1"/>
<interface id="1" name="Ethernet2"/>
<interface id="2" name="Ethernet3"/>
</node>
<node name="veos-spine1" type="SIMPLE" subtype="vEOS" location="405,64">
<extensions>
<entry key="config" type="String">! Command: show running-config
! device: vEOS-3 (vEOS, EOS-4.16.6M)
!
! boot system flash:/vEOS-lab.swi
!&#xD;
! AdvCompNet Lab 4 BGP&#xD;
!
transceiver qsfp default-mode 4x10G
!
hostname veos-spine1
!
spanning-tree mode rapid-pvst
!
no aaa root
!&#xD;
username admin privilege 15 role network-admin secret 5 $1$yUkG2yoL$0Lq.DaVPw9ECzR4Ew1.wW.&#xD;
username cisco privilege 15 role network-admin secret 5 $1$rQS0W9wP$ZUzVG2XoGCCZCJopFp1aV/&#xD;
!
interface Ethernet1
no switchport
ip address 10.20.30.1/30
!
interface Ethernet2
no switchport
ip address 10.20.30.9/30
!
interface Ethernet3
no switchport
ip address 10.20.30.17/30
!
interface Ethernet4
no switchport
ip address 10.20.30.25/30
!&#xD;
interface Management1&#xD;
! ip of ma1 configured on launch&#xD;
!
ip routing
!
router bgp 65000
router-id 1.1.1.1
bgp confederation identifier 100
bgp confederation peers 65001 65002 65003 65004
neighbor 10.20.30.2 remote-as 65001
neighbor 10.20.30.2 next-hop-self
neighbor 10.20.30.10 remote-as 65002
neighbor 10.20.30.10 next-hop-self
neighbor 10.20.30.18 remote-as 65003
neighbor 10.20.30.18 next-hop-self
neighbor 10.20.30.26 remote-as 65004
neighbor 10.20.30.26 next-hop-self
! no synchronization
! no auto-summary
!
!
end</entry>
</extensions>
<interface id="0" name="Ethernet1"/>
<interface id="1" name="Ethernet2"/>
<interface id="2" name="Ethernet3"/>
<interface id="3" name="Ethernet4"/>
</node>
<node name="veos-spine2" type="SIMPLE" subtype="vEOS" location="597,58">
<extensions>
<entry key="config" type="String">! Command: show running-config
! device: vEOS-3 (vEOS, EOS-4.16.6M)
!
! boot system flash:/vEOS-lab.swi
!&#xD;
! AdvCompNet Lab 4 BGP&#xD;
!
transceiver qsfp default-mode 4x10G
!
hostname veos-spine2
!
spanning-tree mode rapid-pvst
!
no aaa root
!&#xD;
username admin privilege 15 role network-admin secret 5 $1$yUkG2yoL$0Lq.DaVPw9ECzR4Ew1.wW.&#xD;
username cisco privilege 15 role network-admin secret 5 $1$rQS0W9wP$ZUzVG2XoGCCZCJopFp1aV/&#xD;
!
interface Ethernet1
no switchport
ip address 10.20.30.5/30
!
interface Ethernet2
no switchport
ip address 10.20.30.13/30
!
interface Ethernet3
no switchport
ip address 10.20.30.21/30
!
interface Ethernet4
no switchport
ip address 10.20.30.29/30
!&#xD;
interface Management1&#xD;
! ip of ma1 configured on launch&#xD;
!
ip routing
!
router bgp 65000
router-id 2.2.2.2
bgp confederation identifier 100
bgp confederation peers 65001 65002 65003 65004
neighbor 10.20.30.6 remote-as 65001
neighbor 10.20.30.6 next-hop-self
neighbor 10.20.30.14 remote-as 65002
neighbor 10.20.30.14 next-hop-self
neighbor 10.20.30.22 remote-as 65003
neighbor 10.20.30.22 next-hop-self
neighbor 10.20.30.30 remote-as 65004
neighbor 10.20.30.30 next-hop-self
! no synchronization
! no auto-summary
!
!
end</entry>
</extensions>
<interface id="0" name="Ethernet1"/>
<interface id="1" name="Ethernet2"/>
<interface id="2" name="Ethernet3"/>
<interface id="3" name="Ethernet4"/>
</node>
<annotations/>
<connection dst="/virl:topology/virl:node[9]/virl:interface[1]" src="/virl:topology/virl:node[5]/virl:interface[1]"/>
<connection dst="/virl:topology/virl:node[9]/virl:interface[2]" src="/virl:topology/virl:node[6]/virl:interface[1]"/>
<connection dst="/virl:topology/virl:node[9]/virl:interface[3]" src="/virl:topology/virl:node[7]/virl:interface[1]"/>
<connection dst="/virl:topology/virl:node[9]/virl:interface[4]" src="/virl:topology/virl:node[8]/virl:interface[1]"/>
<connection dst="/virl:topology/virl:node[10]/virl:interface[1]" src="/virl:topology/virl:node[5]/virl:interface[2]"/>
<connection dst="/virl:topology/virl:node[10]/virl:interface[2]" src="/virl:topology/virl:node[6]/virl:interface[2]"/>
<connection dst="/virl:topology/virl:node[10]/virl:interface[3]" src="/virl:topology/virl:node[7]/virl:interface[2]"/>
<connection dst="/virl:topology/virl:node[10]/virl:interface[4]" src="/virl:topology/virl:node[8]/virl:interface[2]"/>
<connection dst="/virl:topology/virl:node[5]/virl:interface[3]" src="/virl:topology/virl:node[1]/virl:interface[1]"/>
<connection dst="/virl:topology/virl:node[6]/virl:interface[3]" src="/virl:topology/virl:node[2]/virl:interface[1]"/>
<connection dst="/virl:topology/virl:node[7]/virl:interface[3]" src="/virl:topology/virl:node[3]/virl:interface[1]"/>
<connection dst="/virl:topology/virl:node[8]/virl:interface[3]" src="/virl:topology/virl:node[4]/virl:interface[1]"/>
</topology>

64
GIT-VIRL-HS-Fulda/Advanced Computer Networks (Master AI)/advcompnet-lab5-bgp_vxlan.txt

@ -0,0 +1,64 @@
#####################
# Scenario 1 #
#####################
- every veos device runs BGP and resides in its own AS (no BGP confederation)
- veos-1: AS 101
- veos-2: AS 102
- veos-3: AS 103
- direct static eBGP-Peering between BGP routers
Layer 2 Domains
1. VXLAN tunnel between L2 networks @ veos-1 and veos-3
VNI: 1010
VTEP interface: Loopback0
VTEP addresses: 192.168.0.1/32 (veos-1)
(advertised using BGP) 192.168.0.3/32 (veos-3)
local VLANs: 10 (veos-1 Ethernet1)
10 (veos-3 Ethernet2)
ip subnet: 172.23.24.0/24
172.23.24.10 (lxc-iperf-1)
172.23.24.20 (lxc-iperf-3)
2. VXLAN tunnel between L2 networks @ veos-2 and veos-3
VNI: 2040
VTEP interface: Loopback0
VTEP addresses: 192.168.0.2/32 (veos-2)
(advertised using BGP) 192.168.0.3/32 (veos-3)
local VLANs: 20 (veos-2 Ethernet1)
40 (veos-4 Ethernet1)
ip subnet: 172.23.25.0/24
172.23.25.10 (lxc-iperf-2)
172.23.25.20 (lxc-iperf-4)
#####################
# Scenario 2 #
#####################
BGP configuration @ advcompnet-lab4-bgp
Layer 2 Domains
1. VXLAN tunnel between L2 networks @ veos-leaf-1 and veos-leaf-3
VNI: 1010
VTEP interface: Loopback0
VTEP addresses: 192.168.0.1/32 (veos-leaf-1)
(advertised using BGP) 192.168.0.3/32 (veos-leaf-3)
local VLANs: 10 (veos-leaf-1 Ethernet3)
10 (veos-leaf-3 Ethernet3)
ip subnet: 172.23.24.0/24
172.23.24.10 (lxc-iperf-1)
172.23.24.20 (lxc-iperf-3)
2. VXLAN tunnel between L2 networks @ veos-leaf-2 and veos-leaf-4
VNI: 2040
VTEP interface: Loopback0
VTEP addresses: 192.168.0.2/32 (veos-leaf-2)
(advertised using BGP) 192.168.0.4/32 (veos-leaf-4)
local VLANs: 20 (veos-leaf-2 Ethernet3)
40 (veos-leaf-4 Ethernet3)
ip subnet: 172.23.25.0/24
172.23.25.10 (lxc-iperf-2)
172.23.25.20 (lxc-iperf-4)

382
GIT-VIRL-HS-Fulda/Advanced Computer Networks (Master AI)/advcompnet-lab5-vxlan-scenario1.virl

@ -0,0 +1,382 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<topology xmlns="http://www.cisco.com/VIRL" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" schemaVersion="0.95" xsi:schemaLocation="http://www.cisco.com/VIRL https://raw.github.com/CiscoVIRL/schema/v0.95/virl.xsd">
<extensions>
<entry key="management_network" type="String">exclusive</entry>
</extensions>
<node name="veos-1" type="SIMPLE" subtype="vEOS" location="286,138">
<extensions>
<entry key="Auto-generate config" type="Boolean">false</entry>
<entry key="config" type="String">! Command: show running-config
! device: vEOS-1 (vEOS, EOS-4.16.6M)
!
! boot system flash:/vEOS-lab.swi
!&#xD;
! AdvCompNet Lab 5 VXLAN Scenario 1&#xD;
!
transceiver qsfp default-mode 4x10G
!
hostname veos-1
!
spanning-tree mode rapid-pvst
!
no aaa root
!&#xD;
username admin privilege 15 role network-admin secret 5 $1$yUkG2yoL$0Lq.DaVPw9ECzR4Ew1.wW.&#xD;
username cisco privilege 15 role network-admin secret 5 $1$rQS0W9wP$ZUzVG2XoGCCZCJopFp1aV/&#xD;
!
vlan 10
!
interface Ethernet1
switchport access vlan 10
!
interface Ethernet2
no switchport
ip address 10.20.30.2/30
!
interface Loopback0
ip address 192.168.0.1/32
!&#xD;
interface Management1&#xD;
! ip of ma1 configured on launch&#xD;
!
interface Vxlan1
vxlan source-interface Loopback0
vxlan udp-port 4789
vxlan vlan 10 vni 1010
vxlan vlan 10 flood vtep 192.168.0.3
!
ip routing
!
router bgp 101
router-id 1.1.1.1
neighbor 10.20.30.1 remote-as 102
network 192.168.0.1 mask 255.255.255.255
!
!
end</entry>
</extensions>
<interface id="0" name="Ethernet1"/>
<interface id="1" name="Ethernet2"/>
<interface id="2" name="Ethernet3"/>
<interface id="3" name="Ethernet4"/>
</node>
<node name="veos-2" type="SIMPLE" subtype="vEOS" location="506,214">
<extensions>
<entry key="Auto-generate config" type="Boolean">false</entry>
<entry key="config" type="String">! Command: show running-config
! device: vEOS-2 (vEOS, EOS-4.16.6M)
!
! boot system flash:/vEOS-lab.swi
!&#xD;
! AdvCompNet Lab 5 VXLAN Scenario 1&#xD;
!
transceiver qsfp default-mode 4x10G
!
hostname veos-2
!
spanning-tree mode rapid-pvst
!
no aaa root
!&#xD;
username admin privilege 15 role network-admin secret 5 $1$yUkG2yoL$0Lq.DaVPw9ECzR4Ew1.wW.&#xD;
username cisco privilege 15 role network-admin secret 5 $1$rQS0W9wP$ZUzVG2XoGCCZCJopFp1aV/&#xD;
!
vlan 20
!
interface Ethernet1
switchport access vlan 20
!
interface Ethernet2
no switchport
ip address 10.20.30.1/30
!
interface Ethernet3
no switchport
ip address 10.20.30.5/30
!
interface Loopback0
ip address 192.168.0.2/32
!&#xD;
interface Management1&#xD;
! ip of ma1 configured on launch&#xD;
!
interface Vxlan1
vxlan source-interface Loopback0
vxlan udp-port 4789
vxlan vlan 20 vni 2040
vxlan vlan 20 flood vtep 192.168.0.3
!
ip routing
!
router bgp 102
router-id 2.2.2.2
neighbor 10.20.30.2 remote-as 101
neighbor 10.20.30.6 remote-as 103
network 192.168.0.2 mask 255.255.255.255
!
!
end</entry>
</extensions>
<interface id="0" name="Ethernet1"/>
<interface id="1" name="Ethernet2"/>
<interface id="2" name="Ethernet3"/>
<interface id="3" name="Ethernet4"/>
<interface id="4" name="Ethernet5"/>
<interface id="5" name="Ethernet6"/>
</node>
<node name="veos-3" type="SIMPLE" subtype="vEOS" location="734,139">
<extensions>
<entry key="Auto-generate config" type="Boolean">false</entry>
<entry key="config" type="String">! Command: show running-config
! device: vEOS-3 (vEOS, EOS-4.16.6M)
!
! boot system flash:/vEOS-lab.swi
!&#xD;
! AdvCompNet Lab 5 VXLAN Scenario 1&#xD;
!
transceiver qsfp default-mode 4x10G
!
hostname veos-3
!
spanning-tree mode rapid-pvst
!
no aaa root
!&#xD;
username admin privilege 15 role network-admin secret 5 $1$yUkG2yoL$0Lq.DaVPw9ECzR4Ew1.wW.&#xD;
username cisco privilege 15 role network-admin secret 5 $1$rQS0W9wP$ZUzVG2XoGCCZCJopFp1aV/&#xD;
!
vlan 10,40
!
interface Ethernet1
switchport access vlan 40
!
interface Ethernet2
switchport access vlan 10
!
interface Ethernet3
no switchport
ip address 10.20.30.6/30
!
interface Loopback0
ip address 192.168.0.3/32
!&#xD;
interface Management1&#xD;
! ip of ma1 configured on launch&#xD;
!
interface Vxlan1
vxlan source-interface Loopback0
vxlan udp-port 4789
vxlan vlan 10 vni 1010
vxlan vlan 40 vni 2040
vxlan vlan 10 flood vtep 192.168.0.1
vxlan vlan 40 flood vtep 192.168.0.2
!
ip routing
!
router bgp 103
router-id 3.3.3.3
neighbor 10.20.30.5 remote-as 102
network 192.168.0.3 mask 255.255.255.255
!
!
end</entry>
</extensions>
<interface id="0" name="Ethernet1"/>
<interface id="1" name="Ethernet2"/>
<interface id="2" name="Ethernet3"/>
<interface id="3" name="Ethernet4"/>
<interface id="4" name="Ethernet5"/>
<interface id="5" name="Ethernet6"/>
</node>
<node name="lxc-iperf-1" type="SIMPLE" subtype="lxc-iperf" location="155,134" ipv4="172.23.24.10">
<extensions>
<entry key="config" type="String">#cloud-config&#xD;
bootcmd:&#xD;
- ln -s -t /etc/rc.d /etc/rc.local&#xD;
hostname: lxc-iperf-1&#xD;
manage_etc_hosts: true&#xD;
runcmd:&#xD;
- systemctl start rc-local&#xD;
- sed -i '/^\s*PasswordAuthentication\s\+no/d' /etc/ssh/sshd_config&#xD;
- echo "UseDNS no" &gt;&gt; /etc/ssh/sshd_config&#xD;
- service ssh restart&#xD;
- service sshd restart&#xD;
users:&#xD;
- default&#xD;
- gecos: User configured by VIRL Configuration Engine 0.20.22&#xD;
lock-passwd: false&#xD;
name: cisco&#xD;
plain-text-passwd: cisco&#xD;
shell: /bin/bash&#xD;
ssh-authorized-keys:&#xD;
- VIRL-USER-SSH-PUBLIC-KEY&#xD;
sudo: ALL=(ALL) ALL&#xD;
write_files:&#xD;
- path: /etc/systemd/system/dhclient@.service&#xD;
content: |&#xD;
[Unit]&#xD;
Description=Run dhclient on %i interface&#xD;
After=network.target&#xD;
[Service]&#xD;
Type=oneshot&#xD;
ExecStart=/sbin/dhclient %i -pf /var/run/dhclient.%i.pid -lf /var/lib/dhclient/dhclient.%i.lease&#xD;
RemainAfterExit=yes&#xD;
owner: root:root&#xD;
permissions: '0644'&#xD;
- path: /etc/rc.local&#xD;
owner: root:root&#xD;
permissions: '0755'&#xD;
content: |-&#xD;
#!/bin/sh&#xD;
ifconfig eth1 up 172.23.24.10 netmask 255.255.255.0&#xD;
exit 0&#xD;
</entry>
</extensions>
<interface id="0" name="eth1"/>
</node>
<node name="lxc-iperf-2" type="SIMPLE" subtype="lxc-iperf" location="506,44" ipv4="172.23.25.10">
<extensions>
<entry key="config" type="String">#cloud-config&#xD;
bootcmd:&#xD;
- ln -s -t /etc/rc.d /etc/rc.local&#xD;
hostname: lxc-iperf-2&#xD;
manage_etc_hosts: true&#xD;
runcmd:&#xD;
- systemctl start rc-local&#xD;
- sed -i '/^\s*PasswordAuthentication\s\+no/d' /etc/ssh/sshd_config&#xD;
- echo "UseDNS no" &gt;&gt; /etc/ssh/sshd_config&#xD;
- service ssh restart&#xD;
- service sshd restart&#xD;
users:&#xD;
- default&#xD;
- gecos: User configured by VIRL Configuration Engine 0.20.22&#xD;
lock-passwd: false&#xD;
name: cisco&#xD;
plain-text-passwd: cisco&#xD;
shell: /bin/bash&#xD;
ssh-authorized-keys:&#xD;
- VIRL-USER-SSH-PUBLIC-KEY&#xD;
sudo: ALL=(ALL) ALL&#xD;
write_files:&#xD;
- path: /etc/systemd/system/dhclient@.service&#xD;
content: |&#xD;
[Unit]&#xD;
Description=Run dhclient on %i interface&#xD;
After=network.target&#xD;
[Service]&#xD;
Type=oneshot&#xD;
ExecStart=/sbin/dhclient %i -pf /var/run/dhclient.%i.pid -lf /var/lib/dhclient/dhclient.%i.lease&#xD;
RemainAfterExit=yes&#xD;
owner: root:root&#xD;
permissions: '0644'&#xD;
- path: /etc/rc.local&#xD;
owner: root:root&#xD;
permissions: '0755'&#xD;
content: |-&#xD;
#!/bin/sh&#xD;
ifconfig eth1 up 172.23.25.10 netmask 255.255.255.0&#xD;
exit 0&#xD;
</entry>
</extensions>
<interface id="0" name="eth1"/>
</node>
<node name="lxc-iperf-4" type="SIMPLE" subtype="lxc-iperf" location="854,212" ipv4="172.23.25.20">
<extensions>
<entry key="config" type="String">#cloud-config&#xD;
bootcmd:&#xD;
- ln -s -t /etc/rc.d /etc/rc.local&#xD;
hostname: lxc-iperf-4&#xD;
manage_etc_hosts: true&#xD;
runcmd:&#xD;
- systemctl start rc-local&#xD;
- sed -i '/^\s*PasswordAuthentication\s\+no/d' /etc/ssh/sshd_config&#xD;
- echo "UseDNS no" &gt;&gt; /etc/ssh/sshd_config&#xD;
- service ssh restart&#xD;
- service sshd restart&#xD;
users:&#xD;
- default&#xD;
- gecos: User configured by VIRL Configuration Engine 0.20.22&#xD;
lock-passwd: false&#xD;
name: cisco&#xD;
plain-text-passwd: cisco&#xD;
shell: /bin/bash&#xD;
ssh-authorized-keys:&#xD;
- VIRL-USER-SSH-PUBLIC-KEY&#xD;
sudo: ALL=(ALL) ALL&#xD;
write_files:&#xD;
- path: /etc/systemd/system/dhclient@.service&#xD;
content: |&#xD;
[Unit]&#xD;
Description=Run dhclient on %i interface&#xD;
After=network.target&#xD;
[Service]&#xD;
Type=oneshot&#xD;
ExecStart=/sbin/dhclient %i -pf /var/run/dhclient.%i.pid -lf /var/lib/dhclient/dhclient.%i.lease&#xD;
RemainAfterExit=yes&#xD;
owner: root:root&#xD;
permissions: '0644'&#xD;
- path: /etc/rc.local&#xD;
owner: root:root&#xD;
permissions: '0755'&#xD;
content: |-&#xD;
#!/bin/sh&#xD;
ifconfig eth1 up 172.23.25.20 netmask 255.255.255.0&#xD;
exit 0&#xD;
</entry>
</extensions>
<interface id="0" name="eth1"/>
</node>
<node name="lxc-iperf-3" type="SIMPLE" subtype="lxc-iperf" location="853,80" ipv4="172.23.24.20">
<extensions>
<entry key="config" type="String">#cloud-config&#xD;
bootcmd:&#xD;
- ln -s -t /etc/rc.d /etc/rc.local&#xD;
hostname: lxc-iperf-3&#xD;
manage_etc_hosts: true&#xD;
runcmd:&#xD;
- systemctl start rc-local&#xD;
- sed -i '/^\s*PasswordAuthentication\s\+no/d' /etc/ssh/sshd_config&#xD;
- echo "UseDNS no" &gt;&gt; /etc/ssh/sshd_config&#xD;
- service ssh restart&#xD;
- service sshd restart&#xD;
users:&#xD;
- default&#xD;
- gecos: User configured by VIRL Configuration Engine 0.20.22&#xD;
lock-passwd: false&#xD;
name: cisco&#xD;
plain-text-passwd: cisco&#xD;
shell: /bin/bash&#xD;
ssh-authorized-keys:&#xD;
- VIRL-USER-SSH-PUBLIC-KEY&#xD;
sudo: ALL=(ALL) ALL&#xD;
write_files:&#xD;
- path: /etc/systemd/system/dhclient@.service&#xD;
content: |&#xD;
[Unit]&#xD;
Description=Run dhclient on %i interface&#xD;
After=network.target&#xD;
[Service]&#xD;
Type=oneshot&#xD;
ExecStart=/sbin/dhclient %i -pf /var/run/dhclient.%i.pid -lf /var/lib/dhclient/dhclient.%i.lease&#xD;
RemainAfterExit=yes&#xD;
owner: root:root&#xD;
permissions: '0644'&#xD;
- path: /etc/rc.local&#xD;
owner: root:root&#xD;
permissions: '0755'&#xD;
content: |-&#xD;
#!/bin/sh&#xD;
ifconfig eth1 up 172.23.24.20 netmask 255.255.255.0&#xD;
exit 0&#xD;
</entry>
</extensions>
<interface id="0" name="eth1"/>
</node>
<annotations/>
<connection dst="/virl:topology/virl:node[2]/virl:interface[2]" src="/virl:topology/virl:node[1]/virl:interface[2]"/>
<connection dst="/virl:topology/virl:node[3]/virl:interface[3]" src="/virl:topology/virl:node[2]/virl:interface[3]"/>
<connection dst="/virl:topology/virl:node[1]/virl:interface[1]" src="/virl:topology/virl:node[4]/virl:interface[1]"/>
<connection dst="/virl:topology/virl:node[2]/virl:interface[1]" src="/virl:topology/virl:node[5]/virl:interface[1]"/>
<connection dst="/virl:topology/virl:node[6]/virl:interface[1]" src="/virl:topology/virl:node[3]/virl:interface[1]"/>
<connection dst="/virl:topology/virl:node[3]/virl:interface[2]" src="/virl:topology/virl:node[7]/virl:interface[1]"/>
</topology>

599
GIT-VIRL-HS-Fulda/Advanced Computer Networks (Master AI)/advcompnet-lab5-vxlan-scenario2.virl

@ -0,0 +1,599 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<topology xmlns="http://www.cisco.com/VIRL" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" schemaVersion="0.95" xsi:schemaLocation="http://www.cisco.com/VIRL https://raw.github.com/CiscoVIRL/schema/v0.95/virl.xsd">
<extensions>
<entry key="management_network" type="String">exclusive</entry>
</extensions>
<node name="lxc-iperf-1" type="SIMPLE" subtype="lxc-iperf" location="269,421" ipv4="172.23.24.10">
<extensions>
<entry key="config" type="String">#cloud-config&#xD;
bootcmd:&#xD;
- ln -s -t /etc/rc.d /etc/rc.local&#xD;
hostname: lxc-iperf-1&#xD;
manage_etc_hosts: true&#xD;
runcmd:&#xD;
- systemctl start rc-local&#xD;
- sed -i '/^\s*PasswordAuthentication\s\+no/d' /etc/ssh/sshd_config&#xD;
- echo "UseDNS no" &gt;&gt; /etc/ssh/sshd_config&#xD;
- service ssh restart&#xD;
- service sshd restart&#xD;
users:&#xD;
- default&#xD;
- gecos: User configured by VIRL Configuration Engine 0.20.22&#xD;
lock-passwd: false&#xD;
name: cisco&#xD;
plain-text-passwd: cisco&#xD;
shell: /bin/bash&#xD;
ssh-authorized-keys:&#xD;
- VIRL-USER-SSH-PUBLIC-KEY&#xD;
sudo: ALL=(ALL) ALL&#xD;
write_files:&#xD;
- path: /etc/systemd/system/dhclient@.service&#xD;
content: |&#xD;
[Unit]&#xD;
Description=Run dhclient on %i interface&#xD;
After=network.target&#xD;
[Service]&#xD;
Type=oneshot&#xD;
ExecStart=/sbin/dhclient %i -pf /var/run/dhclient.%i.pid -lf /var/lib/dhclient/dhclient.%i.lease&#xD;
RemainAfterExit=yes&#xD;
owner: root:root&#xD;
permissions: '0644'&#xD;
- path: /etc/rc.local&#xD;
owner: root:root&#xD;
permissions: '0755'&#xD;
content: |-&#xD;
#!/bin/sh&#xD;
ifconfig eth1 up 172.23.24.10 netmask 255.255.255.0&#xD;
exit 0&#xD;
</entry>
</extensions>
<interface id="0" name="eth1"/>
</node>
<node name="lxc-iperf-2" type="SIMPLE" subtype="lxc-iperf" location="448,421" ipv4="172.23.25.10">
<extensions>
<entry key="config" type="String">#cloud-config&#xD;
bootcmd:&#xD;
- ln -s -t /etc/rc.d /etc/rc.local&#xD;
hostname: lxc-iperf-2&#xD;
manage_etc_hosts: true&#xD;
runcmd:&#xD;
- systemctl start rc-local&#xD;
- sed -i '/^\s*PasswordAuthentication\s\+no/d' /etc/ssh/sshd_config&#xD;
- echo "UseDNS no" &gt;&gt; /etc/ssh/sshd_config&#xD;
- service ssh restart&#xD;
- service sshd restart&#xD;
users:&#xD;
- default&#xD;
- gecos: User configured by VIRL Configuration Engine 0.20.22&#xD;
lock-passwd: false&#xD;
name: cisco&#xD;
plain-text-passwd: cisco&#xD;
shell: /bin/bash&#xD;
ssh-authorized-keys:&#xD;
- VIRL-USER-SSH-PUBLIC-KEY&#xD;
sudo: ALL=(ALL) ALL&#xD;
write_files:&#xD;
- path: /etc/systemd/system/dhclient@.service&#xD;
content: |&#xD;
[Unit]&#xD;
Description=Run dhclient on %i interface&#xD;
After=network.target&#xD;
[Service]&#xD;
Type=oneshot&#xD;
ExecStart=/sbin/dhclient %i -pf /var/run/dhclient.%i.pid -lf /var/lib/dhclient/dhclient.%i.lease&#xD;
RemainAfterExit=yes&#xD;
owner: root:root&#xD;
permissions: '0644'&#xD;
- path: /etc/rc.local&#xD;
owner: root:root&#xD;
permissions: '0755'&#xD;
content: |-&#xD;
#!/bin/sh&#xD;
ifconfig eth1 up 172.23.25.10 netmask 255.255.255.0&#xD;
exit 0&#xD;
</entry>
</extensions>
<interface id="0" name="eth1"/>
</node>
<node name="lxc-iperf-3" type="SIMPLE" subtype="lxc-iperf" location="640,420" ipv4="172.23.24.20">
<extensions>
<entry key="config" type="String">#cloud-config&#xD;
bootcmd:&#xD;
- ln -s -t /etc/rc.d /etc/rc.local&#xD;
hostname: lxc-iperf-3&#xD;
manage_etc_hosts: true&#xD;
runcmd:&#xD;
- systemctl start rc-local&#xD;
- sed -i '/^\s*PasswordAuthentication\s\+no/d' /etc/ssh/sshd_config&#xD;
- echo "UseDNS no" &gt;&gt; /etc/ssh/sshd_config&#xD;
- service ssh restart&#xD;
- service sshd restart&#xD;
users:&#xD;
- default&#xD;
- gecos: User configured by VIRL Configuration Engine 0.20.22&#xD;
lock-passwd: false&#xD;
name: cisco&#xD;
plain-text-passwd: cisco&#xD;
shell: /bin/bash&#xD;
ssh-authorized-keys:&#xD;
- VIRL-USER-SSH-PUBLIC-KEY&#xD;
sudo: ALL=(ALL) ALL&#xD;
write_files:&#xD;
- path: /etc/systemd/system/dhclient@.service&#xD;
content: |&#xD;
[Unit]&#xD;
Description=Run dhclient on %i interface&#xD;
After=network.target&#xD;
[Service]&#xD;
Type=oneshot&#xD;
ExecStart=/sbin/dhclient %i -pf /var/run/dhclient.%i.pid -lf /var/lib/dhclient/dhclient.%i.lease&#xD;
RemainAfterExit=yes&#xD;
owner: root:root&#xD;
permissions: '0644'&#xD;
- path: /etc/rc.local&#xD;
owner: root:root&#xD;
permissions: '0755'&#xD;
content: |-&#xD;
#!/bin/sh&#xD;
ifconfig eth1 up 172.23.24.20 netmask 255.255.255.0&#xD;
exit 0&#xD;
</entry>
</extensions>
<interface id="0" name="eth1"/>
</node>
<node name="lxc-iperf-4" type="SIMPLE" subtype="lxc-iperf" location="825,419" ipv4="172.23.25.20">
<extensions>
<entry key="config" type="String">#cloud-config&#xD;
bootcmd:&#xD;
- ln -s -t /etc/rc.d /etc/rc.local&#xD;
hostname: lxc-iperf-4&#xD;
manage_etc_hosts: true&#xD;
runcmd:&#xD;
- systemctl start rc-local&#xD;
- sed -i '/^\s*PasswordAuthentication\s\+no/d' /etc/ssh/sshd_config&#xD;
- echo "UseDNS no" &gt;&gt; /etc/ssh/sshd_config&#xD;
- service ssh restart&#xD;
- service sshd restart&#xD;
users:&#xD;
- default&#xD;
- gecos: User configured by VIRL Configuration Engine 0.20.22&#xD;
lock-passwd: false&#xD;
name: cisco&#xD;
plain-text-passwd: cisco&#xD;
shell: /bin/bash&#xD;
ssh-authorized-keys:&#xD;
- VIRL-USER-SSH-PUBLIC-KEY&#xD;
sudo: ALL=(ALL) ALL&#xD;
write_files:&#xD;
- path: /etc/systemd/system/dhclient@.service&#xD;
content: |&#xD;
[Unit]&#xD;
Description=Run dhclient on %i interface&#xD;
After=network.target&#xD;
[Service]&#xD;
Type=oneshot&#xD;
ExecStart=/sbin/dhclient %i -pf /var/run/dhclient.%i.pid -lf /var/lib/dhclient/dhclient.%i.lease&#xD;
RemainAfterExit=yes&#xD;
owner: root:root&#xD;
permissions: '0644'&#xD;
- path: /etc/rc.local&#xD;
owner: root:root&#xD;
permissions: '0755'&#xD;
content: |-&#xD;
#!/bin/sh&#xD;
ifconfig eth1 up 172.23.25.20 netmask 255.255.255.0&#xD;
exit 0&#xD;
</entry>
</extensions>
<interface id="0" name="eth1"/>
</node>
<node name="veos-leaf1" type="SIMPLE" subtype="vEOS" location="269,294">
<extensions>
<entry key="config" type="String">! Command: show running-config
! device: vEOS-3 (vEOS, EOS-4.16.6M)
!
! boot system flash:/vEOS-lab.swi
!&#xD;
! AdvCompNet Lab 5 VXLAN Scenario 2&#xD;
!
transceiver qsfp default-mode 4x10G
!
hostname veos-leaf1
!
spanning-tree mode rapid-pvst
!
no aaa root
!&#xD;
username admin privilege 15 role network-admin secret 5 $1$yUkG2yoL$0Lq.DaVPw9ECzR4Ew1.wW.&#xD;
username cisco privilege 15 role network-admin secret 5 $1$rQS0W9wP$ZUzVG2XoGCCZCJopFp1aV/&#xD;
!
vlan 10
!
interface Ethernet1
no switchport
ip address 10.20.30.2/30
!
interface Ethernet2
no switchport
ip address 10.20.30.6/30
!
interface Ethernet3
switchport access vlan 10
!
interface Loopback0
ip address 192.168.0.1/32
!&#xD;
interface Management1&#xD;
! ip of ma1 configured on launch&#xD;
!
interface Vxlan1
vxlan source-interface Loopback0
vxlan udp-port 4789
vxlan vlan 10 vni 1010
vxlan vlan 10 flood vtep 192.168.0.3
!
ip routing
!
router bgp 65001
maximum-paths 2
router-id 11.11.11.11
bgp confederation identifier 100
bgp confederation peers 65000
network 192.168.0.1 mask 255.255.255.255
neighbor 10.20.30.1 remote-as 65000
neighbor 10.20.30.1 next-hop-self
neighbor 10.20.30.5 remote-as 65000
neighbor 10.20.30.5 next-hop-self
! no synchronization
! no auto-summary
!
!
end</entry>
</extensions>
<interface id="0" name="Ethernet1"/>
<interface id="1" name="Ethernet2"/>
<interface id="2" name="Ethernet3"/>
</node>
<node name="veos-leaf2" type="SIMPLE" subtype="vEOS" location="448,289">
<extensions>
<entry key="config" type="String">! Command: show running-config
! device: vEOS-3 (vEOS, EOS-4.16.6M)
!
! boot system flash:/vEOS-lab.swi
!&#xD;
! AdvCompNet Lab 5 VXLAN Scenario 2&#xD;
!
transceiver qsfp default-mode 4x10G
!
hostname veos-leaf2
!
spanning-tree mode rapid-pvst
!
no aaa root
!&#xD;
username admin privilege 15 role network-admin secret 5 $1$yUkG2yoL$0Lq.DaVPw9ECzR4Ew1.wW.&#xD;
username cisco privilege 15 role network-admin secret 5 $1$rQS0W9wP$ZUzVG2XoGCCZCJopFp1aV/&#xD;
!
vlan 20
!
interface Ethernet1
no switchport
ip address 10.20.30.10/30
!
interface Ethernet2
no switchport
ip address 10.20.30.14/30
!
interface Ethernet3
switchport access vlan 20
!
interface Loopback0
ip address 192.168.0.2/32
!&#xD;
interface Management1&#xD;
! ip of ma1 configured on launch&#xD;
!
interface Vxlan1
vxlan source-interface Loopback0
vxlan udp-port 4789
vxlan vlan 20 vni 2040
vxlan vlan 20 flood vtep 192.168.0.4
!
ip routing
!
router bgp 65002
maximum-paths 2
router-id 22.22.22.22
bgp confederation identifier 100
bgp confederation peers 65000
network 192.168.0.2 mask 255.255.255.255
neighbor 10.20.30.9 remote-as 65000
neighbor 10.20.30.9 next-hop-self
neighbor 10.20.30.13 remote-as 65000
neighbor 10.20.30.13 next-hop-self
! no synchronization
! no auto-summary
!
!
end</entry>
</extensions>
<interface id="0" name="Ethernet1"/>
<interface id="1" name="Ethernet2"/>
<interface id="2" name="Ethernet3"/>
</node>
<node name="veos-leaf3" type="SIMPLE" subtype="vEOS" location="640,291">
<extensions>
<entry key="config" type="String">! Command: show running-config
! device: vEOS-3 (vEOS, EOS-4.16.6M)
!
! boot system flash:/vEOS-lab.swi
!&#xD;
! AdvCompNet Lab 5 VXLAN Scenario 2&#xD;
!
transceiver qsfp default-mode 4x10G
!
hostname veos-leaf3
!
spanning-tree mode rapid-pvst
!
no aaa root
!&#xD;
username admin privilege 15 role network-admin secret 5 $1$yUkG2yoL$0Lq.DaVPw9ECzR4Ew1.wW.&#xD;
username cisco privilege 15 role network-admin secret 5 $1$rQS0W9wP$ZUzVG2XoGCCZCJopFp1aV/&#xD;
!
vlan 10
!
interface Ethernet1
no switchport
ip address 10.20.30.18/30
!
interface Ethernet2
no switchport
ip address 10.20.30.22/30
!
interface Ethernet3
switchport access vlan 10
!
interface Loopback0
ip address 192.168.0.3/32
!&#xD;
interface Management1&#xD;
! ip of ma1 configured on launch&#xD;
!
interface Vxlan1
vxlan source-interface Loopback0
vxlan udp-port 4789
vxlan vlan 10 vni 1010
vxlan vlan 10 flood vtep 192.168.0.1
!
ip routing
!
router bgp 65003
maximum-paths 2
router-id 33.33.33.33
bgp confederation identifier 100
bgp confederation peers 65000
network 192.168.0.3 mask 255.255.255.255
neighbor 10.20.30.17 remote-as 65000
neighbor 10.20.30.17 next-hop-self
neighbor 10.20.30.21 remote-as 65000
neighbor 10.20.30.21 next-hop-self
! no synchronization
! no auto-summary
!
!
end</entry>
</extensions>
<interface id="0" name="Ethernet1"/>
<interface id="1" name="Ethernet2"/>
<interface id="2" name="Ethernet3"/>
</node>
<node name="veos-leaf4" type="SIMPLE" subtype="vEOS" location="825,287">
<extensions>
<entry key="config" type="String">! Command: show running-config
! device: vEOS-3 (vEOS, EOS-4.16.6M)
!
! boot system flash:/vEOS-lab.swi
!&#xD;
! AdvCompNet Lab 5 VXLAN Scenario 2&#xD;
!
transceiver qsfp default-mode 4x10G
!
hostname veos-leaf4
!
spanning-tree mode rapid-pvst
!
no aaa root
!&#xD;
username admin privilege 15 role network-admin secret 5 $1$yUkG2yoL$0Lq.DaVPw9ECzR4Ew1.wW.&#xD;
username cisco privilege 15 role network-admin secret 5 $1$rQS0W9wP$ZUzVG2XoGCCZCJopFp1aV/&#xD;
!
vlan 40
!
interface Ethernet1
no switchport
ip address 10.20.30.26/30
!
interface Ethernet2
no switchport
ip address 10.20.30.30/30
!
interface Ethernet3
switchport access vlan 40
!
interface Loopback0
ip address 192.168.0.4/32
!&#xD;
interface Management1&#xD;
! ip of ma1 configured on launch&#xD;
!
interface Vxlan1
vxlan source-interface Loopback0
vxlan udp-port 4789
vxlan vlan 40 vni 2040
vxlan vlan 40 flood vtep 192.168.0.2
!
ip routing
!
router bgp 65004
maximum-paths 2
router-id 44.44.44.44
bgp confederation identifier 100
bgp confederation peers 65000
network 192.168.0.4 mask 255.255.255.255
neighbor 10.20.30.25 remote-as 65000
neighbor 10.20.30.25 next-hop-self
neighbor 10.20.30.29 remote-as 65000
neighbor 10.20.30.29 next-hop-self
! no synchronization
! no auto-summary
!
!
end</entry>
</extensions>
<interface id="0" name="Ethernet1"/>
<interface id="1" name="Ethernet2"/>
<interface id="2" name="Ethernet3"/>
</node>
<node name="veos-spine1" type="SIMPLE" subtype="vEOS" location="449,87">
<extensions>
<entry key="config" type="String">! Command: show running-config
! device: vEOS-3 (vEOS, EOS-4.16.6M)
!
! boot system flash:/vEOS-lab.swi
!&#xD;
! AdvCompNet Lab 5 VXLAN Scenario 2&#xD;
!
transceiver qsfp default-mode 4x10G
!
hostname veos-spine1
!
spanning-tree mode rapid-pvst
!
no aaa root
!&#xD;
username admin privilege 15 role network-admin secret 5 $1$yUkG2yoL$0Lq.DaVPw9ECzR4Ew1.wW.&#xD;
username cisco privilege 15 role network-admin secret 5 $1$rQS0W9wP$ZUzVG2XoGCCZCJopFp1aV/&#xD;
!
interface Ethernet1
no switchport
ip address 10.20.30.1/30
!
interface Ethernet2
no switchport
ip address 10.20.30.9/30
!
interface Ethernet3
no switchport
ip address 10.20.30.17/30
!
interface Ethernet4
no switchport
ip address 10.20.30.25/30
!&#xD;
interface Management1&#xD;
! ip of ma1 configured on launch&#xD;
!
ip routing
!
router bgp 65000
router-id 1.1.1.1
bgp confederation identifier 100
bgp confederation peers 65001 65002 65003 65004
neighbor 10.20.30.2 remote-as 65001
neighbor 10.20.30.2 next-hop-self
neighbor 10.20.30.10 remote-as 65002
neighbor 10.20.30.10 next-hop-self
neighbor 10.20.30.18 remote-as 65003
neighbor 10.20.30.18 next-hop-self
neighbor 10.20.30.26 remote-as 65004
neighbor 10.20.30.26 next-hop-self
! no synchronization
! no auto-summary
!
!
end</entry>
</extensions>
<interface id="0" name="Ethernet1"/>
<interface id="1" name="Ethernet2"/>
<interface id="2" name="Ethernet3"/>
<interface id="3" name="Ethernet4"/>
</node>
<node name="veos-spine2" type="SIMPLE" subtype="vEOS" location="640,88">
<extensions>
<entry key="config" type="String">! Command: show running-config
! device: vEOS-3 (vEOS, EOS-4.16.6M)
!
! boot system flash:/vEOS-lab.swi
!&#xD;
! AdvCompNet Lab 5 VXLAN Scenario 2&#xD;
!
transceiver qsfp default-mode 4x10G
!
hostname veos-spine2
!
spanning-tree mode rapid-pvst
!
no aaa root
!&#xD;
username admin privilege 15 role network-admin secret 5 $1$yUkG2yoL$0Lq.DaVPw9ECzR4Ew1.wW.&#xD;
username cisco privilege 15 role network-admin secret 5 $1$rQS0W9wP$ZUzVG2XoGCCZCJopFp1aV/&#xD;
!
interface Ethernet1
no switchport
ip address 10.20.30.5/30
!
interface Ethernet2
no switchport
ip address 10.20.30.13/30
!
interface Ethernet3
no switchport
ip address 10.20.30.21/30
!
interface Ethernet4
no switchport
ip address 10.20.30.29/30
!&#xD;
interface Management1&#xD;
! ip of ma1 configured on launch&#xD;
!
ip routing
!
router bgp 65000
router-id 2.2.2.2
bgp confederation identifier 100
bgp confederation peers 65001 65002 65003 65004
neighbor 10.20.30.6 remote-as 65001
neighbor 10.20.30.6 next-hop-self
neighbor 10.20.30.14 remote-as 65002
neighbor 10.20.30.14 next-hop-self
neighbor 10.20.30.22 remote-as 65003
neighbor 10.20.30.22 next-hop-self
neighbor 10.20.30.30 remote-as 65004
neighbor 10.20.30.30 next-hop-self
! no synchronization
! no auto-summary
!
!
end</entry>
</extensions>
<interface id="0" name="Ethernet1"/>
<interface id="1" name="Ethernet2"/>
<interface id="2" name="Ethernet3"/>
<interface id="3" name="Ethernet4"/>
</node>
<annotations/>
<connection dst="/virl:topology/virl:node[9]/virl:interface[1]" src="/virl:topology/virl:node[5]/virl:interface[1]"/>
<connection dst="/virl:topology/virl:node[9]/virl:interface[2]" src="/virl:topology/virl:node[6]/virl:interface[1]"/>
<connection dst="/virl:topology/virl:node[9]/virl:interface[3]" src="/virl:topology/virl:node[7]/virl:interface[1]"/>
<connection dst="/virl:topology/virl:node[9]/virl:interface[4]" src="/virl:topology/virl:node[8]/virl:interface[1]"/>
<connection dst="/virl:topology/virl:node[10]/virl:interface[1]" src="/virl:topology/virl:node[5]/virl:interface[2]"/>
<connection dst="/virl:topology/virl:node[10]/virl:interface[2]" src="/virl:topology/virl:node[6]/virl:interface[2]"/>
<connection dst="/virl:topology/virl:node[10]/virl:interface[3]" src="/virl:topology/virl:node[7]/virl:interface[2]"/>
<connection dst="/virl:topology/virl:node[10]/virl:interface[4]" src="/virl:topology/virl:node[8]/virl:interface[2]"/>
<connection dst="/virl:topology/virl:node[5]/virl:interface[3]" src="/virl:topology/virl:node[1]/virl:interface[1]"/>
<connection dst="/virl:topology/virl:node[6]/virl:interface[3]" src="/virl:topology/virl:node[2]/virl:interface[1]"/>
<connection dst="/virl:topology/virl:node[7]/virl:interface[3]" src="/virl:topology/virl:node[3]/virl:interface[1]"/>
<connection dst="/virl:topology/virl:node[8]/virl:interface[3]" src="/virl:topology/virl:node[4]/virl:interface[1]"/>
</topology>
Loading…
Cancel
Save