Sebastian Rieger
9 years ago
10 changed files with 2788 additions and 40 deletions
-
156GIT-VIRL-HS-Fulda/Experiments/kommprot-lab4-vpn.virl
-
0GIT-VIRL-HS-Fulda/VIRL-Tutorial/Lab.10.switching.virl
-
258GIT-VIRL-HS-Fulda/advcompnet-lab3-sdn-lxc.virl
-
6GIT-VIRL-HS-Fulda/advcompnet-lab3-sdn.virl
-
2GIT-VIRL-HS-Fulda/kommprot-lab3-wanem.virl
-
253GIT-VIRL-HS-Fulda/kommprot-lab3-wanem_without_false_arp_entry.virl
-
856GIT-VIRL-HS-Fulda/kommprot-lab4-grp1-tshoot-phy-routing.virl
-
866GIT-VIRL-HS-Fulda/kommprot-lab4-grp2-tshoot-stp-vlan.virl
-
10GIT-VIRL-HS-Fulda/kommprot-lab4-grp3-tshoot-vpn.virl
-
421GIT-VIRL-HS-Fulda/kommprot-lab4-instructor.virl
@ -0,0 +1,156 @@ |
|||||
|
<?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.9" simulationEngine="OPENSTACK" xsi:schemaLocation="http://www.cisco.com/VIRL https://raw.github.com/CiscoVIRL/schema/v0.9/virl.xsd"> |
||||
|
<node name="lxc-iperf-1" type="SIMPLE" subtype="lxc-iperf" location="235,162"> |
||||
|
<extensions> |
||||
|
<entry key="config" type="string"> </entry> |
||||
|
</extensions> |
||||
|
<interface id="0" name="eth1" ipv4="10.0.0.6" netPrefixLenV4="30"/> |
||||
|
</node> |
||||
|
<node name="lxc-iperf-2" type="SIMPLE" subtype="lxc-iperf" location="785,162"> |
||||
|
<extensions> |
||||
|
<entry key="config" type="string"> </entry> |
||||
|
</extensions> |
||||
|
<interface id="0" name="eth1" ipv4="10.0.0.14" netPrefixLenV4="30"/> |
||||
|
</node> |
||||
|
<node name="VPN-Gateway1" type="SIMPLE" subtype="server" location="374,162"> |
||||
|
<extensions> |
||||
|
<entry key="config" type="String">#cloud-config
 |
||||
|
bootcmd:
 |
||||
|
- ln -s -t /etc/rc.d /etc/rc.local
 |
||||
|
hostname: VPN-Gateway1
 |
||||
|
manage_etc_hosts: true
 |
||||
|
runcmd:
 |
||||
|
- start ttyS0
 |
||||
|
- systemctl start getty@ttyS0.service
 |
||||
|
- 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.18.10
 |
||||
|
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/init/ttyS0.conf
 |
||||
|
owner: root:root
 |
||||
|
content: |
 |
||||
|
# ttyS0 - getty
 |
||||
|
# This service maintains a getty on ttyS0 from the point the system is
 |
||||
|
# started until it is shut down again.
 |
||||
|
start on stopped rc or RUNLEVEL=[12345]
 |
||||
|
stop on runlevel [!12345]
 |
||||
|
respawn
 |
||||
|
exec /sbin/getty -L 115200 ttyS0 vt102
 |
||||
|
permissions: '0644'
 |
||||
|
- 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 -e
 |
||||
|
ifconfig eth1 down
 |
||||
|
ifconfig eth2 up 10.0.0.5 netmask 255.255.255.252
 |
||||
|
ifconfig eth3 up
 |
||||
|
dhclient -nw eth3
 |
||||
|
systemctl start dhclient@eth3.service
 |
||||
|
sleep 5
 |
||||
|
apt-get update
 |
||||
|
apt-get install openvpn
 |
||||
|
exit 0
 |
||||
|
</entry> |
||||
|
</extensions> |
||||
|
<interface id="0" name="eth1"/> |
||||
|
<interface id="1" name="eth2" ipv4="10.0.0.5" netPrefixLenV4="30"/> |
||||
|
<interface id="2" name="eth3"/> |
||||
|
</node> |
||||
|
<node name="VPN-Gateway2" type="SIMPLE" subtype="server" location="592,162"> |
||||
|
<extensions> |
||||
|
<entry key="config" type="string">#cloud-config |
||||
|
bootcmd: |
||||
|
- ln -s -t /etc/rc.d /etc/rc.local |
||||
|
hostname: VPN-Gateway2 |
||||
|
manage_etc_hosts: true |
||||
|
runcmd: |
||||
|
- start ttyS0 |
||||
|
- systemctl start getty@ttyS0.service |
||||
|
- 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.18.10 |
||||
|
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/init/ttyS0.conf |
||||
|
owner: root:root |
||||
|
content: | |
||||
|
# ttyS0 - getty |
||||
|
# This service maintains a getty on ttyS0 from the point the system is |
||||
|
# started until it is shut down again. |
||||
|
start on stopped rc or RUNLEVEL=[12345] |
||||
|
stop on runlevel [!12345] |
||||
|
respawn |
||||
|
exec /sbin/getty -L 115200 ttyS0 vt102 |
||||
|
permissions: '0644' |
||||
|
- 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 -e |
||||
|
ifconfig eth1 down |
||||
|
ifconfig eth2 up 10.0.0.13 netmask 255.255.255.252 |
||||
|
ifconfig eth3 up |
||||
|
dhclient -nw eth3 |
||||
|
systemctl start dhclient@eth3.service |
||||
|
exit 0 |
||||
|
</entry> |
||||
|
</extensions> |
||||
|
<interface id="0" name="eth1"/> |
||||
|
<interface id="1" name="eth2" ipv4="10.0.0.13" netPrefixLenV4="30"/> |
||||
|
<interface id="2" name="eth3"/> |
||||
|
</node> |
||||
|
<node name="flat-1" type="ASSET" subtype="FLAT" location="498,126"> |
||||
|
<interface id="0" name="link0"/> |
||||
|
<interface id="1" name="link1"/> |
||||
|
</node> |
||||
|
<connection dst="/virl:topology/virl:node[1]/virl:interface[1]" src="/virl:topology/virl:node[3]/virl:interface[2]"/> |
||||
|
<connection dst="/virl:topology/virl:node[2]/virl:interface[1]" src="/virl:topology/virl:node[4]/virl:interface[2]"/> |
||||
|
<connection dst="/virl:topology/virl:node[5]/virl:interface[1]" src="/virl:topology/virl:node[3]/virl:interface[3]"/> |
||||
|
<connection dst="/virl:topology/virl:node[5]/virl:interface[2]" src="/virl:topology/virl:node[4]/virl:interface[3]"/> |
||||
|
</topology> |
@ -0,0 +1,258 @@ |
|||||
|
<?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.9" xsi:schemaLocation="http://www.cisco.com/VIRL https://raw.github.com/CiscoVIRL/schema/v0.9/virl.xsd"> |
||||
|
<extensions> |
||||
|
<entry key="management_network" type="String">exclusive</entry> |
||||
|
</extensions> |
||||
|
<node name="veos-1" type="SIMPLE" subtype="vEOS" location="514,148" ipv4="10.10.10.253"> |
||||
|
<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.14.2F) |
||||
|
! |
||||
|
! boot system flash:/vEOS.swi |
||||
|
! |
||||
|
! AdvCompNet Lab 2 SDN |
||||
|
! |
||||
|
transceiver qsfp default-mode 4x10G |
||||
|
! |
||||
|
hostname veos-1 |
||||
|
! |
||||
|
openflow |
||||
|
description SDN-OpenFlow-Lab |
||||
|
controller tcp:10.10.10.254:6633 |
||||
|
bind interface Ethernet1 |
||||
|
bind interface Ethernet2 |
||||
|
! |
||||
|
spanning-tree mode mstp |
||||
|
! |
||||
|
no aaa root |
||||
|
! |
||||
|
username admin privilege 15 role network-admin secret 5 $1$S4W0XejC$69vFakMKc/k9N.nrrTiIY/ |
||||
|
username cisco privilege 15 role network-admin secret 5 $1$rQS0W9wP$ZUzVG2XoGCCZCJopFp1aV/ |
||||
|
! |
||||
|
vlan 10 |
||||
|
! |
||||
|
interface Ethernet1 |
||||
|
! |
||||
|
interface Ethernet2 |
||||
|
! |
||||
|
interface Ethernet3 |
||||
|
switchport access vlan 10 |
||||
|
! |
||||
|
interface Management1 |
||||
|
! ip of ma1 configured on launch |
||||
|
! |
||||
|
interface Vlan10 |
||||
|
ip address 10.10.10.253/24 |
||||
|
! |
||||
|
no ip routing |
||||
|
ip route 0.0.0.0 0.0.0.0 10.10.10.254 |
||||
|
! |
||||
|
! |
||||
|
end</entry> |
||||
|
</extensions> |
||||
|
<interface id="0" name="Ethernet1" ipv4="10.0.0.10" netPrefixLenV4="30"/> |
||||
|
<interface id="1" name="Ethernet2" ipv4="10.0.0.6" netPrefixLenV4="30"/> |
||||
|
<interface id="2" name="Ethernet3" ipv4="10.0.0.14" netPrefixLenV4="30"/> |
||||
|
</node> |
||||
|
<node name="flat-1" type="ASSET" subtype="FLAT" location="411,38"> |
||||
|
<interface id="0" name="link0"/> |
||||
|
</node> |
||||
|
<node name="client" type="SIMPLE" subtype="lxc" location="424,228" ipv4="10.10.20.10"> |
||||
|
<extensions> |
||||
|
<entry key="Auto-generate config" type="Boolean">false</entry> |
||||
|
<entry key="config" type="String">#cloud-config
 |
||||
|
bootcmd:
 |
||||
|
- ln -s -t /etc/rc.d /etc/rc.local
 |
||||
|
hostname: client
 |
||||
|
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 10.10.20.10 netmask 255.255.255.0
 |
||||
|
exit 0
 |
||||
|
</entry> |
||||
|
</extensions> |
||||
|
<interface id="0" name="eth1" ipv4="10.0.0.2" netPrefixLenV4="30"/> |
||||
|
</node> |
||||
|
<node name="server" type="SIMPLE" subtype="lxc" location="617,228" ipv4="10.10.20.20"> |
||||
|
<extensions> |
||||
|
<entry key="config" type="String">#cloud-config
 |
||||
|
bootcmd:
 |
||||
|
- ln -s -t /etc/rc.d /etc/rc.local
 |
||||
|
hostname: server
 |
||||
|
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 10.10.20.20 netmask 255.255.255.0
 |
||||
|
exit 0
 |
||||
|
</entry> |
||||
|
<entry key="Auto-generate config" type="Boolean">false</entry> |
||||
|
</extensions> |
||||
|
<interface id="0" name="eth1" ipv4="10.0.0.6" netPrefixLenV4="30"/> |
||||
|
</node> |
||||
|
<node name="controller" type="SIMPLE" subtype="lxc" location="508,70" ipv4="10.10.10.254"> |
||||
|
<extensions> |
||||
|
<entry key="Auto-generate config" type="Boolean">false</entry> |
||||
|
<entry key="config" type="String">#cloud-config
 |
||||
|
bootcmd:
 |
||||
|
- ln -s -t /etc/rc.d /etc/rc.local
 |
||||
|
hostname: controller
 |
||||
|
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 eth2 up
 |
||||
|
dhclient -nw eth2
 |
||||
|
systemctl start dhclient@eth2.service
 |
||||
|
ifconfig eth1 up 10.0.128.2 netmask 255.255.255.252
 |
||||
|
exit 0
 |
||||
|
- path: /etc/rc.local
 |
||||
|
owner: root:root
 |
||||
|
permissions: '0755'
 |
||||
|
content: |-
 |
||||
|
#!/bin/sh -e
 |
||||
|
ifconfig eth1 up 10.10.10.254 netmask 255.255.255.0
 |
||||
|
ifconfig eth2 up
 |
||||
|
dhclient eth2
 |
||||
|
# set default gateway to VIRL host in flat1 
 |
||||
|
route del -net default
 |
||||
|
route add -net default gw 172.16.1.254
 |
||||
|
# enable routing and NAT for 10.10.0.0/16
 |
||||
|
sysctl -w net.ipv4.ip_forward=1
 |
||||
|
iptables -A POSTROUTING -t nat -s 10.10.0.0/16 -o eth2 -j MASQUERADE
 |
