|
|
@ -6,7 +6,7 @@ |
|
|
|
<node name="iosv-1" type="SIMPLE" subtype="IOSv" location="397,74" ipv4="192.168.0.1"> |
|
|
|
<extensions> |
|
|
|
<entry key="config" type="string">! |
|
|
|
! Last configuration change at 12:23:28 UTC Sat Jun 27 2015 |
|
|
|
! Last configuration change at 19:06:54 UTC Fri Jul 10 2015 |
|
|
|
! |
|
|
|
version 15.5 |
|
|
|
service timestamps debug datetime msec |
|
|
@ -77,7 +77,7 @@ interface Loopback0 |
|
|
|
! |
|
|
|
interface GigabitEthernet0/0 |
|
|
|
description OOB Management |
|
|
|
ip address 10.255.0.253 255.255.0.0 |
|
|
|
ip address 10.255.1.73 255.255.0.0 |
|
|
|
duplex auto |
|
|
|
speed auto |
|
|
|
media-type rj45 |
|
|
@ -94,7 +94,7 @@ interface GigabitEthernet0/1 |
|
|
|
! |
|
|
|
interface GigabitEthernet0/2 |
|
|
|
description to flat-1 |
|
|
|
ip address 172.16.1.148 255.255.255.0 |
|
|
|
ip address 172.16.1.170 255.255.255.0 |
|
|
|
ip nat outside |
|
|
|
ip nat enable |
|
|
|
ip virtual-reassembly in |
|
|
@ -114,7 +114,7 @@ no ip http server |
|
|
|
no ip http secure-server |
|
|
|
ip nat inside source list 1 interface GigabitEthernet0/2 overload |
|
|
|
ip default-network 172.16.1.0 |
|
|
|
ip route 0.0.0.0 0.0.0.0 172.16.1.1 |
|
|
|
ip route 0.0.0.0 0.0.0.0 172.16.1.254 |
|
|
|
! |
|
|
|
! |
|
|
|
! |
|
|
@ -170,7 +170,7 @@ end</entry> |
|
|
|
<node name="iosvl2-1" type="SIMPLE" subtype="IOSvL2" location="251,242"> |
|
|
|
<extensions> |
|
|
|
<entry key="config" type="string">! |
|
|
|
! Last configuration change at 19:34:48 UTC Fri Jun 26 2015 |
|
|
|
! Last configuration change at 19:03:15 UTC Fri Jul 10 2015 |
|
|
|
! |
|
|
|
version 15.2 |
|
|
|
service timestamps debug datetime msec |
|
|
@ -243,7 +243,7 @@ interface GigabitEthernet0/2 |
|
|
|
! |
|
|
|
interface Vlan1 |
|
|
|
description OOB Management |
|
|
|
ip address 10.255.0.252 255.255.0.0 |
|
|
|
ip address 10.255.1.74 255.255.0.0 |
|
|
|
! |
|
|
|
ip forward-protocol nd |
|
|
|
! |
|
|
@ -304,7 +304,7 @@ end</entry> |
|
|
|
<node name="iosvl2-2" type="SIMPLE" subtype="IOSvL2" location="517,242"> |
|
|
|
<extensions> |
|
|
|
<entry key="config" type="string">! |
|
|
|
! Last configuration change at 19:34:48 UTC Fri Jun 26 2015 |
|
|
|
! Last configuration change at 19:03:17 UTC Fri Jul 10 2015 |
|
|
|
! |
|
|
|
version 15.2 |
|
|
|
service timestamps debug datetime msec |
|
|
@ -377,7 +377,7 @@ interface GigabitEthernet0/2 |
|
|
|
! |
|
|
|
interface Vlan1 |
|
|
|
description OOB Management |
|
|
|
ip address 10.255.0.247 255.255.0.0 |
|
|
|
ip address 10.255.1.75 255.255.0.0 |
|
|
|
! |
|
|
|
ip forward-protocol nd |
|
|
|
! |
|
|
@ -438,7 +438,7 @@ end</entry> |
|
|
|
<node name="iosvl2-3" type="SIMPLE" subtype="IOSvL2" location="391,172"> |
|
|
|
<extensions> |
|
|
|
<entry key="config" type="string">! |
|
|
|
! Last configuration change at 19:34:50 UTC Fri Jun 26 2015 |
|
|
|
! Last configuration change at 19:03:21 UTC Fri Jul 10 2015 |
|
|
|
! |
|
|
|
version 15.2 |
|
|
|
service timestamps debug datetime msec |
|
|
@ -518,7 +518,7 @@ interface GigabitEthernet0/3 |
|
|
|
! |
|
|
|
interface Vlan1 |
|
|
|
description OOB Management |
|
|
|
ip address 10.255.0.250 255.255.0.0 |
|
|
|
ip address 10.255.1.76 255.255.0.0 |
|
|
|
! |
|
|
|
ip forward-protocol nd |
|
|
|
! |
|
|
@ -579,128 +579,128 @@ end</entry> |
|
|
|
</node> |
|
|
|
<node name="server-1" type="SIMPLE" subtype="server" location="251,336"> |
|
|
|
<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.15.8
 |
