From 951df184d68ee0bf1761e04af53fc460ef0d982a Mon Sep 17 00:00:00 2001 From: Sebastian Rieger Date: Thu, 24 Nov 2016 18:01:02 +0100 Subject: [PATCH] new fabricpath topo test --- .../!Experiments/new-fabricpath-topo.virl | 920 ++++++++++++++++++ 1 file changed, 920 insertions(+) create mode 100644 GIT-VIRL-HS-Fulda/!Experiments/new-fabricpath-topo.virl diff --git a/GIT-VIRL-HS-Fulda/!Experiments/new-fabricpath-topo.virl b/GIT-VIRL-HS-Fulda/!Experiments/new-fabricpath-topo.virl new file mode 100644 index 0000000..b77856f --- /dev/null +++ b/GIT-VIRL-HS-Fulda/!Experiments/new-fabricpath-topo.virl @@ -0,0 +1,920 @@ + + + + true + false + exclusive + + + + + ! NX-OSv Config generated on 2016-11-23 15:38 +! by autonetkit_0.23.5 +! +version 6.2(1) +license grace-period +! +hostname nxosv-spine1 +install feature-set fabricpath +vdc nxosv-spine1 id 1 + allocate interface Ethernet2/1-48 + allocate interface Ethernet3/1-48 + limit-resource vlan minimum 16 maximum 4094 + limit-resource vrf minimum 2 maximum 4096 + limit-resource port-channel minimum 0 maximum 768 + limit-resource u4route-mem minimum 96 maximum 96 + limit-resource u6route-mem minimum 24 maximum 24 + limit-resource m4route-mem minimum 58 maximum 58 + limit-resource m6route-mem minimum 8 maximum 8 + +feature telnet +feature-set fabricpath + + +username adminbackup password 5 ! role network-operator +username admin password 5 $1$KuOSBsvW$Cy0TSD..gEBGBPjzpDgf51 role network-admin +username cisco password 5 $1$Nk7ZkwH0$fyiRmMMfIheqE3BqvcL0C1 role network-operator +username cisco role network-admin +username lab password 5 $1$buoy/oqy$.EXQz8rCn72ii8qtdldj00 role network-admin +no password strength-check +ip domain-lookup +copp profile strict +snmp-server user lab network-admin auth md5 0x5ceb414591539ee35159fca86fdfa101 priv 0x5ceb414591539ee35159fca86fdfa101 localizedkey +snmp-server user admin network-admin auth md5 0x328945d53e05e8e7207f8c20b142f0b7 priv 0x328945d53e05e8e7207f8c20b142f0b7 localizedkey +snmp-server user cisco network-operator auth md5 0x55b3c64a53fb95518e75358ee75e82e9 priv 0x55b3c64a53fb95518e75358ee75e82e9 localizedkey +snmp-server user cisco network-admin +rmon event 1 log trap public description FATAL(1) owner PMON@FATAL +rmon event 2 log trap public description CRITICAL(2) owner PMON@CRITICAL +rmon event 3 log trap public description ERROR(3) owner PMON@ERROR +rmon event 4 log trap public description WARNING(4) owner PMON@WARNING +rmon event 5 log trap public description INFORMATION(5) owner PMON@INFO + + +vlan 1,10 +vlan 10 + mode fabricpath + +vrf context management +hardware forwarding unicast trace + +interface Loopback0 + description Loopback + ip address 192.168.0.1/32 + +interface Ethernet2/1 + description to nxosv-leaf1 + switchport + switchport mode fabricpath + no shutdown + +interface Ethernet2/2 + description to nxosv-leaf2 + switchport + switchport mode fabricpath + no shutdown + +interface Ethernet2/3 + description to nxosv-leaf3 + switchport + switchport mode fabricpath + no shutdown + +interface Ethernet2/4 + description to nxosv-leaf4 + switchport + switchport mode fabricpath + no shutdown + +interface mgmt0 + description OOB Management + ! Configured on launch + no ip address + duplex full + no shutdown + vrf member management + +fabricpath domain default + + +line console +line vty + + +! FabricPath stuff + +!install feature-set fabricpath +!feature-set fabricpath +!fabricpath domain default + +!vlan 1,10 +!vlan 10 +! mode fabricpath + +! Additionally for every interface going to the fabric +! +!interface Ethernet2/1 +! switchport +! switchport mode fabricpath +! no shutdown + +! Additionally on leaf nodes for every interface going to connected hosts +! +!interface Ethernet2/3 +! switchport +! switchport access vlan 10 +! no shutdown + + + + + + + + + + ! NX-OSv Config generated on 2016-11-23 15:38 +! by autonetkit_0.23.5 +! +version 6.2(1) +license grace-period +! +hostname nxosv-spine2 +install feature-set fabricpath +vdc nxosv-spine2 id 1 + allocate interface Ethernet2/1-48 + allocate interface Ethernet3/1-48 + limit-resource vlan minimum 16 maximum 4094 + limit-resource vrf minimum 2 maximum 4096 + limit-resource port-channel minimum 0 maximum 768 + limit-resource u4route-mem minimum 96 maximum 96 + limit-resource u6route-mem minimum 24 maximum 24 + limit-resource m4route-mem minimum 58 maximum 58 + limit-resource m6route-mem minimum 8 maximum 8 + +feature telnet +feature-set fabricpath + + +username adminbackup password 5 ! role network-operator +username admin password 5 $1$KuOSBsvW$Cy0TSD..gEBGBPjzpDgf51 role network-admin +username cisco password 5 $1$Nk7ZkwH0$fyiRmMMfIheqE3BqvcL0C1 role network-operator +username cisco role network-admin +username lab password 5 $1$buoy/oqy$.EXQz8rCn72ii8qtdldj00 role network-admin +no password strength-check +ip domain-lookup +copp profile strict +snmp-server user lab network-admin auth md5 0x5ceb414591539ee35159fca86fdfa101 priv 0x5ceb414591539ee35159fca86fdfa101 localizedkey +snmp-server user admin network-admin auth md5 0x328945d53e05e8e7207f8c20b142f0b7 priv 0x328945d53e05e8e7207f8c20b142f0b7 localizedkey +snmp-server user cisco network-operator auth md5 0x55b3c64a53fb95518e75358ee75e82e9 priv 0x55b3c64a53fb95518e75358ee75e82e9 localizedkey +snmp-server user cisco network-admin +rmon event 1 log trap public description FATAL(1) owner PMON@FATAL +rmon event 2 log trap public description CRITICAL(2) owner PMON@CRITICAL +rmon event 3 log trap public description ERROR(3) owner PMON@ERROR +rmon event 4 log trap public description WARNING(4) owner PMON@WARNING +rmon event 5 log trap public description INFORMATION(5) owner PMON@INFO + + +vlan 1,10 +vlan 10 + mode fabricpath + + +vrf context management +hardware forwarding unicast trace + +interface Loopback0 + description Loopback + ip address 192.168.0.6/32 + +interface Ethernet2/1 + description to nxosv-leaf1 + switchport + switchport mode fabricpath + no shutdown + +interface Ethernet2/2 + description to nxosv-leaf2 + switchport + switchport mode fabricpath + no shutdown + +interface Ethernet2/3 + description to nxosv-leaf3 + switchport + switchport mode fabricpath + no shutdown + +interface Ethernet2/4 + description to nxosv-leaf4 + switchport + switchport mode fabricpath + no shutdown + +interface mgmt0 + description OOB Management + ! Configured on launch + no ip address + duplex full + no shutdown + vrf member management + +fabricpath domain default + + +line console +line vty + + +! FabricPath stuff + +!install feature-set fabricpath +!feature-set fabricpath +!fabricpath domain default + +!vlan 1,10 +!vlan 10 +! mode fabricpath + +! Additionally for every interface going to the fabric +! +!interface Ethernet2/1 +! switchport +! switchport mode fabricpath +! no shutdown + +! Additionally on leaf nodes for every interface going to connected hosts +! +!interface Ethernet2/3 +! switchport +! switchport access vlan 10 +! no shutdown + + + + + + + + + + ! NX-OSv Config generated on 2016-11-23 15:38 +! by autonetkit_0.23.5 +! +version 6.2(1) +license grace-period +! +hostname nxosv-leaf1 +install feature-set fabricpath +vdc nxosv-leaf1 id 1 + allocate interface Ethernet2/1-48 + allocate interface Ethernet3/1-48 + limit-resource vlan minimum 16 maximum 4094 + limit-resource vrf minimum 2 maximum 4096 + limit-resource port-channel minimum 0 maximum 768 + limit-resource u4route-mem minimum 96 maximum 96 + limit-resource u6route-mem minimum 24 maximum 24 + limit-resource m4route-mem minimum 58 maximum 58 + limit-resource m6route-mem minimum 8 maximum 8 + +feature telnet +feature-set fabricpath + +username adminbackup password 5 ! role network-operator +username admin password 5 $1$KuOSBsvW$Cy0TSD..gEBGBPjzpDgf51 role network-admin +username cisco password 5 $1$Nk7ZkwH0$fyiRmMMfIheqE3BqvcL0C1 role network-operator +username cisco role network-admin +username lab password 5 $1$buoy/oqy$.EXQz8rCn72ii8qtdldj00 role network-admin +no password strength-check +ip domain-lookup +copp profile strict +snmp-server user lab network-admin auth md5 0x5ceb414591539ee35159fca86fdfa101 priv 0x5ceb414591539ee35159fca86fdfa101 localizedkey +snmp-server user admin network-admin auth md5 0x328945d53e05e8e7207f8c20b142f0b7 priv 0x328945d53e05e8e7207f8c20b142f0b7 localizedkey +snmp-server user cisco network-operator auth md5 0x55b3c64a53fb95518e75358ee75e82e9 priv 0x55b3c64a53fb95518e75358ee75e82e9 localizedkey +snmp-server user cisco network-admin +rmon event 1 log trap public description FATAL(1) owner PMON@FATAL +rmon event 2 log trap public description CRITICAL(2) owner PMON@CRITICAL +rmon event 3 log trap public description ERROR(3) owner PMON@ERROR +rmon event 4 log trap public description WARNING(4) owner PMON@WARNING +rmon event 5 log trap public description INFORMATION(5) owner PMON@INFO + +vlan 1,10 +vlan 10 + mode fabricpath + +vrf context management +hardware forwarding unicast trace + +interface Loopback0 + description Loopback + ip address 192.168.0.2/32 + +interface Ethernet2/1 + description to nxosv-spine1 + switchport + switchport mode fabricpath + no shutdown + +interface Ethernet2/2 + description to nxosv-spine2 + switchport + switchport mode fabricpath + no shutdown + +interface Ethernet2/3 + description to lxc-iperf-1 + switchport + switchport access vlan 10 + no shutdown + +interface mgmt0 + description OOB Management + ! Configured on launch + no ip address + duplex full + no shutdown + vrf member management + +fabricpath domain default + + +line console +line vty + + +! FabricPath stuff + +!install feature-set fabricpath +!feature-set fabricpath +!fabricpath domain default + +!vlan 1,10 +!vlan 10 +! mode fabricpath + +! Additionally for every interface going to the fabric +! +!interface Ethernet2/1 +! switchport +! switchport mode fabricpath +! no shutdown + +! Additionally on leaf nodes for every interface going to connected hosts +! +!interface Ethernet2/3 +! switchport +! switchport access vlan 10 +! no shutdown + + + + + + + + + ! NX-OSv Config generated on 2016-11-23 15:38 +! by autonetkit_0.23.5 +! +version 6.2(1) +license grace-period +! +hostname nxosv-leaf2 +install feature-set fabricpath +vdc nxosv-leaf2 id 1 + allocate interface Ethernet2/1-48 + allocate interface Ethernet3/1-48 + limit-resource vlan minimum 16 maximum 4094 + limit-resource vrf minimum 2 maximum 4096 + limit-resource port-channel minimum 0 maximum 768 + limit-resource u4route-mem minimum 96 maximum 96 + limit-resource u6route-mem minimum 24 maximum 24 + limit-resource m4route-mem minimum 58 maximum 58 + limit-resource m6route-mem minimum 8 maximum 8 + +feature telnet +feature-set fabricpath + + +username adminbackup password 5 ! role network-operator +username admin password 5 $1$KuOSBsvW$Cy0TSD..gEBGBPjzpDgf51 role network-admin +username cisco password 5 $1$Nk7ZkwH0$fyiRmMMfIheqE3BqvcL0C1 role network-operator +username cisco role network-admin +username lab password 5 $1$buoy/oqy$.EXQz8rCn72ii8qtdldj00 role network-admin +no password strength-check +ip domain-lookup +copp profile strict +snmp-server user lab network-admin auth md5 0x5ceb414591539ee35159fca86fdfa101 priv 0x5ceb414591539ee35159fca86fdfa101 localizedkey +snmp-server user admin network-admin auth md5 0x328945d53e05e8e7207f8c20b142f0b7 priv 0x328945d53e05e8e7207f8c20b142f0b7 localizedkey +snmp-server user cisco network-operator auth md5 0x55b3c64a53fb95518e75358ee75e82e9 priv 0x55b3c64a53fb95518e75358ee75e82e9 localizedkey +snmp-server user cisco network-admin +rmon event 1 log trap public description FATAL(1) owner PMON@FATAL +rmon event 2 log trap public description CRITICAL(2) owner PMON@CRITICAL +rmon event 3 log trap public description ERROR(3) owner PMON@ERROR +rmon event 4 log trap public description WARNING(4) owner PMON@WARNING +rmon event 5 log trap public description INFORMATION(5) owner PMON@INFO + + +vlan 1,10 +vlan 10 + mode fabricpath + +vrf context management +hardware forwarding unicast trace + +interface Loopback0 + description Loopback + ip address 192.168.0.5/32 + +interface Ethernet2/1 + description to nxosv-spine1 + switchport + switchport mode fabricpath + no shutdown + +interface Ethernet2/2 + description to nxosv-spine2 + switchport + switchport mode fabricpath + no shutdown + +interface Ethernet2/3 + description to lxc-iperf-2 + switchport + switchport access vlan 10 + no shutdown + +interface mgmt0 + description OOB Management + ! Configured on launch + no ip address + duplex full + no shutdown + vrf member management + +fabricpath domain default + + +line console +line vty + + +! FabricPath stuff + +!install feature-set fabricpath +!feature-set fabricpath +!fabricpath domain default + +!vlan 1,10 +!vlan 10 +! mode fabricpath + +! Additionally for every interface going to the fabric +! +!interface Ethernet2/1 +! switchport +! switchport mode fabricpath +! no shutdown + +! Additionally on leaf nodes for every interface going to connected hosts +! +!interface Ethernet2/3 +! switchport +! switchport access vlan 10 +! no shutdown + + + + + + + + + ! NX-OSv Config generated on 2016-11-23 15:38 +! by autonetkit_0.23.5 +! +version 6.2(1) +license grace-period +! +hostname nxosv-leaf3 +install feature-set fabricpath +vdc nxosv-leaf3 id 1 + allocate interface Ethernet2/1-48 + allocate interface Ethernet3/1-48 + limit-resource vlan minimum 16 maximum 4094 + limit-resource vrf minimum 2 maximum 4096 + limit-resource port-channel minimum 0 maximum 768 + limit-resource u4route-mem minimum 96 maximum 96 + limit-resource u6route-mem minimum 24 maximum 24 + limit-resource m4route-mem minimum 58 maximum 58 + limit-resource m6route-mem minimum 8 maximum 8 + +feature telnet +feature-set fabricpath + +username adminbackup password 5 ! role network-operator +username admin password 5 $1$KuOSBsvW$Cy0TSD..gEBGBPjzpDgf51 role network-admin +username cisco password 5 $1$Nk7ZkwH0$fyiRmMMfIheqE3BqvcL0C1 role network-operator +username cisco role network-admin +username lab password 5 $1$buoy/oqy$.EXQz8rCn72ii8qtdldj00 role network-admin +no password strength-check +ip domain-lookup +copp profile strict +snmp-server user lab network-admin auth md5 0x5ceb414591539ee35159fca86fdfa101 priv 0x5ceb414591539ee35159fca86fdfa101 localizedkey +snmp-server user admin network-admin auth md5 0x328945d53e05e8e7207f8c20b142f0b7 priv 0x328945d53e05e8e7207f8c20b142f0b7 localizedkey +snmp-server user cisco network-operator auth md5 0x55b3c64a53fb95518e75358ee75e82e9 priv 0x55b3c64a53fb95518e75358ee75e82e9 localizedkey +snmp-server user cisco network-admin +rmon event 1 log trap public description FATAL(1) owner PMON@FATAL +rmon event 2 log trap public description CRITICAL(2) owner PMON@CRITICAL +rmon event 3 log trap public description ERROR(3) owner PMON@ERROR +rmon event 4 log trap public description WARNING(4) owner PMON@WARNING +rmon event 5 log trap public description INFORMATION(5) owner PMON@INFO + + +vlan 1,10 +vlan 10 + mode fabricpath + +vrf context management +hardware forwarding unicast trace + +interface Loopback0 + description Loopback + ip address 192.168.0.8/32 + +interface Ethernet2/1 + description to nxosv-spine1 + switchport + switchport mode fabricpath + no shutdown + +interface Ethernet2/2 + description to nxosv-spine2 + switchport + switchport mode fabricpath + no shutdown + +interface Ethernet2/3 + description to lxc-iperf-3 + switchport + switchport access vlan 10 + no shutdown + +interface mgmt0 + description OOB Management + ! Configured on launch + no ip address + duplex full + no shutdown + vrf member management + +fabricpath domain default + + +line console +line vty + + +! FabricPath stuff + +!install feature-set fabricpath +!feature-set fabricpath +!fabricpath domain default + +!vlan 1,10 +!vlan 10 +! mode fabricpath + +! Additionally for every interface going to the fabric +! +!interface Ethernet2/1 +! switchport +! switchport mode fabricpath +! no shutdown + +! Additionally on leaf nodes for every interface going to connected hosts +! +!interface Ethernet2/3 +! switchport +! switchport access vlan 10 +! no shutdown + + + + + + + + + ! NX-OSv Config generated on 2016-11-23 15:38 +! by autonetkit_0.23.5 +! +version 6.2(1) +license grace-period +! +hostname nxosv-leaf4 +install feature-set fabricpath +vdc nxosv-leaf4 id 1 + allocate interface Ethernet2/1-48 + allocate interface Ethernet3/1-48 + limit-resource vlan minimum 16 maximum 4094 + limit-resource vrf minimum 2 maximum 4096 + limit-resource port-channel minimum 0 maximum 768 + limit-resource u4route-mem minimum 96 maximum 96 + limit-resource u6route-mem minimum 24 maximum 24 + limit-resource m4route-mem minimum 58 maximum 58 + limit-resource m6route-mem minimum 8 maximum 8 + +feature telnet +feature-set fabricpath + + +username adminbackup password 5 ! role network-operator +username admin password 5 $1$KuOSBsvW$Cy0TSD..gEBGBPjzpDgf51 role network-admin +username cisco password 5 $1$Nk7ZkwH0$fyiRmMMfIheqE3BqvcL0C1 role network-operator +username cisco role network-admin +username lab password 5 $1$buoy/oqy$.EXQz8rCn72ii8qtdldj00 role network-admin +no password strength-check +ip domain-lookup +copp profile strict +snmp-server user lab network-admin auth md5 0x5ceb414591539ee35159fca86fdfa101 priv 0x5ceb414591539ee35159fca86fdfa101 localizedkey +snmp-server user admin network-admin auth md5 0x328945d53e05e8e7207f8c20b142f0b7 priv 0x328945d53e05e8e7207f8c20b142f0b7 localizedkey +snmp-server user cisco network-operator auth md5 0x55b3c64a53fb95518e75358ee75e82e9 priv 0x55b3c64a53fb95518e75358ee75e82e9 localizedkey +snmp-server user cisco network-admin +rmon event 1 log trap public description FATAL(1) owner PMON@FATAL +rmon event 2 log trap public description CRITICAL(2) owner PMON@CRITICAL +rmon event 3 log trap public description ERROR(3) owner PMON@ERROR +rmon event 4 log trap public description WARNING(4) owner PMON@WARNING +rmon event 5 log trap public description INFORMATION(5) owner PMON@INFO + + +vlan 1,10 +vlan 10 + mode fabricpath + + +vrf context management +hardware forwarding unicast trace + +interface Loopback0 + description Loopback + ip address 192.168.0.10/32 + +interface Ethernet2/1 + description to nxosv-spine1 + switchport + switchport mode fabricpath + no shutdown + +interface Ethernet2/2 + description to nxosv-spine2 + switchport + switchport mode fabricpath + no shutdown + +interface Ethernet2/3 + description to lxc-iperf-4 + switchport + switchport access vlan 10 + no shutdown + +interface mgmt0 + description OOB Management + ! Configured on launch + no ip address + duplex full + no shutdown + vrf member management + +fabricpath domain default + + +line console +line vty + + +! FabricPath stuff + +!install feature-set fabricpath +!feature-set fabricpath +!fabricpath domain default + +!vlan 1,10 +!vlan 10 +! mode fabricpath + +! Additionally for every interface going to the fabric +! +!interface Ethernet2/1 +! switchport +! switchport mode fabricpath +! no shutdown + +! Additionally on leaf nodes for every interface going to connected hosts +! +!interface Ethernet2/3 +! switchport +! switchport access vlan 10 +! no shutdown + + + + + + + + #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.23.9 + 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 192.168.100.1 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.23.9 + 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 192.168.100.2 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.23.9 + 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 192.168.100.3 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.23.9 + 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 192.168.100.4 netmask 255.255.255.0 + exit 0 + + + + + + + + + + + + + + + + + +