||||
|
exit 0
 |
||||
|
- path: /tmp/install-odl
 |
||||
|
owner: root:root
 |
||||
|
permissions: '0755'
 |
||||
|
content: |-
 |
||||
|
#!/bin/sh -e
 |
||||
|
mkdir /tmp/d
ebs
 |
||||
|
|
||||
|
cd /tmp/debs
 |
||||
|
wget http://mmnet.informatik.hs-fulda.de/opendaylight-dep-debs.tar.gz
 |
||||
|
tar zxvf opendaylight-dep-debs.tar.gz
 |
||||
|
dpkg -i *.deb
 |
||||
|
export JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64/jre/
 |
||||
|
echo "export JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64/jre/" >/etc/profile.d/Z99-java-home.sh
 |
||||
|
# setup opendaylight controller
 |
||||
|
#################
 |
||||
|
# Hydrogen
 |
||||
|
#################
 |
||||
|
cd /tmp
 |
||||
|
wget http://mmnet.informatik.hs-fulda.de/distributions-base-0.1.1-osgipackage.zip
 |
||||
|
unzip distributions-base-0.1.1-osgipackage.zip
 |
||||
|
#################
 |
||||
|
# Lithium
 |
||||
|
#################
 |
||||
|
#wget http://mmnet.informatik.hs-fulda.de/distribution-karaf-0.3.0-Lithium.tar.gz
 |
||||
|
#tar zxf distribution-karaf-0.3.0-Lithium.tar.gz
 |
||||
|
#echo -e "feature:install odl-restconf odl-l2switch-switch odl-mdsal-apidocs odl-dlux-core odl-dlux-node odl-dlux-yangui\nlogout" | ./distribution-karaf-0.3.0-Lithium/bin/karaf
 |
||||
|
#./distribution-karaf-0.3.0-Lithium/bin/start
 |
||||
|
#
 |
||||
|
#################
 |
||||
|
# LXDE
 |
||||
|
#################
 |
||||
|
# apt-get -y install midori lxde wireshark
 |
||||
|
exit 0
 |
||||
|
</entry> |
||||
|
</extensions> |
||||
|
<interface id="0" name="eth1" ipv4="10.0.128.2" netPrefixLenV4="30"/> |
||||
|
<interface id="1" name="eth2"/> |
||||
|
</node> |
||||
|
<connection dst="/virl:topology/virl:node[3]/virl:interface[1]" src="/virl:topology/virl:node[1]/virl:interface[1]"/> |
||||
|
<connection dst="/virl:topology/virl:node[4]/virl:interface[1]" src="/virl:topology/virl:node[1]/virl:interface[2]"/> |
||||
|
<connection dst="/virl:topology/virl:node[1]/virl:interface[3]" src="/virl:topology/virl:node[5]/virl:interface[1]"/> |
||||
|
<connection dst="/virl:topology/virl:node[2]/virl:interface[1]" src="/virl:topology/virl:node[5]/virl:interface[2]"/> |
||||
|
</topology> |
@ -0,0 +1,856 @@ |
|||||
|
<?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.9" xsi:schemaLocation="http://www.cisco.com/VIRL https://raw.github.com/CiscoVIRL/schema/v0.9/virl.xsd"> |
||||
|
<node name="iosv-1" type="SIMPLE" subtype="IOSv" location="310,72" coordinate="52.187404745599686,-109.248046875"> |
||||
|
<extensions> |
||||
|
<entry key="AutoNetkit.mgmt_ip" type="string"></entry> |
||||
|
<entry key="config" type="String">! |
||||
|
! Last configuration change at 15:54:14 UTC Thu Jan 7 2016 |
||||
|
! |
||||
|
version 15.6 |
||||
|
service timestamps debug datetime msec |
||||
|
service timestamps log datetime msec |
||||
|
no service password-encryption |
||||
|
! |
||||
|
hostname iosv-1 |
||||
|
! |
||||
|
boot-start-marker |
||||
|
boot-end-marker |
||||
|
! |
||||
|
! |
||||
|
vrf definition Mgmt-intf |
||||
|
! |
||||
|
address-family ipv4 |
||||
|
exit-address-family |
||||
|
! |
||||
|
address-family ipv6 |
||||
|
exit-address-family |
||||
|
! |
||||
|
enable password cisco |
||||
|
! |
||||
|
no aaa new-model |
||||
|
ethernet lmi ce |
||||
|
! |
||||
|
! |
||||
|
! |
||||
|
mmi polling-interval 60 |
||||
|
no mmi auto-configure |
||||
|
no mmi pvc |
||||
|
mmi snmp-timeout 180 |
||||
|
! |
||||
|
! |
||||
|
! |
||||
|
! |
||||
|
! |
||||
|
! |
||||
|
! |
||||
|
! |
||||
|
! |
||||
|
! |
||||
|
! |
||||
|
no ip domain lookup |
||||
|
ip cef |
||||
|
ipv6 unicast-routing |
||||
|
ipv6 cef |
||||
|
! |
||||
|
multilink bundle-name authenticated |
||||
|
! |
||||
|
! |
||||
|
! |
||||
|
! |
||||
|
! |
||||
|
redundancy |
||||
|
! |
||||
|
no cdp run |
||||
|
! |
||||
|
! |
||||
|
! |
||||
|
! |
||||
|
! |
||||
|
! |
||||
|
! |
||||
|
! |
||||
|
! |
||||
|
! |
||||
|
! |
||||
|
! |
||||
|
! |
||||
|
! |
||||
|
interface Loopback0 |
||||
|
description Loopback |
||||
|
ip address 10.10.10.1 255.255.255.255 |
||||
|
! |
||||
|
interface GigabitEthernet0/0 |
||||
|
ip address 10.255.0.60 255.255.0.0 |
||||
|
shutdown |
||||
|
duplex auto |
||||
|
speed auto |
||||
|
media-type rj45 |
||||
|
! |
||||
|
interface GigabitEthernet0/1 |
||||
|
description to flat-1 |
||||
|
ip address 172.16.1.115 255.255.255.0 |
||||
|
ip ospf 1 area 0 |
||||
|
duplex full |
||||
|
speed auto |
||||
|
media-type rj45 |
||||
|
! |
||||
|
interface GigabitEthernet0/2 |
||||
|
description to iosvl2-1 |
||||
|
no ip address |
||||
|
duplex full |
||||
|
speed auto |
||||
|
media-type rj45 |
||||
|
! |
||||
|
interface GigabitEthernet0/2.10 |
||||
|
description VLAN10 |
||||
|
encapsulation dot1Q 10 |
||||
|
ip address 192.168.11.254 255.255.255.0 |
||||
|
ip ospf cost 1 |
||||
|
! |
||||
|
interface GigabitEthernet0/2.20 |
||||
|
description VLAN20 |
||||
|
encapsulation dot1Q 20 |
||||
|
ip address 192.168.12.254 255.255.255.0 |
||||
|
ip ospf cost 1 |
||||
|
! |
||||
|
interface GigabitEthernet0/2.30 |
||||
|
description VLAN30 |
||||
|
encapsulation dot1Q 30 |
||||
|
ip address 192.168.13.254 255.255.255.0 |
||||
|
ip ospf cost 1 |
||||
|
! |
||||
|
router ospf 1 |
||||
|
passive-interface Loopback0 |
||||
|
network 192.168.11.0 0.0.0.255 area 0 |
||||
|
network 192.168.12.0 0.0.0.255 area 0 |
||||
|
network 192.168.13.0 0.0.0.255 area 0 |
||||
|
! |
||||
|
ip forward-protocol nd |
||||
|
! |
||||
|
! |
||||
|
no ip http server |
||||
|
no ip http secure-server |
||||
|
! |
||||
|
! |
||||
|
! |
||||
|
! |
||||
|
control-plane |
||||
|
! |
||||
|
banner exec ` |
||||
|
************************************************************************** |
||||
|
* IOSv is strictly limited to use for evaluation, demonstration and IOS * |
||||
|
* education. IOSv is provided as-is and is not supported by Cisco's * |
||||
|
* Technical Advisory Center. Any use or disclosure, in whole or in part, * |
||||
|
* of the IOSv Software or Documentation to any third party for any * |
||||
|
* purposes is expressly prohibited except as otherwise authorized by * |
||||
|
* Cisco in writing. * |
||||
|
**************************************************************************` |
||||
|
banner incoming ` |
||||
|
************************************************************************** |
||||
|
* IOSv is strictly limited to use for evaluation, demonstration and IOS * |
||||
|
* education. IOSv is provided as-is and is not supported by Cisco's * |
||||
|
* Technical Advisory Center. Any use or disclosure, in whole or in part, * |
||||
|
* of the IOSv Software or Documentation to any third party for any * |
||||
|
* purposes is expressly prohibited except as otherwise authorized by * |
||||
|
* Cisco in writing. * |
||||
|
**************************************************************************` |
||||
|
banner login ` |
||||
|
************************************************************************** |
||||
|
* IOSv is strictly limited to use for evaluation, demonstration and IOS * |
||||
|
* education. IOSv is provided as-is and is not supported by Cisco's * |
||||
|
* Technical Advisory Center. Any use or disclosure, in whole or in part, * |
||||
|
* of the IOSv Software or Documentation to any third party for any * |
||||
|
* purposes is expressly prohibited except as otherwise authorized by * |
||||
|
* Cisco in writing. * |
||||
|
**************************************************************************` |
||||
|
! |
||||
|
line con 0 |
||||
|
password cisco |
||||
|
line aux 0 |
||||
|
line vty 0 4 |
||||
|
exec-timeout 720 0 |
||||
|
password cisco |
||||
|
login |
||||
|
transport input telnet ssh |
||||
|
! |
||||
|
no scheduler allocate |
||||
|
! |
||||
|
end</entry> |
||||
|
</extensions> |
||||
|
<interface id="0" name="GigabitEthernet0/1"/> |
||||
|
<interface id="1" name="GigabitEthernet0/2"/> |
||||
|
</node> |
||||
|
<node name="flat-1" type="ASSET" subtype="FLAT" location="145,75" coordinate="52.10650519075632,-116.4990234375"> |
||||
|
<interface id="0" name="link0"/> |
||||
|
</node> |
||||
|
<node name="iosvl2-1" type="SIMPLE" subtype="IOSvL2" location="304,210" coordinate="48.312427904071775,-109.51171875"> |
||||
|
<extensions> |
||||
|
<entry key="AutoNetkit.mgmt_ip" type="string"></entry> |
||||
|
<entry key="config" type="String">!
 |
||||
|
! Last configuration change at 15:52:35 UTC Thu Jan 7 2016
 |
||||
|
!
 |
||||
|
version 15.2
 |
||||
|
service timestamps debug datetime msec
 |
||||
|
service timestamps log datetime msec
 |
||||
|
no service password-encryption
 |
||||
|
service compress-config
 |
||||
|
!
 |
||||
|
hostname iosvl2-1
 |
||||
|
!
 |
||||
|
boot-start-marker
 |
||||
|
boot-end-marker
 |
||||
|
!
 |
||||
|
!
 |
||||
|
vrf definition Mgmt-intf
 |
||||
|
!
 |
||||
|
address-family ipv4
 |
||||
|
exit-address-family
 |
||||
|
!
 |
||||
|
address-family ipv6
 |
||||
|
exit-address-family
 |
||||
|
!
 |
||||
|
enable password cisco
 |
||||
|
!
 |
||||
|
no aaa new-model
 |
||||
|
!
 |
||||
|
!
 |
||||
|
!
 |
||||
|
!
 |
||||
|
!
 |
||||
|
ip routing
 |
||||
|
!
 |
||||
|
!
 |
||||
|
!
 |
||||
|
no ip domain-lookup
 |
||||
|
no ip cef
 |
||||
|
no ipv6 cef
 |
||||
|
!
 |
||||
|
!
 |
||||
|
!
 |
||||
|
spanning-tree mode pvst
 |
||||
|
spanning-tree extend system-id
 |
||||
|
!
 |
||||
|
vlan internal allocation policy ascending
 |
||||
|
!
 |
||||
|
! 
 |
||||
|
!
 |
||||
|
!
 |
||||
|
!
 |
||||
|
!
 |
||||
|
!
 |
||||
|
!
 |
||||
|
!
 |
||||
|
!
 |
||||
|
!
 |
||||
|
!
 |
||||
|
!
 |
||||
|
!
 |
||||
|
interface GigabitEthernet0/0
 |
||||
|
media-type rj45
 |
||||
|
negotiation auto
 |
