exclusive
false
! Command: show running-config
! device: vEOS-1 (vEOS, EOS-4.16.6M)
!
! boot system flash:/vEOS-lab.swi
!
! AdvCompNet Lab 5 VXLAN Scenario 1
!
transceiver qsfp default-mode 4x10G
!
hostname veos-1
!
spanning-tree mode rapid-pvst
!
no aaa root
!
username admin privilege 15 role network-admin secret 5 $1$yUkG2yoL$0Lq.DaVPw9ECzR4Ew1.wW.
username cisco privilege 15 role network-admin secret 5 $1$rQS0W9wP$ZUzVG2XoGCCZCJopFp1aV/
!
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
!
interface Management1
! ip of ma1 configured on launch
!
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
false
! Command: show running-config
! device: vEOS-2 (vEOS, EOS-4.16.6M)
!
! boot system flash:/vEOS-lab.swi
!
! AdvCompNet Lab 5 VXLAN Scenario 1
!
transceiver qsfp default-mode 4x10G
!
hostname veos-2
!
spanning-tree mode rapid-pvst
!
no aaa root
!
username admin privilege 15 role network-admin secret 5 $1$yUkG2yoL$0Lq.DaVPw9ECzR4Ew1.wW.
username cisco privilege 15 role network-admin secret 5 $1$rQS0W9wP$ZUzVG2XoGCCZCJopFp1aV/
!
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
!
interface Management1
! ip of ma1 configured on launch
!
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
false
! Command: show running-config
! device: vEOS-3 (vEOS, EOS-4.16.6M)
!
! boot system flash:/vEOS-lab.swi
!
! AdvCompNet Lab 5 VXLAN Scenario 1
!
transceiver qsfp default-mode 4x10G
!
hostname veos-3
!
spanning-tree mode rapid-pvst
!
no aaa root
!
username admin privilege 15 role network-admin secret 5 $1$yUkG2yoL$0Lq.DaVPw9ECzR4Ew1.wW.
username cisco privilege 15 role network-admin secret 5 $1$rQS0W9wP$ZUzVG2XoGCCZCJopFp1aV/
!
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
!
interface Management1
! ip of ma1 configured on launch
!
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
#cloud-config
bootcmd:
- ln -s -t /etc/rc.d /etc/rc.local
hostname: lxc-iperf-1
manage_etc_hosts: true
runcmd:
- systemctl start rc-local
- sed -i '/^\s*PasswordAuthentication\s\+no/d' /etc/ssh/sshd_config
- echo "UseDNS no" >> /etc/ssh/sshd_config
- service ssh restart
- service sshd restart
users:
- default
- gecos: User configured by VIRL Configuration Engine 0.20.22
lock-passwd: false
name: cisco
plain-text-passwd: cisco
shell: /bin/bash
ssh-authorized-keys:
- VIRL-USER-SSH-PUBLIC-KEY
sudo: ALL=(ALL) ALL
write_files:
- path: /etc/systemd/system/dhclient@.service
content: |
[Unit]
Description=Run dhclient on %i interface
After=network.target
[Service]
Type=oneshot
ExecStart=/sbin/dhclient %i -pf /var/run/dhclient.%i.pid -lf /var/lib/dhclient/dhclient.%i.lease
RemainAfterExit=yes
owner: root:root
permissions: '0644'
- path: /etc/rc.local
owner: root:root
permissions: '0755'
content: |-
#!/bin/sh
ifconfig eth1 up 172.23.24.10 netmask 255.255.255.0
exit 0
#cloud-config
bootcmd:
- ln -s -t /etc/rc.d /etc/rc.local
hostname: lxc-iperf-2
manage_etc_hosts: true
runcmd:
- systemctl start rc-local
- sed -i '/^\s*PasswordAuthentication\s\+no/d' /etc/ssh/sshd_config
- echo "UseDNS no" >> /etc/ssh/sshd_config
- service ssh restart
- service sshd restart
users:
- default
- gecos: User configured by VIRL Configuration Engine 0.20.22
lock-passwd: false
name: cisco
plain-text-passwd: cisco
shell: /bin/bash
ssh-authorized-keys:
- VIRL-USER-SSH-PUBLIC-KEY
sudo: ALL=(ALL) ALL
write_files:
- path: /etc/systemd/system/dhclient@.service
content: |
[Unit]
Description=Run dhclient on %i interface
After=network.target
[Service]
Type=oneshot
ExecStart=/sbin/dhclient %i -pf /var/run/dhclient.%i.pid -lf /var/lib/dhclient/dhclient.%i.lease
RemainAfterExit=yes
owner: root:root
permissions: '0644'
- path: /etc/rc.local
owner: root:root
permissions: '0755'
content: |-
#!/bin/sh
ifconfig eth1 up 172.23.25.10 netmask 255.255.255.0
exit 0
#cloud-config
bootcmd:
- ln -s -t /etc/rc.d /etc/rc.local
hostname: lxc-iperf-4
manage_etc_hosts: true
runcmd:
- systemctl start rc-local
- sed -i '/^\s*PasswordAuthentication\s\+no/d' /etc/ssh/sshd_config
- echo "UseDNS no" >> /etc/ssh/sshd_config
- service ssh restart
- service sshd restart
users:
- default
- gecos: User configured by VIRL Configuration Engine 0.20.22
lock-passwd: false
name: cisco
plain-text-passwd: cisco
shell: /bin/bash
ssh-authorized-keys:
- VIRL-USER-SSH-PUBLIC-KEY
sudo: ALL=(ALL) ALL
write_files:
- path: /etc/systemd/system/dhclient@.service
content: |
[Unit]
Description=Run dhclient on %i interface
After=network.target
[Service]
Type=oneshot
ExecStart=/sbin/dhclient %i -pf /var/run/dhclient.%i.pid -lf /var/lib/dhclient/dhclient.%i.lease
RemainAfterExit=yes
owner: root:root
permissions: '0644'
- path: /etc/rc.local
owner: root:root
permissions: '0755'
content: |-
#!/bin/sh
ifconfig eth1 up 172.23.25.20 netmask 255.255.255.0
exit 0
#cloud-config
bootcmd:
- ln -s -t /etc/rc.d /etc/rc.local
hostname: lxc-iperf-3
manage_etc_hosts: true
runcmd:
- systemctl start rc-local
- sed -i '/^\s*PasswordAuthentication\s\+no/d' /etc/ssh/sshd_config
- echo "UseDNS no" >> /etc/ssh/sshd_config
- service ssh restart
- service sshd restart
users:
- default
- gecos: User configured by VIRL Configuration Engine 0.20.22
lock-passwd: false
name: cisco
plain-text-passwd: cisco
shell: /bin/bash
ssh-authorized-keys:
- VIRL-USER-SSH-PUBLIC-KEY
sudo: ALL=(ALL) ALL
write_files:
- path: /etc/systemd/system/dhclient@.service
content: |
[Unit]
Description=Run dhclient on %i interface
After=network.target
[Service]
Type=oneshot
ExecStart=/sbin/dhclient %i -pf /var/run/dhclient.%i.pid -lf /var/lib/dhclient/dhclient.%i.lease
RemainAfterExit=yes
owner: root:root
permissions: '0644'
- path: /etc/rc.local
owner: root:root
permissions: '0755'
content: |-
#!/bin/sh
ifconfig eth1 up 172.23.24.20 netmask 255.255.255.0
exit 0