|
|
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <topology xmlns="http://www.cisco.com/VIRL" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" schemaVersion="0.95" xsi:schemaLocation="http://www.cisco.com/VIRL https://raw.github.com/CiscoVIRL/schema/v0.95/virl.xsd"> <extensions> <entry key="management_network" type="String">exclusive</entry> </extensions> <node name="spine-1" type="SIMPLE" subtype="IOSv" location="426,105"> <extensions> <entry key="config" type="String">! ! Last configuration change at 14:29:03 CET Wed Nov 30 2016 ! version 15.6 service timestamps debug datetime msec service timestamps log datetime msec service password-encryption ! hostname spine-1 ! boot-start-marker boot-end-marker ! ! ! no aaa new-model ethernet lmi ce ! ! ! clock timezone CET 1 0 mmi polling-interval 60 no mmi auto-configure no mmi pvc mmi snmp-timeout 180 ! ! ! ! ! ! ! ! ! ! ! no ip domain lookup ip cef no ipv6 cef ! multilink bundle-name authenticated ! ! ! ! username cisco privilege 15 secret 5 $1$nweY$x0TQtwRt2ggTdCTvtKdRi0 ! redundancy ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! interface GigabitEthernet0/0 ip address 10.255.0.7 255.255.0.0 duplex auto speed auto media-type rj45 ! interface GigabitEthernet0/1 description link to leaf-1 ip address 10.20.30.1 255.255.255.252 duplex auto speed auto media-type rj45 ! interface GigabitEthernet0/2 description link to leaf-2 ip address 10.20.30.9 255.255.255.252 duplex auto speed auto media-type rj45 ! interface GigabitEthernet0/3 description link to leaf-3 ip address 10.20.30.17 255.255.255.252 duplex auto speed auto media-type rj45 ! interface GigabitEthernet0/4 description link to leaf-4 ip address 10.20.30.25 255.255.255.252 duplex auto speed auto media-type rj45 ! router bgp 65000 bgp router-id 1.1.1.1 bgp log-neighbor-changes bgp confederation identifier 100 bgp confederation peers 65001 65002 65003 65004 neighbor 10.20.30.2 remote-as 65001 neighbor 10.20.30.2 next-hop-self neighbor 10.20.30.10 remote-as 65002 neighbor 10.20.30.10 next-hop-self neighbor 10.20.30.18 remote-as 65003 neighbor 10.20.30.18 next-hop-self neighbor 10.20.30.26 remote-as 65004 neighbor 10.20.30.26 next-hop-self ! 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 logging synchronous login local line aux 0 line vty 0 4 logging synchronous login local transport input telnet ssh line vty 5 15 logging synchronous 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"/> <interface id="3" name="GigabitEthernet0/4"/> </node> <node name="spine-2" type="SIMPLE" subtype="IOSv" location="600,105"> <extensions> <entry key="config" type="String">! ! Last configuration change at 14:28:55 CET Wed Nov 30 2016 ! version 15.6 service timestamps debug datetime msec service timestamps log datetime msec service password-encryption ! hostname spine-2 ! boot-start-marker boot-end-marker ! ! ! no aaa new-model ethernet lmi ce ! ! ! clock timezone CET 1 0 mmi polling-interval 60 no mmi auto-configure no mmi pvc mmi snmp-timeout 180 ! ! ! ! ! ! ! ! ! ! ! no ip domain lookup ip cef no ipv6 cef ! multilink bundle-name authenticated ! ! ! ! username cisco privilege 15 secret 5 $1$cL/v$qrcXyZEupb.OCk1OuDiAy1 ! redundancy ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! interface GigabitEthernet0/0 ip address 10.255.0.8 255.255.0.0 duplex auto speed auto media-type rj45 ! interface GigabitEthernet0/1 description link to leaf-1 ip address 10.20.30.5 255.255.255.252 duplex auto speed auto media-type rj45 ! interface GigabitEthernet0/2 description link to leaf-2 ip address 10.20.30.13 255.255.255.252 duplex auto speed auto media-type rj45 ! interface GigabitEthernet0/3 description link to leaf-3 ip address 10.20.30.21 255.255.255.252 duplex auto speed auto media-type rj45 ! interface GigabitEthernet0/4 description link to leaf-4 ip address 10.20.30.29 255.255.255.252 duplex auto speed auto media-type rj45 ! router bgp 65000 bgp router-id 2.2.2.2 bgp log-neighbor-changes bgp confederation identifier 100 bgp confederation peers 65001 65002 65003 65004 neighbor 10.20.30.6 remote-as 65001 neighbor 10.20.30.6 next-hop-self neighbor 10.20.30.14 remote-as 65002 neighbor 10.20.30.14 next-hop-self neighbor 10.20.30.22 remote-as 65003 neighbor 10.20.30.22 next-hop-self neighbor 10.20.30.30 remote-as 65004 neighbor 10.20.30.30 next-hop-self ! 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 logging synchronous login local line aux 0 line vty 0 4 logging synchronous login local transport input telnet ssh line vty 5 15 logging synchronous 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"/> <interface id="3" name="GigabitEthernet0/4"/> </node> <node name="leaf-1" type="SIMPLE" subtype="IOSv" location="265,248"> <extensions> <entry key="config" type="String">! ! Last configuration change at 14:26:16 CET Wed Nov 30 2016 ! version 15.6 service timestamps debug datetime msec service timestamps log datetime msec service password-encryption ! hostname leaf-1 ! boot-start-marker boot-end-marker ! ! ! no aaa new-model ethernet lmi ce ! ! ! clock timezone CET 1 0 mmi polling-interval 60 no mmi auto-configure no mmi pvc mmi snmp-timeout 180 ! ! ! ! ! ! ! ! ! ! ! no ip domain lookup ip cef no ipv6 cef ! multilink bundle-name authenticated ! ! ! ! username cisco privilege 15 secret 5 $1$SdH3$iGZzZqU44fXMrTpESXF1o1 ! redundancy ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! interface GigabitEthernet0/0 ip address 10.255.0.3 255.255.0.0 duplex auto speed auto media-type rj45 ! interface GigabitEthernet0/1 description link to spine-1 ip address 10.20.30.2 255.255.255.252 duplex auto speed auto media-type rj45 ! interface GigabitEthernet0/2 description link to spine-2 ip address 10.20.30.6 255.255.255.252 duplex auto speed auto media-type rj45 ! interface GigabitEthernet0/3 description link to client-1 ip address 172.23.24.1 255.255.255.0 duplex auto speed auto media-type rj45 ! interface GigabitEthernet0/4 no ip address shutdown duplex auto speed auto media-type rj45 ! router bgp 65001 bgp router-id 11.11.11.11 bgp log-neighbor-changes bgp confederation identifier 100 bgp confederation peers 65000 network 172.23.24.0 mask 255.255.255.0 neighbor 10.20.30.1 remote-as 65000 neighbor 10.20.30.1 next-hop-self neighbor 10.20.30.5 remote-as 65000 neighbor 10.20.30.5 next-hop-self maximum-paths 2 ! 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 logging synchronous login local line aux 0 line vty 0 4 logging synchronous login local transport input telnet ssh line vty 5 15 logging synchronous 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"/> <interface id="3" name="GigabitEthernet0/4"/> </node> <node name="leaf-2" type="SIMPLE" subtype="IOSv" location="430,248"> <extensions> <entry key="config" type="String">! ! Last configuration change at 14:26:09 CET Wed Nov 30 2016 ! version 15.6 service timestamps debug datetime msec service timestamps log datetime msec service password-encryption ! hostname leaf-2 ! boot-start-marker boot-end-marker ! ! ! no aaa new-model ethernet lmi ce ! ! ! clock timezone CET 1 0 mmi polling-interval 60 no mmi auto-configure no mmi pvc mmi snmp-timeout 180 ! ! ! ! ! ! ! ! ! ! ! no ip domain lookup ip cef no ipv6 cef ! multilink bundle-name authenticated ! ! ! ! username cisco privilege 15 secret 5 $1$FYDA$TAgLSUD7XpJUwNyqmlDse. ! redundancy ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! interface GigabitEthernet0/0 ip address 10.255.0.4 255.255.0.0 duplex auto speed auto media-type rj45 ! interface GigabitEthernet0/1 description link to spine-1 ip address 10.20.30.10 255.255.255.252 duplex auto speed auto media-type rj45 ! interface GigabitEthernet0/2 description link to spine-2 ip address 10.20.30.14 255.255.255.252 duplex auto speed auto media-type rj45 ! interface GigabitEthernet0/3 description link to client-2 ip address 172.23.25.1 255.255.255.0 duplex auto speed auto media-type rj45 ! router bgp 65002 bgp router-id 22.22.22.22 bgp log-neighbor-changes bgp confederation identifier 100 bgp confederation peers 65000 network 172.23.25.0 mask 255.255.255.0 neighbor 10.20.30.9 remote-as 65000 neighbor 10.20.30.9 next-hop-self neighbor 10.20.30.13 remote-as 65000 neighbor 10.20.30.13 next-hop-self maximum-paths 2 ! 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 logging synchronous login local line aux 0 line vty 0 4 logging synchronous login local transport input telnet ssh line vty 5 15 logging synchronous 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="leaf-3" type="SIMPLE" subtype="IOSv" location="609,248"> <extensions> <entry key="config" type="String">! ! Last configuration change at 14:26:48 CET Wed Nov 30 2016 ! version 15.6 service timestamps debug datetime msec service timestamps log datetime msec service password-encryption ! hostname leaf-3 ! boot-start-marker boot-end-marker ! ! ! no aaa new-model ethernet lmi ce ! ! ! clock timezone CET 1 0 mmi polling-interval 60 no mmi auto-configure no mmi pvc mmi snmp-timeout 180 ! ! ! ! ! ! ! ! ! ! ! no ip domain lookup ip cef no ipv6 cef ! multilink bundle-name authenticated ! ! ! ! username cisco privilege 15 secret 5 $1$ZUhD$MAfmYiea4QNYl6z9nwEtC1 ! redundancy ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! interface GigabitEthernet0/0 ip address 10.255.0.5 255.255.0.0 duplex auto speed auto media-type rj45 ! interface GigabitEthernet0/1 description link to spine-1 ip address 10.20.30.18 255.255.255.252 duplex auto speed auto media-type rj45 ! interface GigabitEthernet0/2 description link to spine-2 ip address 10.20.30.22 255.255.255.252 duplex auto speed auto media-type rj45 ! interface GigabitEthernet0/3 description link to client-3 ip address 172.23.26.1 255.255.255.0 duplex auto speed auto media-type rj45 ! router bgp 65003 bgp router-id 33.33.33.33 bgp log-neighbor-changes bgp confederation identifier 100 bgp confederation peers 65000 network 172.23.26.0 mask 255.255.255.0 neighbor 10.20.30.17 remote-as 65000 neighbor 10.20.30.17 next-hop-self neighbor 10.20.30.21 remote-as 65000 neighbor 10.20.30.21 next-hop-self maximum-paths 2 ! 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 logging synchronous login local line aux 0 line vty 0 4 logging synchronous login local transport input telnet ssh line vty 5 15 logging synchronous 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="leaf-4" type="SIMPLE" subtype="IOSv" location="774,248"> <extensions> <entry key="config" type="String">! ! Last configuration change at 14:27:45 CET Wed Nov 30 2016 ! version 15.6 service timestamps debug datetime msec service timestamps log datetime msec service password-encryption ! hostname leaf-4 ! boot-start-marker boot-end-marker ! ! ! no aaa new-model ethernet lmi ce ! ! ! clock timezone CET 1 0 mmi polling-interval 60 no mmi auto-configure no mmi pvc mmi snmp-timeout 180 ! ! ! ! ! ! ! ! ! ! ! no ip domain lookup ip cef no ipv6 cef ! multilink bundle-name authenticated ! ! ! ! username cisco privilege 15 secret 5 $1$rSUp$Yk1zrTVTCbuXTsSk1IEDD1 ! redundancy ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! interface GigabitEthernet0/0 ip address 10.255.0.6 255.255.0.0 duplex auto speed auto media-type rj45 ! interface GigabitEthernet0/1 description link to spine-1 ip address 10.20.30.26 255.255.255.252 duplex auto speed auto media-type rj45 ! interface GigabitEthernet0/2 description link to spine-2 ip address 10.20.30.30 255.255.255.252 duplex auto speed auto media-type rj45 ! interface GigabitEthernet0/3 description link to client-4 ip address 172.23.27.1 255.255.255.0 duplex auto speed auto media-type rj45 ! router bgp 65004 bgp router-id 44.44.44.44 bgp log-neighbor-changes bgp confederation identifier 100 bgp confederation peers 65000 network 172.23.27.0 mask 255.255.255.0 neighbor 10.20.30.25 remote-as 65000 neighbor 10.20.30.25 next-hop-self neighbor 10.20.30.29 remote-as 65000 neighbor 10.20.30.29 next-hop-self maximum-paths 2 ! 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 logging synchronous login local line aux 0 line vty 0 4 logging synchronous login local transport input telnet ssh line vty 5 15 logging synchronous 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="lxc-iperf-1" type="SIMPLE" subtype="lxc-iperf" location="264,341"> <extensions> <entry key="config" type="String">#cloud-config bootcmd: - ln -s -t /etc/rc.d /etc/rc.local hostname: lxc-iperf-1 manage_etc_hosts: true runcmd: - systemctl start rc-local - sed -i '/^\s*PasswordAuthentication\s\+no/d' /etc/ssh/sshd_config - echo "UseDNS no" >> /etc/ssh/sshd_config - service ssh restart - service sshd restart users: - default - gecos: User configured by VIRL Configuration Engine 0.20.22 lock-passwd: false name: cisco plain-text-passwd: cisco shell: /bin/bash ssh-authorized-keys: - VIRL-USER-SSH-PUBLIC-KEY sudo: ALL=(ALL) ALL write_files: - path: /etc/systemd/system/dhclient@.service content: | [Unit] Description=Run dhclient on %i interface After=network.target [Service] Type=oneshot ExecStart=/sbin/dhclient %i -pf /var/run/dhclient.%i.pid -lf /var/lib/dhclient/dhclient.%i.lease RemainAfterExit=yes owner: root:root permissions: '0644' - path: /etc/rc.local owner: root:root permissions: '0755' content: |- #!/bin/sh ifconfig eth1 up 172.23.24.10 netmask 255.255.255.0 route add default gw 172.23.24.1 exit 0 </entry> </extensions> <interface id="0" name="eth1"/> </node> <node name="lxc-iperf-2" type="SIMPLE" subtype="lxc-iperf" location="428,336"> <extensions> <entry key="config" type="String">#cloud-config bootcmd: - ln -s -t /etc/rc.d /etc/rc.local hostname: lxc-iperf-2 manage_etc_hosts: true runcmd: - systemctl start rc-local - sed -i '/^\s*PasswordAuthentication\s\+no/d' /etc/ssh/sshd_config - echo "UseDNS no" >> /etc/ssh/sshd_config - service ssh restart - service sshd restart users: - default - gecos: User configured by VIRL Configuration Engine 0.20.22 lock-passwd: false name: cisco plain-text-passwd: cisco shell: /bin/bash ssh-authorized-keys: - VIRL-USER-SSH-PUBLIC-KEY sudo: ALL=(ALL) ALL write_files: - path: /etc/systemd/system/dhclient@.service content: | [Unit] Description=Run dhclient on %i interface After=network.target [Service] Type=oneshot ExecStart=/sbin/dhclient %i -pf /var/run/dhclient.%i.pid -lf /var/lib/dhclient/dhclient.%i.lease RemainAfterExit=yes owner: root:root permissions: '0644' - path: /etc/rc.local owner: root:root permissions: '0755' content: |- #!/bin/sh ifconfig eth1 up 172.23.25.10 netmask 255.255.255.0 route add default gw 172.23.25.1 exit 0 </entry> </extensions> <interface id="0" name="eth1"/> </node> <node name="lxc-iperf-4" type="SIMPLE" subtype="lxc-iperf" location="774,334"> <extensions> <entry key="config" type="String">#cloud-config bootcmd: - ln -s -t /etc/rc.d /etc/rc.local hostname: lxc-iperf-4 manage_etc_hosts: true runcmd: - systemctl start rc-local - sed -i '/^\s*PasswordAuthentication\s\+no/d' /etc/ssh/sshd_config - echo "UseDNS no" >> /etc/ssh/sshd_config - service ssh restart - service sshd restart users: - default - gecos: User configured by VIRL Configuration Engine 0.20.22 lock-passwd: false name: cisco plain-text-passwd: cisco shell: /bin/bash ssh-authorized-keys: - VIRL-USER-SSH-PUBLIC-KEY sudo: ALL=(ALL) ALL write_files: - path: /etc/systemd/system/dhclient@.service content: | [Unit] Description=Run dhclient on %i interface After=network.target [Service] Type=oneshot ExecStart=/sbin/dhclient %i -pf /var/run/dhclient.%i.pid -lf /var/lib/dhclient/dhclient.%i.lease RemainAfterExit=yes owner: root:root permissions: '0644' - path: /etc/rc.local owner: root:root permissions: '0755' content: |- #!/bin/sh ifconfig eth1 up 172.23.27.10 netmask 255.255.255.0 route add default gw 172.23.27.1 exit 0 </entry> </extensions> <interface id="0" name="eth1"/> </node> <node name="lxc-iperf-3" type="SIMPLE" subtype="lxc-iperf" location="609,335"> <extensions> <entry key="config" type="String">#cloud-config bootcmd: - ln -s -t /etc/rc.d /etc/rc.local hostname: lxc-iperf-3 manage_etc_hosts: true runcmd: - systemctl start rc-local - sed -i '/^\s*PasswordAuthentication\s\+no/d' /etc/ssh/sshd_config - echo "UseDNS no" >> /etc/ssh/sshd_config - service ssh restart - service sshd restart users: - default - gecos: User configured by VIRL Configuration Engine 0.20.22 lock-passwd: false name: cisco plain-text-passwd: cisco shell: /bin/bash ssh-authorized-keys: - VIRL-USER-SSH-PUBLIC-KEY sudo: ALL=(ALL) ALL write_files: - path: /etc/systemd/system/dhclient@.service content: | [Unit] Description=Run dhclient on %i interface After=network.target [Service] Type=oneshot ExecStart=/sbin/dhclient %i -pf /var/run/dhclient.%i.pid -lf /var/lib/dhclient/dhclient.%i.lease RemainAfterExit=yes owner: root:root permissions: '0644' - path: /etc/rc.local owner: root:root permissions: '0755' content: |- #!/bin/sh ifconfig eth1 up 172.23.26.10 netmask 255.255.255.0 route add default gw 172.23.26.1 exit 0 </entry> </extensions> <interface id="0" name="eth1"/> </node> <annotations/> <connection dst="/virl:topology/virl:node[1]/virl:interface[1]" src="/virl:topology/virl:node[3]/virl:interface[1]"/> <connection dst="/virl:topology/virl:node[1]/virl:interface[2]" src="/virl:topology/virl:node[4]/virl:interface[1]"/> <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[1]/virl:interface[4]" src="/virl:topology/virl:node[6]/virl:interface[1]"/> <connection dst="/virl:topology/virl:node[2]/virl:interface[1]" src="/virl:topology/virl:node[3]/virl:interface[2]"/> <connection dst="/virl:topology/virl:node[2]/virl:interface[2]" src="/virl:topology/virl:node[4]/virl:interface[2]"/> <connection dst="/virl:topology/virl:node[2]/virl:interface[3]" src="/virl:topology/virl:node[5]/virl:interface[2]"/> <connection dst="/virl:topology/virl:node[2]/virl:interface[4]" src="/virl:topology/virl:node[6]/virl:interface[2]"/> <connection dst="/virl:topology/virl:node[7]/virl:interface[1]" src="/virl:topology/virl:node[3]/virl:interface[3]"/> <connection dst="/virl:topology/virl:node[8]/virl:interface[1]" src="/virl:topology/virl:node[4]/virl:interface[3]"/> <connection dst="/virl:topology/virl:node[10]/virl:interface[1]" src="/virl:topology/virl:node[5]/virl:interface[3]"/> <connection dst="/virl:topology/virl:node[9]/virl:interface[1]" src="/virl:topology/virl:node[6]/virl:interface[3]"/> </topology>
|