||||
|
!
 |
||||
|
interface GigabitEthernet0/1
 |
||||
|
description to iosv-1
 |
||||
|
switchport trunk encapsulation dot1q
 |
||||
|
switchport mode trunk
 |
||||
|
media-type rj45
 |
||||
|
negotiation auto
 |
||||
|
!
 |
||||
|
interface GigabitEthernet0/2
 |
||||
|
description to iosvl2-2
 |
||||
|
switchport trunk encapsulation dot1q
 |
||||
|
switchport mode trunk
 |
||||
|
media-type rj45
 |
||||
|
negotiation auto
 |
||||
|
!
 |
||||
|
interface GigabitEthernet0/3
 |
||||
|
description to iosvl2-3
 |
||||
|
switchport trunk encapsulation dot1q
 |
||||
|
switchport mode trunk
 |
||||
|
media-type rj45
 |
||||
|
negotiation auto
 |
||||
|
!
 |
||||
|
interface GigabitEthernet1/0
 |
||||
|
description to server-1
 |
||||
|
switchport access vlan 20
 |
||||
|
switchport access vlan 21
 |
||||
|
switchport access vlan 22
 |
||||
|
switchport access vlan 30
 |
||||
|
switchport access vlan 10
 |
||||
|
switchport mode access
 |
||||
|
media-type rj45
 |
||||
|
negotiation auto
 |
||||
|
!
 |
||||
|
interface Vlan10
 |
||||
|
description VLAN10TEST
 |
||||
|
ip address 192.168.11.252 255.255.255.0
 |
||||
|
no ip route-cache
 |
||||
|
!
 |
||||
|
interface Vlan21
 |
||||
|
description VLAN21TEST
 |
||||
|
ip address 192.168.12.254 255.255.255.0
 |
||||
|
no ip route-cache
 |
||||
|
!
 |
||||
|
interface Vlan22
 |
||||
|
description VLAN22TEST
 |
||||
|
ip address 192.168.200.1 255.255.255.0
 |
||||
|
no ip route-cache
 |
||||
|
!
 |
||||
|
ip forward-protocol nd
 |
||||
|
!
 |
||||
|
no ip http server
 |
||||
|
no ip http secure-server
 |
||||
|
!
 |
||||
|
!
 |
||||
|
!
 |
||||
|
!
 |
||||
|
!
 |
||||
|
!
 |
||||
|
control-plane
 |
||||
|
!
 |
||||
|
banner exec `
 |
||||
|
**************************************************************************
 |
||||
|
* IOSv is strictly limited to use for evaluation, demonstration and IOS *
 |
||||
|
* education. IOSv is provided as-is and is not supported by Cisco's *
 |
||||
|
* Technical Advisory Center. Any use or disclosure, in whole or in part, *
 |
||||
|
* of the IOSv Software or Documentation to any third party for any *
 |
||||
|
* purposes is expressly prohibited except as otherwise authorized by *
 |
||||
|
* Cisco in writing. *
 |
||||
|
**************************************************************************`
 |
||||
|
banner incoming `
 |
||||
|
**************************************************************************
 |
||||
|
* IOSv is strictly limited to use for evaluation, demonstration and IOS *
 |
||||
|
* education. IOSv is provided as-is and is not supported by Cisco's *
 |
||||
|
* Technical Advisory Center. Any use or disclosure, in whole or in part, *
 |
||||
|
* of the IOSv Software or Documentation to any third party for any *
 |
||||
|
* purposes is expressly prohibited except as otherwise authorized by *
 |
||||
|
* Cisco in writing. *
 |
||||
|
**************************************************************************`
 |
||||
|
banner login `
 |
||||
|
**************************************************************************
 |
||||
|
* IOSv is strictly limited to use for evaluation, demonstration and IOS *
 |
||||
|
* education. IOSv is provided as-is and is not supported by Cisco's *
 |
||||
|
* Technical Advisory Center. Any use or disclosure, in whole or in part, *
 |
||||
|
* of the IOSv Software or Documentation to any third party for any *
 |
||||
|
* purposes is expressly prohibited except as otherwise authorized by *
 |
||||
|
* Cisco in writing. *
 |
||||
|
**************************************************************************`
 |
||||
|
!
 |
||||
|
line con 0
 |
||||
|
password cisco
 |
||||
|
line aux 0
 |
||||
|
line vty 0 4
 |
||||
|
exec-timeout 720 0
 |
||||
|
password cisco
 |
||||
|
login
 |
||||
|
transport input telnet ssh
 |
||||
|
!
 |
||||
|
!
 |
||||
|
end</entry> |
||||
|
</extensions> |
||||
|
<interface id="0" name="GigabitEthernet0/1"/> |
||||
|
<interface id="1" name="GigabitEthernet0/2"/> |
||||
|
<interface id="2" name="GigabitEthernet0/3"/> |
||||
|
<interface id="3" name="GigabitEthernet1/0"/> |
||||
|
</node> |
||||
|
<node name="iosvl2-2" type="SIMPLE" subtype="IOSvL2" location="172,305" coordinate="45.460130637921004,-115.3125"> |
||||
|
<extensions> |
||||
|
<entry key="AutoNetkit.mgmt_ip" type="string"></entry> |
||||
|
<entry key="config" type="String">!
 |
||||
|
! Last configuration change at 15:53:10 UTC Thu Jan 7 2016
 |
||||
|
!
 |
||||
|
version 15.2
 |
||||
|
service timestamps debug datetime msec
 |
||||
|
service timestamps log datetime msec
 |
||||
|
no service password-encryption
 |
||||
|
service compress-config
 |
||||
|
!
 |
||||
|
hostname iosvl2-2
 |
||||
|
!
 |
||||
|
boot-start-marker
 |
||||
|
boot-end-marker
 |
||||
|
!
 |
||||
|
!
 |
||||
|
vrf definition Mgmt-intf
 |
||||
|
!
 |
||||
|
address-family ipv4
 |
||||
|
exit-address-family
 |
||||
|
!
 |
||||
|
address-family ipv6
 |
||||
|
exit-address-family
 |
||||
|
!
 |
||||
|
enable password cisco
 |
||||
|
!
 |
||||
|
no aaa new-model
 |
||||
|
!
 |
||||
|
!
 |
||||
|
!
 |
||||
|
!
 |
||||
|
!
 |
||||
|
!
 |
||||
|
!
 |
||||
|
!
 |
||||
|
no ip domain-lookup
 |
||||
|
ip cef
 |
||||
|
no ipv6 cef
 |
||||
|
!
 |
||||
|
!
 |
||||
|
!
 |
||||
|
spanning-tree mode pvst
 |
||||
|
spanning-tree extend system-id
 |
||||
|
!
 |
||||
|
vlan internal allocation policy ascending
 |
||||
|
!
 |
||||
|
! 
 |
||||
|
!
 |
||||
|
!
 |
||||
|
!
 |
||||
|
!
 |
||||
|
!
 |
||||
|
!
 |
||||
|
!
 |
||||
|
!
 |
||||
|
!
 |
||||
|
!
 |
||||
|
!
 |
||||
|
!
 |
||||
|
interface Loopback0
 |
||||
|
description Loopback
 |
||||
|
no ip address
 |
||||
|
!
 |
||||
|
interface GigabitEthernet0/0
 |
||||
|
media-type rj45
 |
||||
|
negotiation auto
 |
||||
|
!
 |
||||
|
interface GigabitEthernet0/1
 |
||||
|
description to iosvl2-1
 |
||||
|
switchport trunk encapsulation dot1q
 |
||||
|
switchport mode trunk
 |
||||
|
media-type rj45
 |
||||
|
negotiation auto
 |
||||
|
!
 |
||||
|
interface GigabitEthernet0/2
 |
||||
|
description to iosvl2-3
 |
||||
|
switchport trunk encapsulation dot1q
 |
||||
|
switchport mode trunk
 |
||||
|
media-type rj45
 |
||||
|
negotiation auto
 |
||||
|
!
 |
||||
|
interface GigabitEthernet0/3
 |
||||
|
description to server-2
 |
||||
|
switchport access vlan 10
 |
||||
|
switchport access vlan 30 
 |
||||
|
switchport access vlan 20
 |
||||
|
switchport mode access
 |
||||
|
media-type rj45
 |
||||
|
negotiation auto
 |
||||
|
!
 |
||||
|
interface GigabitEthernet1/0
 |
||||
|
description to VLAN21TEST
 |
||||
|
switchport access vlan 21
 |
||||
|
switchport mode access
 |
||||
|
media-type rj45
 |
||||
|
negotiation auto
 |
||||
|
!
 |
||||
|
ip forward-protocol nd
 |
||||
|
ip default-gateway 192.168.12.254
 |
||||
|
!
 |
||||
|
no ip http server
 |
||||
|
no ip http secure-server
 |
||||
|
!
 |
||||
|
!
 |
||||
|
!
 |
||||
|
!
 |
||||
|
!
 |
||||
|
!
 |
||||
|
control-plane
 |
||||
|
!
 |
||||
|
banner exec `
 |
||||
|
**************************************************************************
 |
||||
|
* IOSv is strictly limited to use for evaluation, demonstration and IOS *
 |
||||
|
* education. IOSv is provided as-is and is not supported by Cisco's *
 |
||||
|
* Technical Advisory Center. Any use or disclosure, in whole or in part, *
 |
||||
|
* of the IOSv Software or Documentation to any third party for any *
 |
||||
|
* purposes is expressly prohibited except as otherwise authorized by *
 |
||||
|
* Cisco in writing. *
 |
||||
|
**************************************************************************`
 |
||||
|
banner incoming `
 |
||||
|
**************************************************************************
 |
||||
|
* IOSv is strictly limited to use for evaluation, demonstration and IOS *
 |
||||
|
* education. IOSv is provided as-is and is not supported by Cisco's *
 |
||||
|
* Technical Advisory Center. Any use or disclosure, in whole or in part, *
 |
||||
|
* of the IOSv Software or Documentation to any third party for any *
 |
||||
|
* purposes is expressly prohibited except as otherwise authorized by *
 |
||||
|
* Cisco in writing. *
 |
||||
|
**************************************************************************`
 |
||||
|
banner login `
 |
||||
|
**************************************************************************
 |
||||
|
* IOSv is strictly limited to use for evaluation, demonstration and IOS *
 |
||||
|
* education. IOSv is provided as-is and is not supported by Cisco's *
 |
||||
|
* Technical Advisory Center. Any use or disclosure, in whole or in part, *
 |
||||
|
* of the IOSv Software or Documentation to any third party for any *
 |
||||
|
* purposes is expressly prohibited except as otherwise authorized by *
 |
||||
|
* Cisco in writing. *
 |
||||
|
**************************************************************************`
 |
||||
|
!
 |
||||
|
line con 0
 |
||||
|
password cisco
 |
||||
|
line aux 0
 |
||||
|
line vty 0 4
 |
||||
|
exec-timeout 720 0
 |
||||
|
password cisco
 |
||||
|
login
 |
||||
|
transport input telnet ssh
 |
||||
|
!
 |
||||
|
!
 |
||||
|
end</entry> |
||||
|
</extensions> |
||||
|
<interface id="0" name="GigabitEthernet0/1"/> |
||||
|
<interface id="1" name="GigabitEthernet0/2"/> |
||||
|
<interface id="2" name="GigabitEthernet0/3"/> |
||||
|
<interface id="3" name="GigabitEthernet1/0"/> |
||||
|
</node> |
||||
|
<node name="server-2" type="SIMPLE" subtype="server" location="172,404" coordinate="42.326062444562034,-115.3125"> |
||||
|
<extensions> |
||||
|
<entry key="config" type="String">#cloud-config |
||||
|
bootcmd: |
||||
|
- ln -s -t /etc/rc.d /etc/rc.local |
||||
|
hostname: server-2 |
||||
|
manage_etc_hosts: true |
||||
|
runcmd: |
||||
|
- start ttyS0 |
||||
|
- systemctl start getty@ttyS0.service |
||||
|
- 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.18.10 |
||||
|
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/init/ttyS0.conf |
||||
|
owner: root:root |
||||
|
content: | |
||||
|
# ttyS0 - getty |
||||
|
# This service maintains a getty on ttyS0 from the point the system is |
||||
|
# started until it is shut down again. |
||||
|
start on stopped rc or RUNLEVEL=[12345] |
||||
|
stop on runlevel [!12345] |
||||
|
respawn |
||||
|
exec /sbin/getty -L 115200 ttyS0 vt102 |
||||
|
permissions: '0644' |
||||
|
- 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 -e |
||||
|
ifconfig eth1 up 192.168.12.1 netmask 255.255.255.0 |
||||
|
route add -host 192.168.1.200 gw 192.168.12.254 dev eth1 |
||||
|
route add -net 0.0.0.0 gw 192.168.12.254 dev eth1 |
||||
|
exit 0 |
||||
|
</entry> |
||||
|
</extensions> |
||||
|
<interface id="0" name="eth1"/> |
||||
|
</node> |
||||
|
<node name="server-3" type="SIMPLE" subtype="server" location="410,402" coordinate="42.39100860920504,-104.853515625"> |
||||
|
<extensions> |
||||
|
<entry key="config" type="String">#cloud-config
 |