|
|
|
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 10.0.0.2 netmask 255.255.0.0
 |
|
|
|
route add -net 10.0.0.0/16 gw 10.0.0.1 dev eth1
 |
|
|
|
route add -net 192.168.0.0/29 gw 10.0.0.1 dev eth1
 |
|
|
|
route del default
 |
|
|
|
route add default gw 10.0.0.1
 |
|
|
|
route del -net 10.0.0.0 netmask 255.255.0.0 gw 10.0.0.1
 |
|
|
|
exit 0
 |
|
|
|
<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.15.8 |
|
|
|
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 10.0.0.2 netmask 255.255.0.0 |
|
|
|
route add -net 10.0.0.0/16 gw 10.0.0.1 dev eth1 |
|
|
|
route add -net 192.168.0.0/29 gw 10.0.0.1 dev eth1 |
|
|
|
route del default |
|
|
|
route add default gw 10.0.0.1 |
|
|
|
route del -net 10.0.0.0 netmask 255.255.0.0 gw 10.0.0.1 |
|
|
|
exit 0 |
|
|
|
</entry> |
|
|
|
</extensions> |
|
|
|
<interface id="0" name="eth1" ipv4="10.0.0.2" netPrefixLenV4="16"/> |
|
|
|
</node> |
|
|
|
<node name="server-2" type="SIMPLE" subtype="server" location="517,336"> |
|
|
|
<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.15.8
 |
|
|
|
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 10.0.0.3 netmask 255.255.0.0
 |
|
|
|
route add -net 10.0.0.0/16 gw 10.0.0.1 dev eth1
 |
|
|
|
route add -net 192.168.0.0/29 gw 10.0.0.1 dev eth1
 |
|
|
|
route del default
 |
|
|
|
route add default gw 10.0.0.1
 |
|
|
|
route del -net 10.0.0.0 netmask 255.255.0.0 gw 10.0.0.1
 |
|
|
|
exit 0
 |
|
|
|
<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.15.8 |
|
|
|
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 10.0.0.3 netmask 255.255.0.0 |
|
|
|
route add -net 10.0.0.0/16 gw 10.0.0.1 dev eth1 |
|
|
|
route add -net 192.168.0.0/29 gw 10.0.0.1 dev eth1 |
|
|
|
route del default |
|
|
|
route add default gw 10.0.0.1 |
|
|
|
route del -net 10.0.0.0 netmask 255.255.0.0 gw 10.0.0.1 |
|
|
|
exit 0 |
|
|
|
</entry> |
|
|
|
</extensions> |
|
|
|
<interface id="0" name="eth1" ipv4="10.0.0.3" netPrefixLenV4="16"/> |
|
|
|