You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

382 lines
12 KiB

<?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>