||||
|
bootcmd:
 |
||||
|
- ln -s -t /etc/rc.d /etc/rc.local
 |
||||
|
hostname: server-3
 |
||||
|
manage_etc_hosts: true
 |
||||
|
runcmd:
 |
||||
|
- start ttyS0
 |
||||
|
- systemctl start getty@ttyS0.service
 |
||||
|
- 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.18.10
 |
||||
|
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/init/ttyS0.conf
 |
||||
|
owner: root:root
 |
||||
|
content: |
 |
||||
|
# ttyS0 - getty
 |
||||
|
# This service maintains a getty on ttyS0 from the point the system is
 |
||||
|
# started until it is shut down again.
 |
||||
|
start on stopped rc or RUNLEVEL=[12345]
 |
||||
|
stop on runlevel [!12345]
 |
||||
|
respawn
 |
||||
|
exec /sbin/getty -L 115200 ttyS0 vt102
 |
||||
|
permissions: '0644'
 |
||||
|
- 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 -e
 |
||||
|
ifconfig eth1 up 192.168.13.1 netmask 255.255.255.0
 |
||||
|
route add -host 192.168.1.200 gw 192.168.13.254 dev eth1
 |
||||
|
route add -host 10.0.0.2 gw 192.168.13.252 dev eth1
 |
||||
|
route add -net 0.0.0.0 gw 192.168.13.252 dev eth1
 |
||||
|
exit 0
 |
||||
|
</entry> |
||||
|
</extensions> |
||||
|
<interface id="0" name="eth1"/> |
||||
|
</node> |
||||
|
<node name="server-1" type="SIMPLE" subtype="server" location="547,202" coordinate="48.54570549184746,-98.8330078125"> |
||||
|
<extensions> |
||||
|
<entry key="config" type="String">#cloud-config
 |
||||
|
bootcmd:
 |
||||
|
- ln -s -t /etc/rc.d /etc/rc.local
 |
||||
|
hostname: server-1
 |
||||
|
manage_etc_hosts: true
 |
||||
|
runcmd:
 |
||||
|
- start ttyS0
 |
||||
|
- systemctl start getty@ttyS0.service
 |
||||
|
- 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.18.10
 |
||||
|
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/init/ttyS0.conf
 |
||||
|
owner: root:root
 |
||||
|
content: |
 |
||||
|
# ttyS0 - getty
 |
||||
|
# This service maintains a getty on ttyS0 from the point the system is
 |
||||
|
# started until it is shut down again.
 |
||||
|
start on stopped rc or RUNLEVEL=[12345]
 |
||||
|
stop on runlevel [!12345]
 |
||||
|
respawn
 |
||||
|
exec /sbin/getty -L 115200 ttyS0 vt102
 |
||||
|
permissions: '0644'
 |
||||
|
- 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 -e
 |
||||
|
ifconfig eth1 up 192.168.11.1 netmask 255.255.255.0
 |
||||
|
route add -host 192.168.1.200 gw 192.168.11.254 dev eth1
 |
||||
|
route add -net 0.0.0.0 gw 192.168.11.254 dev eth1
 |
||||
|
exit 0
 |
||||
|
</entry> |
||||
|
</extensions> |
||||
|
<interface id="0" name="eth1"/> |
||||
|
</node> |
||||
|
<node name="iosvl2-3" type="SIMPLE" subtype="IOSvL2" location="410,305" coordinate="45.460130637921004,-104.853515625"> |
||||
|
<extensions> |
||||
|
<entry key="AutoNetkit.mgmt_ip" type="string"></entry> |
||||
|
<entry key="config" type="String">!
 |
||||
|
! Last configuration change at 14:59:32 UTC Thu Jan 7 2016
 |
||||
|
!
 |
||||
|
version 15.2
 |
||||
|
service timestamps debug datetime msec
 |
||||
|
service timestamps log datetime msec
 |
||||
|
no service password-encryption
 |
||||
|
service compress-config
 |
||||
|
!
 |
||||
|
hostname iosvl2-3
 |
||||
|
!
 |
||||
|
boot-start-marker
 |
||||
|
boot-end-marker
 |
||||
|
!
 |
||||
|
!
 |
||||
|
vrf definition Mgmt-intf
 |
||||
|
!
 |
||||
|
address-family ipv4
 |
||||
|
exit-address-family
 |
||||
|
!
 |
||||
|
address-family ipv6
 |
||||
|
exit-address-family
 |
||||
|
!
 |
||||
|
enable password cisco
 |
||||
|
!
 |
||||
|
no aaa new-model
 |
||||
|
!
 |
||||
|
!
 |
||||
|
!
 |
||||
|
!
 |
||||
|
!
 |
||||
|
!
 |
||||
|
!
 |
||||
|
!
 |
||||
|
no ip domain-lookup
 |
||||
|
ip cef
 |
||||
|
no ipv6 cef
 |
||||
|
!
 |
||||
|
!
 |
||||
|
!
 |
||||
|
spanning-tree mode pvst
 |
||||
|
spanning-tree extend system-id
 |
||||
|
!
 |
||||
|
vlan internal allocation policy ascending
 |
||||
|
!
 |
||||
|
! 
 |
||||
|
!
 |
||||
|
!
 |
||||
|
!
 |
||||
|
!
 |
||||
|
!
 |
||||
|
!
 |
||||
|
!
 |
||||
|
!
 |
||||
|
!
 |
||||
|
!
 |
||||
|
!
 |
||||
|
!
 |
||||
|
interface Loopback0
 |
||||
|
description Loopback
 |
||||
|
no ip address
 |
||||
|
!
 |
||||
|
interface GigabitEthernet0/0
 |
||||
|
media-type rj45
 |
||||
|
negotiation auto
 |
||||
|
!
 |
||||
|
interface GigabitEthernet0/1
 |
||||
|
description to iosvl2-1
 |
||||
|
switchport trunk encapsulation dot1q
 |
||||
|
switchport mode trunk
 |
||||
|
media-type rj45
 |
||||
|
negotiation auto
 |
||||
|
!
 |
||||
|
interface GigabitEthernet0/2
 |
||||
|
description to iosvl2-2
 |
||||
|
switchport trunk encapsulation dot1q
 |
||||
|
switchport mode trunk
 |
||||
|
media-type rj45
 |
||||
|
negotiation auto
 |
||||
|
!
 |
||||
|
interface GigabitEthernet0/3
 |
||||
|
description to server-1
 |
||||
|
switchport access vlan 10
 |
||||
|
switchport access vlan 20
 |
||||
|
switchport access vlan 30
 |
||||
|
switchport mode access
 |
||||
|
media-type rj45
 |
||||
|
negotiation auto
 |
||||
|
!
 |
||||
|
interface Vlan30
 |
||||
|
ip address 192.168.13.252 255.255.255.0
 |
||||
|
!
 |
||||
|
ip forward-protocol nd
 |
||||
|
!
 |
||||
|
no ip http server
 |
||||
|
no ip http secure-server
 |
||||
|
!
 |
||||
|
!
 |
||||
|
!
 |
||||
|
!
 |
||||
|
!
 |
||||
|
!
 |
||||
|
control-plane
 |
||||
|
!
 |
||||
|
banner exec `
 |
||||
|
**************************************************************************
 |
||||
|
* IOSv is strictly limited to use for evaluation, demonstration and IOS *
 |
||||
|
* education. IOSv is provided as-is and is not supported by Cisco's *
 |
||||
|
* Technical Advisory Center. Any use or disclosure, in whole or in part, *
 |
||||
|
* of the IOSv Software or Documentation to any third party for any *
 |
||||
|
* purposes is expressly prohibited except as otherwise authorized by *
 |
||||
|
* Cisco in writing. *
 |
||||
|
**************************************************************************`
 |
||||
|
banner incoming `
 |
||||
|
**************************************************************************
 |
||||
|
* IOSv is strictly limited to use for evaluation, demonstration and IOS *
 |
||||
|
* education. IOSv is provided as-is and is not supported by Cisco's *
 |
||||
|
* Technical Advisory Center. Any use or disclosure, in whole or in part, *
 |
||||
|
* of the IOSv Software or Documentation to any third party for any *
 |
||||
|
* purposes is expressly prohibited except as otherwise authorized by *
 |
||||
|
* Cisco in writing. *
 |
||||
|
**************************************************************************`
 |
||||
|
banner login `
 |
||||
|
**************************************************************************
 |
||||
|
* IOSv is strictly limited to use for evaluation, demonstration and IOS *
 |
||||
|
* education. IOSv is provided as-is and is not supported by Cisco's *
 |
||||
|
* Technical Advisory Center. Any use or disclosure, in whole or in part, *
 |
||||
|
* of the IOSv Software or Documentation to any third party for any *
 |
||||
|
* purposes is expressly prohibited except as otherwise authorized by *
 |
||||
|
* Cisco in writing. *
 |
||||
|
**************************************************************************`
 |
||||
|
!
 |
||||
|
line con 0
 |
||||
|
password cisco
 |
||||
|
line aux 0
 |
||||
|
line vty 0 4
 |
||||
|
exec-timeout 720 0
 |
||||
|
password cisco
 |
||||
|
login
 |
||||
|
transport input telnet ssh
 |
||||
|
!
 |
||||
|
!
 |
||||
|
end</entry> |
||||
|
</extensions> |
||||
|
<interface id="0" name="GigabitEthernet0/1"/> |
||||
|
<interface id="1" name="GigabitEthernet0/2"/> |
||||
|
<interface id="2" name="GigabitEthernet0/3"/> |
||||
|
</node> |
||||
|
<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[3]/virl:interface[1]" src="/virl:topology/virl:node[1]/virl:interface[2]"/> |
||||
|
<connection dst="/virl:topology/virl:node[4]/virl:interface[1]" src="/virl:topology/virl:node[3]/virl:interface[2]"/> |
||||
|
<connection dst="/virl:topology/virl:node[8]/virl:interface[1]" src="/virl:topology/virl:node[3]/virl:interface[3]"/> |
||||
|
<connection dst="/virl:topology/virl:node[8]/virl:interface[2]" src="/virl:topology/virl:node[4]/virl:interface[2]"/> |
||||
|
<connection dst="/virl:topology/virl:node[6]/virl:interface[1]" src="/virl:topology/virl:node[8]/virl:interface[3]"/> |
||||
|
<connection dst="/virl:topology/virl:node[7]/virl:interface[1]" src="/virl:topology/virl:node[3]/virl:interface[4]"/> |
||||
|
<connection dst="/virl:topology/virl:node[5]/virl:interface[1]" src="/virl:topology/virl:node[4]/virl:interface[4]"/> |
||||
|
</topology> |
@ -0,0 +1,866 @@ |
|||||
|
<?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.9" xsi:schemaLocation="http://www.cisco.com/VIRL https://raw.github.com/CiscoVIRL/schema/v0.9/virl.xsd"> |
||||
|
<node name="iosv-1" type="SIMPLE" subtype="IOSv" location="310,72" coordinate="52.187404745599686,-109.248046875"> |
||||
|
<extensions> |
||||
|
<entry key="AutoNetkit.mgmt_ip" type="string"></entry> |
||||
|
<entry key="config" type="String">!
 |
||||
|
! Last configuration change at 15:54:14 UTC Thu Jan 7 2016
 |
||||
|
!
 |
||||
|
version 15.6
 |
||||
|
service timestamps debug datetime msec
 |
||||
|
service timestamps log datetime msec
 |
||||
|
no service password-encryption
 |
||||
|
!
 |
||||
|
hostname iosv-1
 |
||||
|
!
 |
||||
|
boot-start-marker
 |
||||
|
boot-end-marker
 |
||||
|
!
 |
||||
|
!
 |
||||
|
vrf definition Mgmt-intf
 |
||||
|
!
 |
||||
|
address-family ipv4
 |
||||
|
exit-address-family
 |
||||
|
!
 |
||||
|
address-family ipv6
 |
||||
|
exit-address-family
 |
||||
|
!
 |
||||
|
enable password cisco
 |
||||
|
!
 |
||||
|
no aaa new-model
 |
||||
|
ethernet lmi ce
 |
||||
|
!
 |
||||
|
!
 |
||||
|
!
 |
||||
|
mmi polling-interval 60
 |
||||
|
no mmi auto-configure
 |
||||
|
no mmi pvc
 |
||||
|
mmi snmp-timeout 180
 |
||||
|
!
 |
||||
|
!
 |
||||
|
!
 |
||||
|
!
 |
||||
|
!
 |
||||
|
!
 |
||||
|
!
 |
||||
|
!
 |
||||
|
!
 |
||||
|
!
 |
||||
|
!
 |
||||
|
no ip domain lookup
 |
||||
|
ip cef
 |
||||
|
ipv6 unicast-routing
 |
||||
|
ipv6 cef
 |
||||
|
!
 |
||||
|
multilink bundle-name authenticated
 |
||||
|
!
 |
||||
|
!
 |
||||
|
!
 |
||||
|
!
 |
||||
|
!
 |
||||
|
redundancy
 |
||||
|
!
 |
||||
|
no cdp run
 |
||||
|
!
 |
||||
|
! 
 |
||||
|
!
 |
||||
|
!
 |
||||
|
!
 |
||||
|
!
 |
||||
|
!
 |
||||
|
!
 |
||||
|
!
 |
||||
|
!
 |
||||
|
!
 |
||||
|
!
 |
||||
|
!
 |
||||
|
!
 |
||||
|
interface Loopback0
 |
||||
|
description Loopback
 |
||||
|
ip address 10.10.10.2 255.255.255.255
 |
||||
|
!
 |
||||
|
interface GigabitEthernet0/0
 |
||||
|
ip address 10.255.0.60 255.255.0.0
 |
||||
|
shutdown
 |
||||
|
duplex auto
 |
||||
|
speed auto
 |
||||
|
media-type rj45
 |
||||
|
!
 |
||||
|
interface GigabitEthernet0/1
 |
||||
|
description to flat-1
 |
||||
|
ip address 172.16.1.115 255.255.255.0
 |
||||
|
ip ospf 1 area 0
 |
||||
|
duplex full
 |
||||
|
speed auto
 |
||||
|
media-type rj45
 |
||||
|
!
 |
||||
|
interface GigabitEthernet0/2
 |
||||
|
description to iosvl2-1
 |
||||
|
no ip address
 |
||||
|
duplex full
 |
||||
|
speed auto
 |
||||
|
media-type rj45
 |
||||
|
!
 |
||||
|
interface GigabitEthernet0/2.10
 |
||||
|
description VLAN10
 |
||||
|
encapsulation dot1Q 10
 |
||||
|
ip address 192.168.21.254 255.255.255.0
 |
||||
|
ip ospf cost 1
 |
||||
|
!
 |
||||
|
interface GigabitEthernet0/2.20
 |
||||
|
description VLAN20
 |
||||
|
encapsulation dot1Q 20
 |
||||
|
ip address 192.168.22.254 255.255.255.0
 |
||||
|
ip ospf cost 1
 |
||||
|
!
 |
||||
|
interface GigabitEthernet0/2.30
 |
||||
|
description VLAN30
 |
||||
|
encapsulation dot1Q 30
 |
||||
|
ip address 192.168.23.254 255.255.255.0
 |
||||
|
ip ospf cost 1
 |
||||
|
!
 |
||||
|
router ospf 1
 |
||||
|
passive-interface Loopback0
 |
||||
|
network 192.168.21.0 0.0.0.255 area 0
 |
||||
|
network 192.168.22.0 0.0.0.255 area 0
 |
||||
|
network 192.168.23.0 0.0.0.255 area 0
 |
||||
|
!
 |
||||
|
ip forward-protocol nd
 |
||||
|
!
 |
||||
|
!
 |
||||
|
no ip http server
 |
||||
|
no ip http secure-server
 |
||||
|
!
 |
||||
|
!
 |
||||
|
!
 |
||||
|
!
 |
||||
|
control-plane
 |
||||
|
!
 |
||||
|
banner exec `
 |
||||
|
**************************************************************************
 |
||||
|
* IOSv is strictly limited to use for evaluation, demonstration and IOS *
 |
||||
|
* education. IOSv is provided as-is and is not supported by Cisco's *
 |
||||
|
* Technical Advisory Center. Any use or disclosure, in whole or in part, *
 |
||||
|
* of the IOSv Software or Documentation to any third party for any *
 |
||||
|
* purposes is expressly prohibited except as otherwise authorized by *
 |
||||
|
* Cisco in writing. *
 |
||||
|
**************************************************************************`
 |
||||
|
banner incoming `
 |
||||
|
**************************************************************************
 |
||||
|
* IOSv is strictly limited to use for evaluation, demonstration and IOS *
 |
||||
|
* education. IOSv is provided as-is and is not supported by Cisco's *
 |
||||
|
* Technical Advisory Center. Any use or disclosure, in whole or in part, *
 |
||||
|
* of the IOSv Software or Documentation to any third party for any *
 |
||||
|
* purposes is expressly prohibited except as otherwise authorized by *
 |
||||
|
* Cisco in writing. *
 |
||||
|
**************************************************************************`
 |
||||
|
banner login `
 |
||||
|
**************************************************************************
 |
||||
|
* IOSv is strictly limited to use for evaluation, demonstration and IOS *
 |
||||
|
* education. IOSv is provided as-is and is not supported by Cisco's *
 |
||||
|
* Technical Advisory Center. Any use or disclosure, in whole or in part, *
 |
||||
|
* of the IOSv Software or Documentation to any third party for any *
 |
||||
|
* purposes is expressly prohibited except as otherwise authorized by *
 |
||||
|
* Cisco in writing. *
 |
||||
|
**************************************************************************`
 |
||||
|
!
 |
||||
|
line con 0
 |
||||
|
password cisco
 |
||||
|
line aux 0
 |
||||
|
line vty 0 4
 |
||||
|
exec-timeout 720 0
 |
||||
|
password cisco
 |
||||
|
login
 |
||||
|
transport input telnet ssh
 |
||||
|
!
 |
||||
|
no scheduler allocate
 |
||||
|
!
 |
||||
|
end</entry> |
||||
|
</extensions> |
||||
|
<interface id="0" name="GigabitEthernet0/1"/> |
||||
|
<interface id="1" name="GigabitEthernet0/2"/> |
||||
|
</node> |
||||
|
<node name="flat-1" type="ASSET" subtype="FLAT" location="145,75" coordinate="52.10650519075632,-116.4990234375"> |
||||
|
<interface id="0" name="link0"/> |
||||
|
</node> |
||||
|
<node name="iosvl2-1" type="SIMPLE" subtype="IOSvL2" location="304,210" coordinate="48.312427904071775,-109.51171875"> |
||||
|
<extensions> |
||||
|
<entry key="AutoNetkit.mgmt_ip" type="string"></entry> |
||||
|
<entry key="config" type="String">!
 |
||||
|
! Last configuration change at 15:26:32 UTC Sat Jan 23 2016
 |
||||
|
!
 |
||||
|
version 15.2
 |
||||
|
service timestamps debug datetime msec
 |
||||
|
service timestamps log datetime msec
 |
||||
|
no service password-encryption
 |
||||
|
service compress-config
 |
||||
|
!
 |
||||
|
hostname iosvl2-1
 |
||||
|
!
 |
||||
|
boot-start-marker
 |
||||
|
boot-end-marker
 |
||||
|
!
 |
||||
|
!
 |
||||
|
vrf definition Mgmt-intf
 |
||||
|
!
 |
||||
|
address-family ipv4
 |
||||
|
exit-address-family
 |
||||
|
!
 |
||||
|
address-family ipv6
 |
||||
|
exit-address-family
 |
||||
|
!
 |
||||
|
enable password cisco
 |
||||
|
!
 |
||||
|
no aaa new-model
 |
||||
|
!
 |
||||
|
!
 |
||||
|
!
 |
||||
|
!
 |
||||
|
!
 |
||||
|
no ip routing
 |
||||
|
!
 |
||||
|
!
 |
||||
|
!
 |
||||
|
no ip domain-lookup
 |
||||
|
no ip cef
 |
||||
|
no ipv6 cef
 |
||||
|
!
 |
||||
|
!
 |
||||
|
!
 |
||||
|
spanning-tree mode pvst
 |
||||
|
spanning-tree extend system-id
 |
||||
|
spanning-tree vlan 10,20 priority 24576
 |
||||
|
!
 |
||||
|
vlan internal allocation policy ascending
 |
||||
|
!
 |
||||
|
! 
 |
||||
|
!
 |
||||
|
!
 |
||||
|
!
 |
||||
|
!
 |
||||
|
!
 |
||||
|
!
 |
||||
|
!
 |
||||
|
!
 |
||||
|
!
 |
||||
|
!
 |
||||
|
!
 |
||||
|
!
 |
||||
|
interface GigabitEthernet0/0
 |
||||
|
media-type rj45
 |
||||
|
negotiation auto
 |
||||
|
!
 |
||||
|
interface GigabitEthernet0/1
 |
||||
|
description to iosv-1
 |
||||
|
switchport trunk allowed vlan 10,30
 |
||||
|
switchport trunk encapsulation dot1q
 |
||||
|
switchport mode trunk
 |
||||
|
media-type rj45
 |
||||
|
negotiation auto
 |
||||
|
spanning-tree bpdufilter enable
 |
||||
|
!
 |
||||
|
interface GigabitEthernet0/2
 |
||||
|
description to iosvl2-2
 |
||||
|
switchport trunk allowed vlan 10,20,30
 |
||||
|
switchport trunk encapsulation dot1q
 |
||||
|
switchport mode trunk
 |
||||
|
shutdown
 |
||||
|
media-type rj45
 |
||||
|
negotiation auto
 |
||||
|
spanning-tree bpduguard enable
 |
||||
|
!
 |
||||
|
interface GigabitEthernet0/3
 |
||||
|
description to iosvl2-3
 |
||||
|
switchport trunk allowed vlan 10,20,30
 |
||||
|
switchport trunk encapsulation dot1q
 |
||||
|
switchport mode trunk
 |
||||
|
media-type rj45
 |
||||
|
negotiation auto
 |
||||
|
!
 |
||||
|
interface GigabitEthernet1/0
 |
||||
|
description to server-1
 |
||||
|
switchport access vlan 20
 |
||||
|
switchport access vlan 30
 |
||||
|
switchport access vlan 10
 |
||||
|
switchport mode access
 |
||||
|
media-type rj45
 |
||||
|
negotiation auto
 |
||||
|
spanning-tree bpdufilter enable
 |
||||
|
!
 |
||||
|
interface Vlan20
 |
||||
|
description VLAN20TEST
 |
||||
|
ip address 192.168.22.251 255.255.255.0
 |
||||
|
no ip route-cache
 |
||||
|
!
 |
||||
|
ip forward-protocol nd
 |
||||
|
!
 |
||||
|
no ip http server
 |
||||
|
no ip http secure-server
 |
||||
|
!
 |
||||
|
!
 |
||||
|
!
 |
||||
|
!
 |
||||
|
!
 |
||||
|
!
 |
||||
|
control-plane
 |
||||
|
!
 |
||||
|
banner exec `
 |
||||
|
**************************************************************************
 |
||||
|
* IOSv is strictly limited to use for evaluation, demonstration and IOS *
 |
||||
|
* education. IOSv is provided as-is and is not supported by Cisco's *
 |
||||
|
* Technical Advisory Center. Any use or disclosure, in whole or in part, *
 |
||||
|
* of the IOSv Software or Documentation to any third party for any *
 |
||||
|
* purposes is expressly prohibited except as otherwise authorized by *
 |
||||
|
* Cisco in writing. *
 |
||||
|
**************************************************************************`
 |
||||
|
banner incoming `
 |
||||
|
**************************************************************************
 |
||||
|
* IOSv is strictly limited to use for evaluation, demonstration and IOS *
 |
||||
|
* education. IOSv is provided as-is and is not supported by Cisco's *
 |
||||
|
* Technical Advisory Center. Any use or disclosure, in whole or in part, *
 |
||||
|
* of the IOSv Software or Documentation to any third party for any *
 |
||||
|
* purposes is expressly prohibited except as otherwise authorized by *
 |
||||
|
* Cisco in writing. *
 |
||||
|
**************************************************************************`
 |
||||
|
banner login `
 |
||||
|
**************************************************************************
 |
||||
|
* IOSv is strictly limited to use for evaluation, demonstration and IOS *
 |
||||
|
* education. IOSv is provided as-is and is not supported by Cisco's *
 |
||||
|
* Technical Advisory Center. Any use or disclosure, in whole or in part, *
 |
||||
|
* of the IOSv Software or Documentation to any third party for any *
 |
||||
|
* purposes is expressly prohibited except as otherwise authorized by *
 |
||||
|
* Cisco in writing. *
 |
||||
|
**************************************************************************`
 |
||||
|
!
 |
||||
|
line con 0
 |
||||
|
password cisco
 |
||||
|
line aux 0
 |
||||
|
line vty 0 4
 |
||||
|
exec-timeout 720 0
 |
||||
|
password cisco
 |
||||
|
login
 |
||||
|
transport input telnet ssh
 |
||||
|
!
 |
||||
|
!
 |
||||
|
end</entry> |
||||
|
</extensions> |
||||
|
<interface id="0" name="GigabitEthernet0/1"/> |
||||
|
<interface id="1" name="GigabitEthernet0/2"/> |
||||
|
<interface id="2" name="GigabitEthernet0/3"/> |
||||
|
<interface id="3" name="GigabitEthernet1/0"/> |
||||
|
</node> |
||||
|
<node name="iosvl2-2" type="SIMPLE" subtype="IOSvL2" location="172,305" coordinate="45.460130637921004,-115.3125"> |
||||
|
<extensions> |
||||
|
<entry key="AutoNetkit.mgmt_ip" type="string"></entry> |
||||
|
<entry key="config" type="String">!
 |
||||
|
! Last configuration change at 15:04:01 UTC Sat Jan 23 2016
 |
||||
|
!
 |
||||
|
version 15.2
 |
||||
|
service timestamps debug datetime msec
 |
||||
|
service timestamps log datetime msec
 |
||||
|
no service password-encryption
 |
||||
|
service compress-config
 |
||||
|
!
 |
||||
|
hostname iosvl2-2
 |
||||
|
!
 |
||||
|
boot-start-marker
 |
||||
|
boot-end-marker
 |
||||
|
!
 |
||||
|
!
 |
||||
|
vrf definition Mgmt-intf
 |
||||
|
!
 |
||||
|
address-family ipv4
 |
||||
|
exit-address-family
 |
||||
|
!
 |
||||
|
address-family ipv6
 |
||||
|
exit-address-family
 |
||||
|
!
 |
||||
|
enable password cisco
 |
||||
|
!
 |
||||
|
no aaa new-model
 |
||||
|
!
 |
||||
|
!
 |
||||
|
!
 |
||||
|
!
 |
||||
|
!
 |
||||
|
!
 |
||||
|
!
 |
||||
|
!
 |
||||
|
no ip domain-lookup
 |
||||
|
ip cef
 |
||||
|
no ipv6 cef
 |
||||
|
!
 |
||||
|
!
 |
||||
|
!
 |
||||
|
spanning-tree mode pvst
 |
||||
|
spanning-tree extend system-id
 |
||||
|
!
 |
||||
|
vlan internal allocation policy ascending
 |
||||
|
!
 |
||||
|
! 
 |
||||
|
!
 |
||||
|
!
 |
||||
|
!
 |
||||
|
!
 |
||||
|
!
 |
||||
|
!
 |
||||
|
!
 |
||||
|
!
 |
||||
|
!
 |
||||
|
!
 |
||||
|
!
 |
||||
|
!
 |
||||
|
interface Loopback0
 |
||||
|
description Loopback
 |
||||
|
no ip address
 |
||||
|
!
 |
||||
|
interface GigabitEthernet0/0
 |
||||
|
media-type rj45
 |
||||
|
negotiation auto
 |
||||
|
!
 |
||||
|
interface GigabitEthernet0/1
 |
||||
|
description to iosvl2-1
 |
||||
|
switchport trunk encapsulation dot1q
 |
||||
|
switchport mode trunk
 |
||||
|
switchport trunk allowed vlan 10,20,30
 |
||||
|
media-type rj45
 |
||||
|
negotiation auto
 |
||||
|
!
 |
||||
|
interface GigabitEthernet0/2
 |
||||
|
description to iosvl2-3
 |
||||
|
switchport trunk encapsulation dot1q
 |
||||
|
switchport mode trunk
 |
||||
|
switchport trunk allowed vlan 10,20,30
 |
||||
|
media-type rj45
 |
||||
|
negotiation auto
 |
||||
|
!
 |
||||
|
interface GigabitEthernet0/3
 |
||||
|
description to server-2
 |
||||
|
switchport trunk encapsulation dot1q
 |
||||
|
switchport trunk native vlan 20
 |
||||
|
switchport mode trunk
 |
||||
|
media-type rj45
 |
||||
|
negotiation auto
 |
||||
|
spanning-tree bpdufilter enable
 |
||||
|
!
 |
||||
|
interface GigabitEthernet1/0
 |
||||
|
switchport mode access
 |
||||
|
switchport access vlan 10
 |
||||
|
switchport access vlan 30 
 |
||||
|
switchport access vlan 20
 |
||||
|
no switchport access vlan 20
 |
||||
|
media-type rj45
 |
||||
|
negotiation auto
 |
||||
|
spanning-tree bpdufilter enable
 |
||||
|
!
 |
||||
|
interface Vlan20
 |
||||
|
description VLAN20TEST
 |
||||
|
ip address 192.168.22.252 255.255.255.0
 |
||||
|
no ip route-cache
 |
||||
|
!
 |
||||
|
ip forward-protocol nd
 |
||||
|
!
 |
||||
|
no ip http server
 |
||||
|
no ip http secure-server
 |
||||
|
!
 |
||||
|
!
 |
||||
|
!
 |
||||
|
!
 |
||||
|
!
 |
||||
|
!
 |
||||
|
control-plane
 |
||||
|
!
 |
||||
|
banner exec `
 |
||||
|
**************************************************************************
 |
||||
|
* IOSv is strictly limited to use for evaluation, demonstration and IOS *
 |
||||
|
* education. IOSv is provided as-is and is not supported by Cisco's *
 |
||||
|
* Technical Advisory Center. Any use or disclosure, in whole or in part, *
 |
||||
|
* of the IOSv Software or Documentation to any third party for any *
 |
||||
|
* purposes is expressly prohibited except as otherwise authorized by *
 |
||||
|
* Cisco in writing. *
 |
||||
|
**************************************************************************`
 |
||||
|
banner incoming `
 |
||||
|
**************************************************************************
 |
||||
|
* IOSv is strictly limited to use for evaluation, demonstration and IOS *
 |
||||
|
* education. IOSv is provided as-is and is not supported by Cisco's *
 |
||||
|
* Technical Advisory Center. Any use or disclosure, in whole or in part, *
 |
||||
|
* of the IOSv Software or Documentation to any third party for any *
 |
||||
|
* purposes is expressly prohibited except as otherwise authorized by *
 |
||||
|
* Cisco in writing. *
 |
||||
|
**************************************************************************`
 |
||||
|
banner login `
 |
||||
|
**************************************************************************
 |
||||
|
* IOSv is strictly limited to use for evaluation, demonstration and IOS *
 |
||||
|
* education. IOSv is provided as-is and is not supported by Cisco's *
 |
||||
|
* Technical Advisory Center. Any use or disclosure, in whole or in part, *
 |
||||
|
* of the IOSv Software or Documentation to any third party for any *
 |
||||
|
* purposes is expressly prohibited except as otherwise authorized by *
 |
||||
|
* Cisco in writing. *
 |
||||
|
**************************************************************************`
 |
||||
|
!
 |
||||
|
line con 0
 |
||||
|
password cisco
 |
||||
|
line aux 0
 |
||||
|
line vty 0 4
 |
||||
|
exec-timeout 720 0
 |
||||
|
password cisco
 |
||||
|
login
 |
||||
|
transport input telnet ssh
 |
||||
|
!
 |
||||
|
!
 |
||||
|
end</entry> |
||||
|
</extensions> |
||||
|
<interface id="0" name="GigabitEthernet0/1"/> |
||||
|
<interface id="1" name="GigabitEthernet0/2"/> |
||||
|
<interface id="2" name="GigabitEthernet0/3"/> |
||||
|
<interface id="3" name="GigabitEthernet1/0"/> |
||||
|
</node> |
||||
|
<node name="server-2" type="SIMPLE" subtype="server" location="172,404" coordinate="42.326062444562034,-115.3125"> |
||||
|
<extensions> |
||||
|
<entry key="config" type="String">#cloud-config
 |
||||
|
bootcmd:
 |
||||
|
- ln -s -t /etc/rc.d /etc/rc.local
 |
||||
|
hostname: server-2
 |
||||
|
manage_etc_hosts: true
 |
||||
|
runcmd:
 |
||||
|
- start ttyS0
 |
||||
|
- systemctl start getty@ttyS0.service
 |
||||
|
- 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.18.10
 |
||||
|
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/init/ttyS0.conf
 |
||||
|
owner: root:root
 |
||||
|
content: |
 |
||||
|
# ttyS0 - getty
 |
||||
|
# This service maintains a getty on ttyS0 from the point the system is
 |
||||
|
# started until it is shut down again.
 |
||||
|
start on stopped rc or RUNLEVEL=[12345]
 |
||||
|
stop on runlevel [!12345]
 |
||||
|
respawn
 |
||||
|
exec /sbin/getty -L 115200 ttyS0 vt102
 |
||||
|
permissions: '0644'
 |
||||
|
- 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 -e
 |
||||
|
ifconfig eth1 up 192.168.22.1 netmask 255.255.255.0
 |
||||
|
route add -host 192.168.1.200 gw 192.168.22.254 dev eth1
 |
||||
|
route add -net 0.0.0.0 gw 192.168.22.254 dev eth1
 |
||||
|
exit 0
 |
||||
|
</entry> |
||||
|
</extensions> |
||||
|
<interface id="0" name="eth1"/> |
||||
|
</node> |
||||
|
<node name="server-3" type="SIMPLE" subtype="server" location="410,402" coordinate="42.39100860920504,-104.853515625"> |
||||
|
<extensions> |
||||
|
<entry key="config" type="String">#cloud-config
 |
||||
|
bootcmd:
 |
||||
|
- ln -s -t /etc/rc.d /etc/rc.local
 |
||||
|
hostname: server-3
 |
||||
|
manage_etc_hosts: true
 |
||||
|
runcmd:
 |
||||
|
- start ttyS0
 |
||||
|
- systemctl start getty@ttyS0.service
 |
||||
|
- 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.18.10
 |
||||
|
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/init/ttyS0.conf
 |
||||
|
owner: root:root
 |
||||
|
content: |
 |
||||
|
# ttyS0 - getty
 |
||||
|
# This service maintains a getty on ttyS0 from the point the system is
 |
||||
|
# started until it is shut down again.
 |
||||
|
start on stopped rc or RUNLEVEL=[12345]
 |
||||
|
stop on runlevel [!12345]
 |
||||
|
respawn
 |
||||
|
exec /sbin/getty -L 115200 ttyS0 vt102
 |
||||
|
permissions: '0644'
 |
||||
|
- 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 -e
 |
||||
|
ifconfig eth1 up 192.168.23.1 netmask 255.255.255.0
 |
||||
|
route add -host 192.168.1.200 gw 192.168.23.254 dev eth1
 |
||||
|
route add -net 0.0.0.0 gw 192.168.23.254 dev eth1
 |
||||
|
exit 0
 |
||||
|
</entry> |
||||
|
</extensions> |
||||
|
<interface id="0" name="eth1"/> |
||||
|
</node> |
||||
|
<node name="server-1" type="SIMPLE" subtype="server" location="547,202" coordinate="48.54570549184746,-98.8330078125"> |
||||
|
<extensions> |
||||
|
<entry key="config" type="String">#cloud-config
 |
||||
|
bootcmd:
 |
||||
|
- ln -s -t /etc/rc.d /etc/rc.local
 |
||||
|
hostname: server-1
 |
||||
|
manage_etc_hosts: true
 |
||||
|
runcmd:
 |
||||
|
- start ttyS0
 |
||||
|
- systemctl start getty@ttyS0.service
 |
||||
|
- 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.18.10
 |
||||
|
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/init/ttyS0.conf
 |
||||
|
owner: root:root
 |
||||
|
content: |
 |
||||
|
# ttyS0 - getty
 |
||||
|
# This service maintains a getty on ttyS0 from the point the system is
 |
||||
|
# started until it is shut down again.
 |
||||
|
start on stopped rc or RUNLEVEL=[12345]
 |
||||
|
stop on runlevel [!12345]
 |
||||
|
respawn
 |
||||
|
exec /sbin/getty -L 115200 ttyS0 vt102
 |
||||
|
permissions: '0644'
 |
||||
|
- 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 -e
 |
||||
|
ifconfig eth1 up 192.168.21.1 netmask 255.255.255.0
 |
||||
|
route add -host 192.168.1.200 gw 192.168.21.254 dev eth1
 |
||||
|
route add -net 0.0.0.0 gw 192.168.21.254 dev eth1
 |
||||
|
exit 0
 |
||||
|
</entry> |
||||
|
</extensions> |
||||
|
<interface id="0" name="eth1"/> |
||||
|
</node> |
||||
|
<node name="iosvl2-3" type="SIMPLE" subtype="IOSvL2" location="410,305" coordinate="45.460130637921004,-104.853515625"> |
||||
|
<extensions> |
||||
|
<entry key="AutoNetkit.mgmt_ip" type="string"></entry> |
||||
|
<entry key="config" type="String">!
 |
||||
|
! Last configuration change at 15:27:02 UTC Sat Jan 23 2016
 |
||||
|
!
 |
||||
|
version 15.2
 |
||||
|
service timestamps debug datetime msec
 |
||||
|
service timestamps log datetime msec
 |
||||
|
no service password-encryption
 |
||||
|
service compress-config
 |
||||
|
!
 |
||||
|
hostname iosvl2-3
 |
||||
|
!
 |
||||
|
boot-start-marker
 |
||||
|
boot-end-marker
 |
||||
|
!
 |
||||
|
!
 |
||||
|
vrf definition Mgmt-intf
 |
||||
|
!
 |
||||
|
address-family ipv4
 |
||||
|
exit-address-family
 |
||||
|
!
 |
||||
|
address-family ipv6
 |
||||
|
exit-address-family
 |
||||
|
!
 |
||||
|
enable password cisco
 |
||||
|
!
 |
||||
|
no aaa new-model
 |
||||
|
!
 |
||||
|
!
 |
||||
|
!
 |
||||
|
!
 |
||||
|
!
 |
||||
|
!
 |
||||
|
!
 |
||||
|
!
 |
||||
|
no ip domain-lookup
 |
||||
|
ip cef
 |
||||
|
no ipv6 cef
 |
||||
|
!
 |
||||
|
!
 |
||||
|
!
 |
||||
|
spanning-tree mode pvst
 |
||||
|
spanning-tree extend system-id
 |
||||
|
spanning-tree vlan 10,20,30 priority 28672
 |
||||
|
!
 |
||||
|
vlan internal allocation policy ascending
 |
||||
|
!
 |
||||
|
! 
 |
||||
|
!
 |
||||
|
!
 |
||||
|
!
 |
||||
|
!
 |
||||
|
!
 |
||||
|
!
 |
||||
|
!
 |
||||
|
!
 |
||||
|
!
 |
||||
|
!
 |
||||
|
!
 |
||||
|
!
 |
||||
|
interface Loopback0
 |
||||
|
description Loopback
 |
||||
|
no ip address
 |
||||
|
!
 |
||||
|
interface GigabitEthernet0/0
 |
||||
|
media-type rj45
 |
||||
|
negotiation auto
 |
||||
|
!
 |
||||
|
interface GigabitEthernet0/1
 |
||||
|
description to iosvl2-1
 |
||||
|
switchport trunk allowed vlan 10,30
 |
||||
|
switchport trunk encapsulation dot1q
 |
||||
|
switchport mode trunk
 |
||||
|
media-type rj45
 |
||||
|
negotiation auto
 |
||||
|
!
 |
||||
|
interface GigabitEthernet0/2
 |
||||
|
description to iosvl2-2
 |
||||
|
switchport trunk allowed vlan 10,20,30
 |
||||
|
switchport trunk encapsulation dot1q
 |
||||
|
switchport mode trunk
 |
||||
|
media-type rj45
 |
||||
|
negotiation auto
 |
||||
|
!
 |
||||
|
interface GigabitEthernet0/3
 |
||||
|
description to server-1
 |
||||
|
switchport access vlan 10
 |
||||
|
switchport access vlan 20
 |
||||
|
switchport access vlan 30
 |
||||
|
switchport mode access
 |
||||
|
media-type rj45
 |
||||
|
negotiation auto
 |
||||
|
spanning-tree bpdufilter enable
 |
||||
|
!
 |
||||
|
interface Vlan20
 |
||||
|
description VLAN20TEST
 |
||||
|
ip address 192.168.22.253 255.255.255.0
 |
||||
|
no ip route-cache
 |
||||
|
!
 |
||||
|
ip forward-protocol nd
 |
||||
|
!
 |
||||
|
no ip http server
 |
||||
|
no ip http secure-server
 |
||||
|
!
 |
||||
|
!
 |
||||
|
!
 |
||||
|
!
 |
||||
|
!
 |
||||
|
!
 |
||||
|
control-plane
 |
||||
|
!
 |
||||
|
banner exec `
 |
||||
|
**************************************************************************
 |
||||
|
* IOSv is strictly limited to use for evaluation, demonstration and IOS *
 |
||||
|
* education. IOSv is provided as-is and is not supported by Cisco's *
 |
||||
|
* Technical Advisory Center. Any use or disclosure, in whole or in part, *
 |
||||
|
* of the IOSv Software or Documentation to any third party for any *
 |
||||
|
* purposes is expressly prohibited except as otherwise authorized by *
 |
||||
|
* Cisco in writing. *
 |
||||
|
**************************************************************************`
 |
||||
|
banner incoming `
 |
||||
|
**************************************************************************
 |
||||
|
* IOSv is strictly limited to use for evaluation, demonstration and IOS *
 |
||||
|
* education. IOSv is provided as-is and is not supported by Cisco's *
 |
||||
|
* Technical Advisory Center. Any use or disclosure, in whole or in part, *
 |
||||
|
* of the IOSv Software or Documentation to any third party for any *
 |
||||
|
* purposes is expressly prohibited except as otherwise authorized by *
 |
||||
|
* Cisco in writing. *
 |
||||
|
**************************************************************************`
 |
||||
|
banner login `
 |
||||
|
**************************************************************************
 |
||||
|
* IOSv is strictly limited to use for evaluation, demonstration and IOS *
 |
||||
|
* education. IOSv is provided as-is and is not supported by Cisco's *
 |
||||
|
* Technical Advisory Center. Any use or disclosure, in whole or in part, *
 |
||||
|
* of the IOSv Software or Documentation to any third party for any *
 |
||||
|
* purposes is expressly prohibited except as otherwise authorized by *
 |
||||
|
* Cisco in writing. *
 |
||||
|
**************************************************************************`
 |
||||
|
!
 |
||||
|
line con 0
 |
||||
|
password cisco
 |
||||
|
line aux 0
 |
||||
|
line vty 0 4
 |
||||
|
exec-timeout 720 0
 |
||||
|
password cisco
 |
||||
|
login
 |
||||
|
transport input telnet ssh
 |
||||
|
!
 |
||||
|
!
 |
||||
|
end</entry> |
||||
|
</extensions> |
||||
|
<interface id="0" name="GigabitEthernet0/1"/> |
||||
|
<interface id="1" name="GigabitEthernet0/2"/> |
||||
|
<interface id="2" name="GigabitEthernet0/3"/> |
||||
|
</node> |
||||
|
<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[3]/virl:interface[1]" src="/virl:topology/virl:node[1]/virl:interface[2]"/> |
||||
|
<connection dst="/virl:topology/virl:node[4]/virl:interface[1]" src="/virl:topology/virl:node[3]/virl:interface[2]"/> |
||||
|
<connection dst="/virl:topology/virl:node[8]/virl:interface[1]" src="/virl:topology/virl:node[3]/virl:interface[3]"/> |
||||
|
<connection dst="/virl:topology/virl:node[8]/virl:interface[2]" src="/virl:topology/virl:node[4]/virl:interface[2]"/> |
||||
|
<connection dst="/virl:topology/virl:node[6]/virl:interface[1]" src="/virl:topology/virl:node[8]/virl:interface[3]"/> |
||||
|
<connection dst="/virl:topology/virl:node[7]/virl:interface[1]" src="/virl:topology/virl:node[3]/virl:interface[4]"/> |
||||
|
<connection dst="/virl:topology/virl:node[5]/virl:interface[1]" src="/virl:topology/virl:node[4]/virl:interface[3]"/> |
||||
|
</topology> |
@ -0,0 +1,10 @@ |
|||||
|
<?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.9" xsi:schemaLocation="http://www.cisco.com/VIRL https://raw.github.com/CiscoVIRL/schema/v0.9/virl.xsd"> |
||||
|
<node name="Server-A" type="SIMPLE" subtype="lxc-iperf" location="344,146"> |
||||
|
<interface id="0" name="eth1"/> |
||||
|
</node> |
||||
|
<node name="flat-1" type="ASSET" subtype="FLAT" location="561,152"> |
||||
|
<interface id="0" name="link0"/> |
||||
|
</node> |
||||
|
<connection dst="/virl:topology/virl:node[2]/virl:interface[1]" src="/virl:topology/virl:node[1]/virl:interface[1]"/> |
||||
|
</topology> |
@ -0,0 +1,421 @@ |
|||||
|
<?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.9" xsi:schemaLocation="http://www.cisco.com/VIRL https://raw.github.com/CiscoVIRL/schema/v0.9/virl.xsd"> |
||||
|
<node name="server-2" type="SIMPLE" subtype="server" location="356,281"> |
||||
|
<extensions> |
||||
|
<entry key="config" type="String">#cloud-config |
||||
|
bootcmd: |
||||
|
- ln -s -t /etc/rc.d /etc/rc.local |
||||
|
hostname: server-2 |
||||
|
manage_etc_hosts: true |
||||
|
runcmd: |
||||
|
- start ttyS0 |
||||
|
- systemctl start getty@ttyS0.service |
||||
|
- 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/init/ttyS0.conf |
||||
|
owner: root:root |
||||
|
content: | |
||||
|
# ttyS0 - getty |
||||
|
# This service maintains a getty on ttyS0 from the point the system is |
||||
|
# started until it is shut down again. |
||||
|
start on stopped rc or RUNLEVEL=[12345] |
||||
|
stop on runlevel [!12345] |
||||
|
respawn |
||||
|
exec /sbin/getty -L 115200 ttyS0 vt102 |
||||
|
permissions: '0644' |
||||
|
- 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 10.0.0.2 netmask 255.255.0.0 |
||||
|
route add -net 0.0.0.0 gw 10.0.0.254 dev eth1 |
||||
|
exit 0 |
||||
|
</entry> |
||||
|
</extensions> |
||||
|
<interface id="0" name="eth1"/> |
||||
|
</node> |
||||
|
<node name="iosv-1" type="SIMPLE" subtype="IOSv" location="310,72"> |
||||
|
<extensions> |
||||
|
<entry key="AutoNetkit.mgmt_ip" type="string"></entry> |
||||
|
<entry key="config" type="String">!
 |
||||
|
! Last configuration change at 12:56:28 UTC Thu Jan 7 2016
 |
||||
|
!
 |
||||
|
version 15.6
 |
||||
|
service timestamps debug datetime msec
 |
||||
|
service timestamps log datetime msec
 |
||||
|
no service password-encryption
 |
||||
|
!
 |
||||
|
hostname iosv-1
 |
||||
|
!
 |
||||
|
boot-start-marker
 |
||||
|
boot-end-marker
 |
||||
|
!
 |
||||
|
!
 |
||||
|
vrf definition Mgmt-intf
 |
||||
|
!
 |
||||
|
address-family ipv4
 |
||||
|
exit-address-family
 |
||||
|
!
 |
||||
|
address-family ipv6
 |
||||
|
exit-address-family
 |
||||
|
!
 |
||||
|
enable password cisco
 |
||||
|
!
 |
||||
|
no aaa new-model
 |
||||
|
ethernet lmi ce
 |
||||
|
!
 |
||||
|
!
 |
||||
|
!
 |
||||
|
mmi polling-interval 60
 |
||||
|
no mmi auto-configure
 |
||||
|
no mmi pvc
 |
||||
|
mmi snmp-timeout 180
 |
||||
|
!
 |
||||
|
!
 |
||||
|
!
 |
||||
|
!
 |
||||
|
!
 |
||||
|
!
 |
||||
|
!
 |
||||
|
!
 |
||||
|
!
 |
||||
|
!
 |
||||
|
!
 |
||||
|
no ip domain lookup
 |
||||
|
ip domain name virl.info
 |
||||
|
ip cef
 |
||||
|
ipv6 unicast-routing
 |
||||
|
ipv6 cef
 |
||||
|
!
 |
||||
|
multilink bundle-name authenticated
 |
||||
|
!
 |
||||
|
!
 |
||||
|
!
 |
||||
|
!
 |
||||
|
username cisco privilege 15 secret 5 $1$gpK0$gsMlKft9BVgHyhPugqzW9.
 |
||||
|
!
 |
||||
|
redundancy
 |
||||
|
!
 |
||||
|
no cdp run
 |
||||
|
!
 |
||||
|
! 
 |
||||
|
!
 |
||||
|
!
 |
||||
|
!
 |
||||
|
!
 |
||||
|
!
 |
||||
|
!
 |
||||
|
!
 |
||||
|
!
 |
||||
|
!
 |
||||
|
!
 |
||||
|
!
 |
||||
|
!
 |
||||
|
interface Loopback0
 |
||||
|
description Loopback
 |
||||
|
ip address 10.10.10.10 255.255.255.255
 |
||||
|
!
 |
||||
|
interface GigabitEthernet0/0
 |
||||
|
description OOB Management
 |
||||
|
vrf forwarding Mgmt-intf
 |
||||
|
ip address 10.255.0.44 255.255.0.0
 |
||||
|
duplex full
 |
||||
|
speed auto
 |
||||
|
media-type rj45
 |
||||
|
!
 |
||||
|
interface GigabitEthernet0/1
 |
||||
|
description to flat-1
 |
||||
|
ip address 172.16.1.111 255.255.255.0
 |
||||
|
ip ospf 1 area 0
 |
||||
|
duplex full
 |
||||
|
speed auto
 |
||||
|
media-type rj45
 |
||||
|
!
 |
||||
|
interface GigabitEthernet0/2
 |
||||
|
description to iosvl2-1
 |
||||
|
ip address 10.0.0.254 255.255.0.0
 |
||||
|
ip ospf cost 1
 |
||||
|
duplex full
 |
||||
|
speed auto
 |
||||
|
media-type rj45
 |
||||
|
!
 |
||||
|
interface GigabitEthernet0/3
 |
||||
|
no ip address
 |
||||
|
shutdown
 |
||||
|
duplex auto
 |
||||
|
speed auto
 |
||||
|
media-type rj45
 |
||||
|
!
 |
||||
|
router ospf 1
 |
||||
|
passive-interface Loopback0
 |
||||
|
network 10.0.0.0 0.0.255.255 area 0
 |
||||
|
!
 |
||||
|
ip forward-protocol nd
 |
||||
|
!
 |
||||
|
!
 |
||||
|
no ip http server
 |
||||
|
no ip http secure-server
 |
||||
|
ip ssh server algorithm authentication password
 |
||||
|
!
 |
||||
|
!
 |
||||
|
!
 |
||||
|
!
 |
||||
|
control-plane
 |
||||
|
!
 |
||||
|
banner exec `
 |
||||
|
**************************************************************************
 |
||||
|
* IOSv is strictly limited to use for evaluation, demonstration and IOS *
 |
||||
|
* education. IOSv is provided as-is and is not supported by Cisco's *
 |
||||
|
* Technical Advisory Center. Any use or disclosure, in whole or in part, *
 |
||||
|
* of the IOSv Software or Documentation to any third party for any *
 |
||||
|
* purposes is expressly prohibited except as otherwise authorized by *
 |
||||
|
* Cisco in writing. *
 |
||||
|
**************************************************************************`
 |
||||
|
banner incoming `
 |
||||
|
**************************************************************************
 |
||||
|
* IOSv is strictly limited to use for evaluation, demonstration and IOS *
 |
||||
|
* education. IOSv is provided as-is and is not supported by Cisco's *
 |
||||
|
* Technical Advisory Center. Any use or disclosure, in whole or in part, *
 |
||||
|
* of the IOSv Software or Documentation to any third party for any *
 |
||||
|
* purposes is expressly prohibited except as otherwise authorized by *
 |
||||
|
* Cisco in writing. *
 |
||||
|
**************************************************************************`
 |
||||
|
banner login `
 |
||||
|
**************************************************************************
 |
||||
|
* IOSv is strictly limited to use for evaluation, demonstration and IOS *
 |
||||
|
* education. IOSv is provided as-is and is not supported by Cisco's *
 |
||||
|
* Technical Advisory Center. Any use or disclosure, in whole or in part, *
 |
||||
|
* of the IOSv Software or Documentation to any third party for any *
 |
||||
|
* purposes is expressly prohibited except as otherwise authorized by *
 |
||||
|
* Cisco in writing. *
 |
||||
|
**************************************************************************`
 |
||||
|
!
 |
||||
|
line con 0
 |
||||
|
password cisco
 |
||||
|
line aux 0
 |
||||
|
line vty 0 4
 |
||||
|
exec-timeout 720 0
 |
||||
|
password cisco
 |
||||
|
login local
 |
||||
|
transport input telnet ssh
 |
||||
|
!
 |
||||
|
no scheduler allocate
 |
||||
|
!
 |
||||
|
end</entry> |
||||
|
</extensions> |
||||
|
<interface id="0" name="GigabitEthernet0/1"/> |
||||
|
<interface id="1" name="GigabitEthernet0/2"/> |
||||
|
<interface id="2" name="GigabitEthernet0/3"/> |
||||
|
</node> |
||||
|
<node name="server-1" type="SIMPLE" subtype="server" location="260,282"> |
||||
|
<extensions> |
||||
|
<entry key="config" type="String">#cloud-config |
||||
|
bootcmd: |
||||
|
- ln -s -t /etc/rc.d /etc/rc.local |
||||
|
hostname: server-10 |
||||
|
manage_etc_hosts: true |
||||
|
runcmd: |
||||
|
- start ttyS0 |
||||
|
- systemctl start getty@ttyS0.service |
||||
|
- 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/init/ttyS0.conf |
||||
|
owner: root:root |
||||
|
content: | |
||||
|
# ttyS0 - getty |
||||
|
# This service maintains a getty on ttyS0 from the point the system is |
||||
|
# started until it is shut down again. |
||||
|
start on stopped rc or RUNLEVEL=[12345] |
||||
|
stop on runlevel [!12345] |
||||
|
respawn |
||||
|
exec /sbin/getty -L 115200 ttyS0 vt102 |
||||
|
permissions: '0644' |
||||
|
- 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 10.0.0.1 netmask 255.255.0.0 |
||||
|
route add -net 0.0.0.0 gw 10.0.0.254 dev eth1 |
||||
|
exit 0 |
||||
|
</entry> |
||||
|
</extensions> |
||||
|
<interface id="0" name="eth1"/> |
||||
|
<interface id="1" name="eth2"/> |
||||
|
</node> |
||||
|
<node name="flat-1" type="ASSET" subtype="FLAT" location="135,75"> |
||||
|
<interface id="0" name="link0"/> |
||||
|
</node> |
||||
|
<node name="iosvl2-1" type="SIMPLE" subtype="IOSvL2" location="306,198"> |
||||
|
<extensions> |
||||
|
<entry key="config" type="String">! |
||||
|
! Last configuration change at 12:56:05 UTC Thu Jan 7 2016 |
||||
|
! |
||||
|
version 15.2 |
||||
|
service timestamps debug datetime msec |
||||
|
service timestamps log datetime msec |
||||
|
no service password-encryption |
||||
|
service compress-config |
||||
|
! |
||||
|
hostname Switch |
||||
|
! |
||||
|
boot-start-marker |
||||
|
boot-end-marker |
||||
|
! |
||||
|
! |
||||
|
! |
||||
|
no aaa new-model |
||||
|
! |
||||
|
! |
||||
|
! |
||||
|
! |
||||
|
! |
||||
|
! |
||||
|
! |
||||
|
! |
||||
|
ip cef |
||||
|
no ipv6 cef |
||||
|
! |
||||
|
! |
||||
|
! |
||||
|
spanning-tree mode rapid-pvst |
||||
|
spanning-tree extend system-id |
||||
|
! |
||||
|
vlan internal allocation policy ascending |
||||
|
! |
||||
|
! |
||||
|
! |
||||
|
! |
||||
|
! |
||||
|
! |
||||
|
! |
||||
|
! |
||||
|
! |
||||
|
! |
||||
|
! |
||||
|
! |
||||
|
! |
||||
|
! |
||||
|
interface GigabitEthernet0/0 |
||||
|
media-type rj45 |
||||
|
negotiation auto |
||||
|
! |
||||
|
interface GigabitEthernet0/1 |
||||
|
media-type rj45 |
||||
|
negotiation auto |
||||
|
! |
||||
|
interface GigabitEthernet0/2 |
||||
|
media-type rj45 |
||||
|
negotiation auto |
||||
|
! |
||||
|
interface GigabitEthernet0/3 |
||||
|
media-type rj45 |
||||
|
negotiation auto |
||||
|
! |
||||
|
ip forward-protocol nd |
||||
|
! |
||||
|
no ip http server |
||||
|
no ip http secure-server |
||||
|
! |
||||
|
! |
||||
|
! |
||||
|
! |
||||
|
! |
||||
|
! |
||||
|
control-plane |
||||
|
! |
||||
|
banner exec ` |
||||
|
************************************************************************** |
||||
|
* IOSv is strictly limited to use for evaluation, demonstration and IOS * |
||||
|
* education. IOSv is provided as-is and is not supported by Cisco's * |
||||
|
* Technical Advisory Center. Any use or disclosure, in whole or in part, * |
||||
|
* of the IOSv Software or Documentation to any third party for any * |
||||
|
* purposes is expressly prohibited except as otherwise authorized by * |
||||
|
* Cisco in writing. * |
||||
|
**************************************************************************` |
||||
|
banner incoming ` |
||||
|
************************************************************************** |
||||
|
* IOSv is strictly limited to use for evaluation, demonstration and IOS * |
||||
|
* education. IOSv is provided as-is and is not supported by Cisco's * |
||||
|
* Technical Advisory Center. Any use or disclosure, in whole or in part, * |
||||
|
* of the IOSv Software or Documentation to any third party for any * |
||||
|
* purposes is expressly prohibited except as otherwise authorized by * |
||||
|
* Cisco in writing. * |
||||
|
**************************************************************************` |
||||
|
banner login ` |
||||
|
************************************************************************** |
||||
|
* IOSv is strictly limited to use for evaluation, demonstration and IOS * |
||||
|
* education. IOSv is provided as-is and is not supported by Cisco's * |
||||
|
* Technical Advisory Center. Any use or disclosure, in whole or in part, * |
||||
|
* of the IOSv Software or Documentation to any third party for any * |
||||
|
* purposes is expressly prohibited except as otherwise authorized by * |
||||
|
* Cisco in writing. * |
||||
|
**************************************************************************` |
||||
|
! |
||||
|
line con 0 |
||||
|
line aux 0 |
||||
|
line vty 0 4 |
||||
|
! |
||||
|
! |
||||
|
end</entry> |
||||
|
</extensions> |
||||
|
<interface id="0" name="GigabitEthernet0/1"/> |
||||
|
<interface id="1" name="GigabitEthernet0/2"/> |
||||
|
<interface id="2" name="GigabitEthernet0/3"/> |
||||
|
</node> |
||||
|
<connection dst="/virl:topology/virl:node[2]/virl:interface[1]" src="/virl:topology/virl:node[4]/virl:interface[1]"/> |
||||
|
<connection dst="/virl:topology/virl:node[1]/virl:interface[1]" src="/virl:topology/virl:node[5]/virl:interface[1]"/> |
||||
|
<connection dst="/virl:topology/virl:node[5]/virl:interface[2]" src="/virl:topology/virl:node[3]/virl:interface[1]"/> |
||||
|
<connection dst="/virl:topology/virl:node[2]/virl:interface[2]" src="/virl:topology/virl:node[5]/virl:interface[3]"/> |
||||
|
</topology> |
Write
Preview
Loading…
Cancel
Save
Reference in new issue