Created
April 9, 2017 14:23
-
-
Save lewiryan/45cce549bc84c610bc112ac84d0bd13b to your computer and use it in GitHub Desktop.
VIRL ASA VPN with DHCP Example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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">flat</entry> | |
<entry key="AutoNetkit.infrastructure_only" type="Boolean">true</entry> | |
</extensions> | |
<node name="ASA-1" type="SIMPLE" subtype="ASAv" location="207,154"> | |
<extensions> | |
<entry key="AutoNetkit.mgmt_ip" type="string"></entry> | |
<entry key="config" type="String">! | |
ASA Version 9.6(2) | |
! | |
hostname ASA-1 | |
enable password 2KFQnbNIdI.2KYOU encrypted | |
xlate per-session deny tcp any4 any4 | |
xlate per-session deny tcp any4 any6 | |
xlate per-session deny tcp any6 any4 | |
xlate per-session deny tcp any6 any6 | |
xlate per-session deny udp any4 any4 eq domain | |
xlate per-session deny udp any4 any6 eq domain | |
xlate per-session deny udp any6 any4 eq domain | |
xlate per-session deny udp any6 any6 eq domain | |
passwd 2KFQnbNIdI.2KYOU encrypted | |
names | |
! | |
interface GigabitEthernet0/0 | |
description to SW-1 | |
duplex full | |
no nameif | |
no security-level | |
no ip address | |
! | |
interface GigabitEthernet0/0.5 | |
vlan 5 | |
nameif Inside | |
security-level 100 | |
ip address 10.1.1.1 255.255.255.0 | |
! | |
interface GigabitEthernet0/1 | |
description to Internet-1 | |
duplex full | |
nameif Outside | |
security-level 0 | |
ip address 192.0.2.10 255.255.255.128 | |
! | |
interface Management0/0 | |
description OOB Management | |
duplex full | |
management-only | |
nameif mgmt | |
security-level 100 | |
ip address 172.16.1.156 255.255.255.0 | |
! | |
ftp mode passive | |
same-security-traffic permit inter-interface | |
object network VPN-REMOTE-ACME-BRANCH-NET-1 | |
subnet 10.1.2.0 255.255.255.0 | |
object network VPN-REMOTE-ACME-BRANCH-NET-2 | |
subnet 10.1.3.0 255.255.255.0 | |
object network ACME-CORP-NET | |
subnet 10.1.1.0 255.255.255.0 | |
object network VPN-REMOTE-ACORP-BRANCH-NET-1 | |
subnet 10.1.2.0 255.255.255.0 | |
object network VPN-REMOTE-ACORP-BRANCH-NET-2 | |
subnet 10.1.3.0 255.255.255.0 | |
object-group network VPN-LOCAL-ACMECORP-NET | |
network-object object ACME-CORP-NET | |
object-group network VPN-LOCAL-ACORP | |
network-object object ACME-CORP-NET | |
object-group network VPN-REMOTE-ACORP-BRANCH | |
network-object object VPN-REMOTE-ACORP-BRANCH-NET-1 | |
network-object object VPN-REMOTE-ACORP-BRANCH-NET-2 | |
access-list ACL-VPN-ACORP-ACORP-BRANCH extended permit ip object-group VPN-LOCAL-ACORP object-group VPN-REMOTE-ACORP-BRANCH | |
pager lines 23 | |
logging enable | |
logging asdm informational | |
mtu Inside 1500 | |
mtu Outside 1500 | |
mtu mgmt 1500 | |
no failover | |
no monitor-interface service-module | |
icmp unreachable rate-limit 1 burst-size 1 | |
no asdm history enable | |
arp timeout 14400 | |
no arp permit-nonconnected | |
arp rate-limit 8192 | |
nat (Outside,Inside) source static VPN-REMOTE-ACORP-BRANCH VPN-REMOTE-ACORP-BRANCH destination static VPN-LOCAL-ACORP VPN-LOCAL-ACORP no-proxy-arp | |
nat (Inside,Outside) source static VPN-LOCAL-ACMECORP-NET VPN-LOCAL-ACMECORP-NET destination static VPN-REMOTE-ACORP-BRANCH VPN-REMOTE-ACORP-BRANCH no-proxy-arp | |
nat (Inside,Outside) source dynamic any interface | |
route Outside 0.0.0.0 0.0.0.0 192.0.2.1 1 | |
timeout xlate 3:00:00 | |
timeout pat-xlate 0:00:30 | |
timeout conn 1:00:00 half-closed 0:10:00 udp 0:02:00 sctp 0:02:00 icmp 0:00:02 | |
timeout sunrpc 0:10:00 h323 0:05:00 h225 1:00:00 mgcp 0:05:00 mgcp-pat 0:05:00 | |
timeout sip 0:30:00 sip_media 0:02:00 sip-invite 0:03:00 sip-disconnect 0:02:00 | |
timeout sip-provisional-media 0:02:00 uauth 0:05:00 absolute | |
timeout tcp-proxy-reassembly 0:01:00 | |
timeout floating-conn 0:00:00 | |
timeout conn-holddown 0:00:15 | |
user-identity default-domain LOCAL | |
aaa authentication ssh console LOCAL | |
http server enable | |
http 0.0.0.0 0.0.0.0 mgmt | |
no snmp-server location | |
no snmp-server contact | |
crypto ipsec ikev1 transform-set ESP-AES-128-SHA esp-aes esp-sha-hmac | |
crypto ipsec ikev1 transform-set ESP-AES-128-MD5 esp-aes esp-md5-hmac | |
crypto ipsec ikev1 transform-set ESP-AES-192-SHA esp-aes-192 esp-sha-hmac | |
crypto ipsec ikev1 transform-set ESP-AES-192-MD5 esp-aes-192 esp-md5-hmac | |
crypto ipsec ikev1 transform-set ESP-AES-256-SHA esp-aes-256 esp-sha-hmac | |
crypto ipsec ikev1 transform-set ESP-AES-256-MD5 esp-aes-256 esp-md5-hmac | |
crypto ipsec ikev1 transform-set ESP-AES-128-SHA-TRANS esp-aes esp-sha-hmac | |
crypto ipsec ikev1 transform-set ESP-AES-128-SHA-TRANS mode transport | |
crypto ipsec ikev1 transform-set ESP-AES-128-MD5-TRANS esp-aes esp-md5-hmac | |
crypto ipsec ikev1 transform-set ESP-AES-128-MD5-TRANS mode transport | |
crypto ipsec ikev1 transform-set ESP-AES-192-SHA-TRANS esp-aes-192 esp-sha-hmac | |
crypto ipsec ikev1 transform-set ESP-AES-192-SHA-TRANS mode transport | |
crypto ipsec ikev1 transform-set ESP-AES-192-MD5-TRANS esp-aes-192 esp-md5-hmac | |
crypto ipsec ikev1 transform-set ESP-AES-192-MD5-TRANS mode transport | |
crypto ipsec ikev1 transform-set ESP-AES-256-SHA-TRANS esp-aes-256 esp-sha-hmac | |
crypto ipsec ikev1 transform-set ESP-AES-256-SHA-TRANS mode transport | |
crypto ipsec ikev1 transform-set ESP-AES-256-MD5-TRANS esp-aes-256 esp-md5-hmac | |
crypto ipsec ikev1 transform-set ESP-AES-256-MD5-TRANS mode transport | |
crypto ipsec ikev1 transform-set ESP-3DES-SHA esp-3des esp-sha-hmac | |
crypto ipsec ikev1 transform-set ESP-3DES-MD5 esp-3des esp-md5-hmac | |
crypto ipsec ikev1 transform-set ESP-3DES-SHA-TRANS esp-3des esp-sha-hmac | |
crypto ipsec ikev1 transform-set ESP-3DES-SHA-TRANS mode transport | |
crypto ipsec ikev1 transform-set ESP-3DES-MD5-TRANS esp-3des esp-md5-hmac | |
crypto ipsec ikev1 transform-set ESP-3DES-MD5-TRANS mode transport | |
crypto ipsec ikev1 transform-set ESP-DES-SHA esp-des esp-sha-hmac | |
crypto ipsec ikev1 transform-set ESP-DES-MD5 esp-des esp-md5-hmac | |
crypto ipsec ikev1 transform-set ESP-DES-SHA-TRANS esp-des esp-sha-hmac | |
crypto ipsec ikev1 transform-set ESP-DES-SHA-TRANS mode transport | |
crypto ipsec ikev1 transform-set ESP-DES-MD5-TRANS esp-des esp-md5-hmac | |
crypto ipsec ikev1 transform-set ESP-DES-MD5-TRANS mode transport | |
crypto ipsec security-association pmtu-aging infinite | |
crypto map CM-ACORP-ACORP-BRANCH 1 match address ACL-VPN-ACORP-ACORP-BRANCH | |
crypto map CM-ACORP-ACORP-BRANCH 1 set peer 203.0.113.10 | |
crypto map CM-ACORP-ACORP-BRANCH 1 set ikev1 transform-set ESP-AES-128-SHA | |
crypto map CM-ACORP-ACORP-BRANCH interface Outside | |
crypto ca trustpoint _SmartCallHome_ServerCA | |
no validation-usage | |
crl configure | |
crypto ca trustpool policy | |
auto-import | |
crypto ca certificate chain _SmartCallHome_ServerCA | |
certificate ca 6ecc7aa5a7032009b8cebcf4e952d491 | |
308205ec 308204d4 a0030201 0202106e cc7aa5a7 032009b8 cebcf4e9 52d49130 | |
0d06092a 864886f7 0d010105 05003081 ca310b30 09060355 04061302 55533117 | |
30150603 55040a13 0e566572 69536967 6e2c2049 6e632e31 1f301d06 0355040b | |
13165665 72695369 676e2054 72757374 204e6574 776f726b 313a3038 06035504 | |
0b133128 63292032 30303620 56657269 5369676e 2c20496e 632e202d 20466f72 | |
20617574 686f7269 7a656420 75736520 6f6e6c79 31453043 06035504 03133c56 | |
65726953 69676e20 436c6173 73203320 5075626c 69632050 72696d61 72792043 | |
65727469 66696361 74696f6e 20417574 686f7269 7479202d 20473530 1e170d31 | |
30303230 38303030 3030305a 170d3230 30323037 32333539 35395a30 81b5310b | |
30090603 55040613 02555331 17301506 0355040a 130e5665 72695369 676e2c20 | |
496e632e 311f301d 06035504 0b131656 65726953 69676e20 54727573 74204e65 | |
74776f72 6b313b30 39060355 040b1332 5465726d 73206f66 20757365 20617420 | |
68747470 733a2f2f 7777772e 76657269 7369676e 2e636f6d 2f727061 20286329 | |
3130312f 302d0603 55040313 26566572 69536967 6e20436c 61737320 33205365 | |
63757265 20536572 76657220 4341202d 20473330 82012230 0d06092a 864886f7 | |
0d010101 05000382 010f0030 82010a02 82010100 b187841f c20c45f5 bcab2597 | |
a7ada23e 9cbaf6c1 39b88bca c2ac56c6 e5bb658e 444f4dce 6fed094a d4af4e10 | |
9c688b2e 957b899b 13cae234 34c1f35b f3497b62 83488174 d188786c 0253f9bc | |
7f432657 5833833b 330a17b0 d04e9124 ad867d64 12dc744a 34a11d0a ea961d0b | |
15fca34b 3bce6388 d0f82d0c 948610ca b69a3dca eb379c00 48358629 5078e845 | |
63cd1941 4ff595ec 7b98d4c4 71b350be 28b38fa0 b9539cf5 ca2c23a9 fd1406e8 | |
18b49ae8 3c6e81fd e4cd3536 b351d369 ec12ba56 6e6f9b57 c58b14e7 0ec79ced | |
4a546ac9 4dc5bf11 b1ae1c67 81cb4455 33997f24 9b3f5345 7f861af3 3cfa6d7f | |
81f5b84a d3f58537 1cb5a6d0 09e4187b 384efa0f 02030100 01a38201 df308201 | |
db303406 082b0601 05050701 01042830 26302406 082b0601 05050730 01861868 | |
7474703a 2f2f6f63 73702e76 65726973 69676e2e 636f6d30 12060355 1d130101 | |
ff040830 060101ff 02010030 70060355 1d200469 30673065 060b6086 480186f8 | |
45010717 03305630 2806082b 06010505 07020116 1c687474 70733a2f 2f777777 | |
2e766572 69736967 6e2e636f 6d2f6370 73302a06 082b0601 05050702 02301e1a | |
1c687474 70733a2f 2f777777 2e766572 69736967 6e2e636f 6d2f7270 61303406 | |
03551d1f 042d302b 3029a027 a0258623 68747470 3a2f2f63 726c2e76 65726973 | |
69676e2e 636f6d2f 70636133 2d67352e 63726c30 0e060355 1d0f0101 ff040403 | |
02010630 6d06082b 06010505 07010c04 61305fa1 5da05b30 59305730 55160969 | |
6d616765 2f676966 3021301f 30070605 2b0e0302 1a04148f e5d31a86 ac8d8e6b | |
c3cf806a d448182c 7b192e30 25162368 7474703a 2f2f6c6f 676f2e76 65726973 | |
69676e2e 636f6d2f 76736c6f 676f2e67 69663028 0603551d 11042130 1fa41d30 | |
1b311930 17060355 04031310 56657269 5369676e 4d504b49 2d322d36 301d0603 | |
551d0e04 1604140d 445c1653 44c1827e 1d20ab25 f40163d8 be79a530 1f060355 | |
1d230418 30168014 7fd365a7 c2ddecbb f03009f3 4339fa02 af333133 300d0609 | |
2a864886 f70d0101 05050003 82010100 0c8324ef ddc30cd9 589cfe36 b6eb8a80 | |
4bd1a3f7 9df3cc53 ef829ea3 a1e697c1 589d756c e01d1b4c fad1c12d 05c0ea6e | |
b2227055 d9203340 3307c265 83fa8f43 379bea0e 9a6c70ee f69c803b d937f47a | |
6decd018 7d494aca 99c71928 a2bed877 24f78526 866d8705 404167d1 273aeddc | |
481d22cd 0b0b8bbc f4b17bfd b499a8e9 762ae11a 2d876e74 d388dd1e 22c6df16 | |
b62b8214 0a945cf2 50ecafce ff62370d ad65d306 4153ed02 14c8b558 28a1ace0 | |
5becb37f 954afb03 c8ad26db e6667812 4ad99f42 fbe198e6 42839b8f 8f6724e8 | |
6119b5dd cdb50b26 058ec36e c4c875b8 46cfe218 065ea9ae a8819a47 16de0c28 | |
6c2527b9 deb78458 c61f381e a4c4cb66 | |
quit | |
crypto ikev1 enable Outside | |
crypto ikev1 policy 20 | |
authentication rsa-sig | |
encryption aes-256 | |
hash sha | |
group 2 | |
lifetime 86400 | |
crypto ikev1 policy 30 | |
authentication pre-share | |
encryption aes-256 | |
hash sha | |
group 2 | |
lifetime 86400 | |
crypto ikev1 policy 50 | |
authentication rsa-sig | |
encryption aes-192 | |
hash sha | |
group 2 | |
lifetime 86400 | |
crypto ikev1 policy 60 | |
authentication pre-share | |
encryption aes-192 | |
hash sha | |
group 2 | |
lifetime 86400 | |
crypto ikev1 policy 80 | |
authentication rsa-sig | |
encryption aes | |
hash sha | |
group 2 | |
lifetime 86400 | |
crypto ikev1 policy 90 | |
authentication pre-share | |
encryption aes | |
hash sha | |
group 2 | |
lifetime 86400 | |
crypto ikev1 policy 110 | |
authentication rsa-sig | |
encryption 3des | |
hash sha | |
group 2 | |
lifetime 86400 | |
crypto ikev1 policy 120 | |
authentication pre-share | |
encryption 3des | |
hash sha | |
group 2 | |
lifetime 86400 | |
crypto ikev1 policy 140 | |
authentication rsa-sig | |
encryption des | |
hash sha | |
group 2 | |
lifetime 86400 | |
crypto ikev1 policy 150 | |
authentication pre-share | |
encryption des | |
hash sha | |
group 2 | |
lifetime 86400 | |
telnet 0.0.0.0 0.0.0.0 mgmt | |
telnet timeout 15 | |
ssh stricthostkeycheck | |
ssh 0.0.0.0 0.0.0.0 mgmt | |
ssh timeout 5 | |
ssh version 2 | |
ssh key-exchange group dh-group1-sha1 | |
console timeout 0 | |
threat-detection basic-threat | |
threat-detection statistics access-list | |
no threat-detection statistics tcp-intercept | |
group-policy GP-VPN-ACORP-ACORP-BRANCH internal | |
group-policy GP-VPN-ACORP-ACORP-BRANCH attributes | |
vpn-tunnel-protocol ikev1 | |
dynamic-access-policy-record DfltAccessPolicy | |
username cisco password 3USUcOPFUiMCO4Jk encrypted privilege 15 | |
tunnel-group 203.0.113.10 type ipsec-l2l | |
tunnel-group 203.0.113.10 general-attributes | |
default-group-policy GP-VPN-ACORP-ACORP-BRANCH | |
tunnel-group 203.0.113.10 ipsec-attributes | |
ikev1 pre-shared-key cisco | |
isakmp keepalive disable | |
! | |
class-map inspection_default | |
match default-inspection-traffic | |
! | |
! | |
policy-map type inspect dns migrated_dns_map_2 | |
parameters | |
message-length maximum client auto | |
message-length maximum 512 | |
no tcp-inspection | |
policy-map global_policy | |
class inspection_default | |
inspect ftp | |
inspect h323 h225 | |
inspect h323 ras | |
inspect ip-options | |
inspect netbios | |
inspect rsh | |
inspect rtsp | |
inspect skinny | |
inspect esmtp | |
inspect sqlnet | |
inspect sunrpc | |
inspect tftp | |
inspect sip | |
inspect xdmcp | |
inspect dns migrated_dns_map_2 | |
policy-map type inspect dns migrated_dns_map_3 | |
parameters | |
message-length maximum client auto | |
message-length maximum 512 | |
no tcp-inspection | |
policy-map type inspect dns migrated_dns_map_1 | |
parameters | |
message-length maximum client auto | |
message-length maximum 512 | |
no tcp-inspection | |
! | |
service-policy global_policy global | |
prompt hostname context | |
no call-home reporting anonymous | |
call-home | |
profile CiscoTAC-1 | |
no active | |
destination address http https://tools.cisco.com/its/service/oddce/services/DDCEService | |
destination address email callhome@cisco.com | |
profile License | |
destination address http https://tools.cisco.com/its/service/oddce/services/DDCEService | |
destination transport-method http</entry> | |
</extensions> | |
<interface id="0" name="GigabitEthernet0/0"/> | |
<interface id="1" name="GigabitEthernet0/1"/> | |
</node> | |
<node name="Internet-1" type="SIMPLE" subtype="IOSv" location="357,146"> | |
<extensions> | |
<entry key="AutoNetkit.mgmt_ip" type="string"></entry> | |
<entry key="config" type="String">! | |
! Last configuration change at 01:10:38 UTC Sun Apr 9 2017 | |
! | |
version 15.6 | |
service timestamps debug datetime msec | |
service timestamps log datetime msec | |
no service password-encryption | |
! | |
hostname Internet-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$hL7x$TeWFhjVgA3acynL5CvGqo/ | |
! | |
redundancy | |
! | |
no cdp run | |
! | |
! | |
! | |
! | |
! | |
! | |
! | |
! | |
! | |
! | |
! | |
! | |
! | |
! | |
interface Loopback0 | |
description Loopback | |
no ip address | |
! | |
interface GigabitEthernet0/0 | |
description OOB Management | |
vrf forwarding Mgmt-intf | |
ip address 172.16.1.161 255.255.255.0 | |
duplex full | |
speed auto | |
media-type rj45 | |
! | |
interface GigabitEthernet0/1 | |
description to Internet-2 | |
ip address 198.51.100.1 255.255.255.252 | |
duplex full | |
speed auto | |
media-type rj45 | |
! | |
interface GigabitEthernet0/2 | |
description to ASA-1 | |
ip address 192.0.2.1 255.255.255.128 | |
duplex full | |
speed auto | |
media-type rj45 | |
! | |
ip forward-protocol nd | |
! | |
! | |
no ip http server | |
no ip http secure-server | |
ip route 192.0.2.128 255.255.255.128 192.0.2.10 | |
ip route 203.0.113.0 255.255.255.128 198.51.100.2 | |
ip route 203.0.113.128 255.255.255.128 198.51.100.2 | |
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"/> | |
</node> | |
<node name="Internet-2" type="SIMPLE" subtype="IOSv" location="572,146"> | |
<extensions> | |
<entry key="AutoNetkit.mgmt_ip" type="string"></entry> | |
<entry key="config" type="String">! | |
! Last configuration change at 01:10:45 UTC Sun Apr 9 2017 | |
! | |
version 15.6 | |
service timestamps debug datetime msec | |
service timestamps log datetime msec | |
no service password-encryption | |
! | |
hostname Internet-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 | |
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$Aa71$0fGEYmUVVAh0EayUhIt.o1 | |
! | |
redundancy | |
! | |
no cdp run | |
! | |
! | |
! | |
! | |
! | |
! | |
! | |
! | |
! | |
! | |
! | |
! | |
! | |
! | |
interface Loopback0 | |
description Loopback | |
no ip address | |
! | |
interface GigabitEthernet0/0 | |
description OOB Management | |
vrf forwarding Mgmt-intf | |
ip address 172.16.1.162 255.255.255.0 | |
duplex full | |
speed auto | |
media-type rj45 | |
! | |
interface GigabitEthernet0/1 | |
description to ASA-2 | |
ip address 203.0.113.1 255.255.255.128 | |
duplex full | |
speed auto | |
media-type rj45 | |
! | |
interface GigabitEthernet0/2 | |
description to Internet-1 | |
ip address 198.51.100.2 255.255.255.252 | |
duplex full | |
speed auto | |
media-type rj45 | |
! | |
ip forward-protocol nd | |
! | |
! | |
no ip http server | |
no ip http secure-server | |
ip route 192.0.2.0 255.255.255.128 198.51.100.1 | |
ip route 192.0.2.128 255.255.255.128 198.51.100.1 | |
ip route 203.0.113.128 255.255.255.128 203.0.113.10 | |
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"/> | |
</node> | |
<node name="ASA-2" type="SIMPLE" subtype="ASAv" location="763,156"> | |
<extensions> | |
<entry key="AutoNetkit.mgmt_ip" type="string"></entry> | |
<entry key="config" type="String">! | |
ASA Version 9.6(2) | |
! | |
hostname ASA-2 | |
enable password 2KFQnbNIdI.2KYOU encrypted | |
xlate per-session deny tcp any4 any4 | |
xlate per-session deny tcp any4 any6 | |
xlate per-session deny tcp any6 any4 | |
xlate per-session deny tcp any6 any6 | |
xlate per-session deny udp any4 any4 eq domain | |
xlate per-session deny udp any4 any6 eq domain | |
xlate per-session deny udp any6 any4 eq domain | |
xlate per-session deny udp any6 any6 eq domain | |
passwd 2KFQnbNIdI.2KYOU encrypted | |
names | |
! | |
interface GigabitEthernet0/0 | |
description to SW-2 | |
duplex full | |
no nameif | |
no security-level | |
no ip address | |
! | |
interface GigabitEthernet0/0.5 | |
vlan 5 | |
nameif Inside | |
security-level 100 | |
ip address 10.1.2.1 255.255.255.0 | |
! | |
interface GigabitEthernet0/0.10 | |
vlan 10 | |
nameif Inside-2 | |
security-level 50 | |
ip address 10.1.3.1 255.255.255.0 | |
! | |
interface GigabitEthernet0/1 | |
description to Internet-2 | |
duplex full | |
nameif Outside | |
security-level 0 | |
ip address 203.0.113.10 255.255.255.128 | |
! | |
interface Management0/0 | |
description OOB Management | |
duplex full | |
management-only | |
nameif mgmt | |
security-level 100 | |
ip address 172.16.1.157 255.255.255.0 | |
! | |
ftp mode passive | |
same-security-traffic permit inter-interface | |
object network ACME-BRANCH-NET-1 | |
subnet 10.1.2.0 255.255.255.0 | |
object network ACME-BRANCH-NET-2 | |
subnet 10.1.3.0 255.255.255.0 | |
object network VPN-REMOTE-ACME | |
subnet 10.1.1.0 255.255.255.0 | |
object-group network VPN-LOCAL-ACME-BRANCH | |
network-object object ACME-BRANCH-NET-1 | |
network-object object ACME-BRANCH-NET-2 | |
object-group network VPN-REMOTE-ACORP | |
network-object object VPN-REMOTE-ACME | |
access-list ACL-VPN-ACORP-BRANCH-ACORP extended permit ip object-group VPN-LOCAL-ACME-BRANCH object-group VPN-REMOTE-ACORP | |
pager lines 23 | |
logging enable | |
logging asdm informational | |
mtu Inside 1500 | |
mtu Inside-2 1500 | |
mtu Outside 1500 | |
mtu mgmt 1500 | |
no failover | |
no monitor-interface service-module | |
icmp unreachable rate-limit 1 burst-size 1 | |
no asdm history enable | |
arp timeout 14400 | |
no arp permit-nonconnected | |
arp rate-limit 8192 | |
nat (Inside,Outside) source static ACME-BRANCH-NET-1 ACME-BRANCH-NET-1 destination static VPN-REMOTE-ACORP VPN-REMOTE-ACORP no-proxy-arp | |
nat (Outside,Inside) source static VPN-REMOTE-ACORP VPN-REMOTE-ACORP destination static ACME-BRANCH-NET-1 ACME-BRANCH-NET-1 no-proxy-arp | |
nat (Outside,Inside-2) source static VPN-REMOTE-ACORP VPN-REMOTE-ACORP destination static ACME-BRANCH-NET-2 ACME-BRANCH-NET-2 no-proxy-arp | |
nat (Inside-2,Outside) source static ACME-BRANCH-NET-2 ACME-BRANCH-NET-2 destination static VPN-REMOTE-ACORP VPN-REMOTE-ACORP no-proxy-arp | |
nat (Inside,Outside) source dynamic ACME-BRANCH-NET-1 interface | |
route Outside 0.0.0.0 0.0.0.0 203.0.113.1 1 | |
timeout xlate 3:00:00 | |
timeout pat-xlate 0:00:30 | |
timeout conn 1:00:00 half-closed 0:10:00 udp 0:02:00 sctp 0:02:00 icmp 0:00:02 | |
timeout sunrpc 0:10:00 h323 0:05:00 h225 1:00:00 mgcp 0:05:00 mgcp-pat 0:05:00 | |
timeout sip 0:30:00 sip_media 0:02:00 sip-invite 0:03:00 sip-disconnect 0:02:00 | |
timeout sip-provisional-media 0:02:00 uauth 0:05:00 absolute | |
timeout tcp-proxy-reassembly 0:01:00 | |
timeout floating-conn 0:00:00 | |
timeout conn-holddown 0:00:15 | |
user-identity default-domain LOCAL | |
aaa authentication ssh console LOCAL | |
http server enable | |
http 0.0.0.0 0.0.0.0 mgmt | |
no snmp-server location | |
no snmp-server contact | |
crypto ipsec ikev1 transform-set ESP-AES-128-SHA esp-aes esp-sha-hmac | |
crypto ipsec ikev1 transform-set ESP-AES-128-MD5 esp-aes esp-md5-hmac | |
crypto ipsec ikev1 transform-set ESP-AES-192-SHA esp-aes-192 esp-sha-hmac | |
crypto ipsec ikev1 transform-set ESP-AES-192-MD5 esp-aes-192 esp-md5-hmac | |
crypto ipsec ikev1 transform-set ESP-AES-256-SHA esp-aes-256 esp-sha-hmac | |
crypto ipsec ikev1 transform-set ESP-AES-256-MD5 esp-aes-256 esp-md5-hmac | |
crypto ipsec ikev1 transform-set ESP-AES-128-SHA-TRANS esp-aes esp-sha-hmac | |
crypto ipsec ikev1 transform-set ESP-AES-128-SHA-TRANS mode transport | |
crypto ipsec ikev1 transform-set ESP-AES-128-MD5-TRANS esp-aes esp-md5-hmac | |
crypto ipsec ikev1 transform-set ESP-AES-128-MD5-TRANS mode transport | |
crypto ipsec ikev1 transform-set ESP-AES-192-SHA-TRANS esp-aes-192 esp-sha-hmac | |
crypto ipsec ikev1 transform-set ESP-AES-192-SHA-TRANS mode transport | |
crypto ipsec ikev1 transform-set ESP-AES-192-MD5-TRANS esp-aes-192 esp-md5-hmac | |
crypto ipsec ikev1 transform-set ESP-AES-192-MD5-TRANS mode transport | |
crypto ipsec ikev1 transform-set ESP-AES-256-SHA-TRANS esp-aes-256 esp-sha-hmac | |
crypto ipsec ikev1 transform-set ESP-AES-256-SHA-TRANS mode transport | |
crypto ipsec ikev1 transform-set ESP-AES-256-MD5-TRANS esp-aes-256 esp-md5-hmac | |
crypto ipsec ikev1 transform-set ESP-AES-256-MD5-TRANS mode transport | |
crypto ipsec ikev1 transform-set ESP-3DES-SHA esp-3des esp-sha-hmac | |
crypto ipsec ikev1 transform-set ESP-3DES-MD5 esp-3des esp-md5-hmac | |
crypto ipsec ikev1 transform-set ESP-3DES-SHA-TRANS esp-3des esp-sha-hmac | |
crypto ipsec ikev1 transform-set ESP-3DES-SHA-TRANS mode transport | |
crypto ipsec ikev1 transform-set ESP-3DES-MD5-TRANS esp-3des esp-md5-hmac | |
crypto ipsec ikev1 transform-set ESP-3DES-MD5-TRANS mode transport | |
crypto ipsec ikev1 transform-set ESP-DES-SHA esp-des esp-sha-hmac | |
crypto ipsec ikev1 transform-set ESP-DES-MD5 esp-des esp-md5-hmac | |
crypto ipsec ikev1 transform-set ESP-DES-SHA-TRANS esp-des esp-sha-hmac | |
crypto ipsec ikev1 transform-set ESP-DES-SHA-TRANS mode transport | |
crypto ipsec ikev1 transform-set ESP-DES-MD5-TRANS esp-des esp-md5-hmac | |
crypto ipsec ikev1 transform-set ESP-DES-MD5-TRANS mode transport | |
crypto ipsec ikev2 ipsec-proposal DES | |
protocol esp encryption des | |
protocol esp integrity sha-1 md5 | |
crypto ipsec ikev2 ipsec-proposal 3DES | |
protocol esp encryption 3des | |
protocol esp integrity sha-1 md5 | |
crypto ipsec ikev2 ipsec-proposal AES | |
protocol esp encryption aes | |
protocol esp integrity sha-1 md5 | |
crypto ipsec ikev2 ipsec-proposal AES192 | |
protocol esp encryption aes-192 | |
protocol esp integrity sha-1 md5 | |
crypto ipsec ikev2 ipsec-proposal AES256 | |
protocol esp encryption aes-256 | |
protocol esp integrity sha-1 md5 | |
crypto ipsec security-association pmtu-aging infinite | |
crypto map CM-ACORP-BRANCH-ACORP 1 match address ACL-VPN-ACORP-BRANCH-ACORP | |
crypto map CM-ACORP-BRANCH-ACORP 1 set peer 192.0.2.10 | |
crypto map CM-ACORP-BRANCH-ACORP 1 set ikev1 transform-set ESP-AES-128-SHA | |
crypto map CM-ACORP-BRANCH-ACORP interface Outside | |
crypto ca trustpoint _SmartCallHome_ServerCA | |
no validation-usage | |
crl configure | |
crypto ca trustpool policy | |
auto-import | |
crypto ca certificate chain _SmartCallHome_ServerCA | |
certificate ca 6ecc7aa5a7032009b8cebcf4e952d491 | |
308205ec 308204d4 a0030201 0202106e cc7aa5a7 032009b8 cebcf4e9 52d49130 | |
0d06092a 864886f7 0d010105 05003081 ca310b30 09060355 04061302 55533117 | |
30150603 55040a13 0e566572 69536967 6e2c2049 6e632e31 1f301d06 0355040b | |
13165665 72695369 676e2054 72757374 204e6574 776f726b 313a3038 06035504 | |
0b133128 63292032 30303620 56657269 5369676e 2c20496e 632e202d 20466f72 | |
20617574 686f7269 7a656420 75736520 6f6e6c79 31453043 06035504 03133c56 | |
65726953 69676e20 436c6173 73203320 5075626c 69632050 72696d61 72792043 | |
65727469 66696361 74696f6e 20417574 686f7269 7479202d 20473530 1e170d31 | |
30303230 38303030 3030305a 170d3230 30323037 32333539 35395a30 81b5310b | |
30090603 55040613 02555331 17301506 0355040a 130e5665 72695369 676e2c20 | |
496e632e 311f301d 06035504 0b131656 65726953 69676e20 54727573 74204e65 | |
74776f72 6b313b30 39060355 040b1332 5465726d 73206f66 20757365 20617420 | |
68747470 733a2f2f 7777772e 76657269 7369676e 2e636f6d 2f727061 20286329 | |
3130312f 302d0603 55040313 26566572 69536967 6e20436c 61737320 33205365 | |
63757265 20536572 76657220 4341202d 20473330 82012230 0d06092a 864886f7 | |
0d010101 05000382 010f0030 82010a02 82010100 b187841f c20c45f5 bcab2597 | |
a7ada23e 9cbaf6c1 39b88bca c2ac56c6 e5bb658e 444f4dce 6fed094a d4af4e10 | |
9c688b2e 957b899b 13cae234 34c1f35b f3497b62 83488174 d188786c 0253f9bc | |
7f432657 5833833b 330a17b0 d04e9124 ad867d64 12dc744a 34a11d0a ea961d0b | |
15fca34b 3bce6388 d0f82d0c 948610ca b69a3dca eb379c00 48358629 5078e845 | |
63cd1941 4ff595ec 7b98d4c4 71b350be 28b38fa0 b9539cf5 ca2c23a9 fd1406e8 | |
18b49ae8 3c6e81fd e4cd3536 b351d369 ec12ba56 6e6f9b57 c58b14e7 0ec79ced | |
4a546ac9 4dc5bf11 b1ae1c67 81cb4455 33997f24 9b3f5345 7f861af3 3cfa6d7f | |
81f5b84a d3f58537 1cb5a6d0 09e4187b 384efa0f 02030100 01a38201 df308201 | |
db303406 082b0601 05050701 01042830 26302406 082b0601 05050730 01861868 | |
7474703a 2f2f6f63 73702e76 65726973 69676e2e 636f6d30 12060355 1d130101 | |
ff040830 060101ff 02010030 70060355 1d200469 30673065 060b6086 480186f8 | |
45010717 03305630 2806082b 06010505 07020116 1c687474 70733a2f 2f777777 | |
2e766572 69736967 6e2e636f 6d2f6370 73302a06 082b0601 05050702 02301e1a | |
1c687474 70733a2f 2f777777 2e766572 69736967 6e2e636f 6d2f7270 61303406 | |
03551d1f 042d302b 3029a027 a0258623 68747470 3a2f2f63 726c2e76 65726973 | |
69676e2e 636f6d2f 70636133 2d67352e 63726c30 0e060355 1d0f0101 ff040403 | |
02010630 6d06082b 06010505 07010c04 61305fa1 5da05b30 59305730 55160969 | |
6d616765 2f676966 3021301f 30070605 2b0e0302 1a04148f e5d31a86 ac8d8e6b | |
c3cf806a d448182c 7b192e30 25162368 7474703a 2f2f6c6f 676f2e76 65726973 | |
69676e2e 636f6d2f 76736c6f 676f2e67 69663028 0603551d 11042130 1fa41d30 | |
1b311930 17060355 04031310 56657269 5369676e 4d504b49 2d322d36 301d0603 | |
551d0e04 1604140d 445c1653 44c1827e 1d20ab25 f40163d8 be79a530 1f060355 | |
1d230418 30168014 7fd365a7 c2ddecbb f03009f3 4339fa02 af333133 300d0609 | |
2a864886 f70d0101 05050003 82010100 0c8324ef ddc30cd9 589cfe36 b6eb8a80 | |
4bd1a3f7 9df3cc53 ef829ea3 a1e697c1 589d756c e01d1b4c fad1c12d 05c0ea6e | |
b2227055 d9203340 3307c265 83fa8f43 379bea0e 9a6c70ee f69c803b d937f47a | |
6decd018 7d494aca 99c71928 a2bed877 24f78526 866d8705 404167d1 273aeddc | |
481d22cd 0b0b8bbc f4b17bfd b499a8e9 762ae11a 2d876e74 d388dd1e 22c6df16 | |
b62b8214 0a945cf2 50ecafce ff62370d ad65d306 4153ed02 14c8b558 28a1ace0 | |
5becb37f 954afb03 c8ad26db e6667812 4ad99f42 fbe198e6 42839b8f 8f6724e8 | |
6119b5dd cdb50b26 058ec36e c4c875b8 46cfe218 065ea9ae a8819a47 16de0c28 | |
6c2527b9 deb78458 c61f381e a4c4cb66 | |
quit | |
crypto ikev2 policy 1 | |
encryption aes-256 | |
integrity sha | |
group 5 2 | |
prf sha | |
lifetime seconds 86400 | |
crypto ikev2 policy 10 | |
encryption aes-192 | |
integrity sha | |
group 5 2 | |
prf sha | |
lifetime seconds 86400 | |
crypto ikev2 policy 20 | |
encryption aes | |
integrity sha | |
group 5 2 | |
prf sha | |
lifetime seconds 86400 | |
crypto ikev2 policy 30 | |
encryption 3des | |
integrity sha | |
group 5 2 | |
prf sha | |
lifetime seconds 86400 | |
crypto ikev2 policy 40 | |
encryption des | |
integrity sha | |
group 5 2 | |
prf sha | |
lifetime seconds 86400 | |
crypto ikev1 enable Outside | |
crypto ikev1 policy 20 | |
authentication rsa-sig | |
encryption aes-256 | |
hash sha | |
group 2 | |
lifetime 86400 | |
crypto ikev1 policy 30 | |
authentication pre-share | |
encryption aes-256 | |
hash sha | |
group 2 | |
lifetime 86400 | |
crypto ikev1 policy 50 | |
authentication rsa-sig | |
encryption aes-192 | |
hash sha | |
group 2 | |
lifetime 86400 | |
crypto ikev1 policy 60 | |
authentication pre-share | |
encryption aes-192 | |
hash sha | |
group 2 | |
lifetime 86400 | |
crypto ikev1 policy 80 | |
authentication rsa-sig | |
encryption aes | |
hash sha | |
group 2 | |
lifetime 86400 | |
crypto ikev1 policy 90 | |
authentication pre-share | |
encryption aes | |
hash sha | |
group 2 | |
lifetime 86400 | |
crypto ikev1 policy 110 | |
authentication rsa-sig | |
encryption 3des | |
hash sha | |
group 2 | |
lifetime 86400 | |
crypto ikev1 policy 120 | |
authentication pre-share | |
encryption 3des | |
hash sha | |
group 2 | |
lifetime 86400 | |
crypto ikev1 policy 140 | |
authentication rsa-sig | |
encryption des | |
hash sha | |
group 2 | |
lifetime 86400 | |
crypto ikev1 policy 150 | |
authentication pre-share | |
encryption des | |
hash sha | |
group 2 | |
lifetime 86400 | |
telnet 0.0.0.0 0.0.0.0 mgmt | |
telnet timeout 15 | |
ssh stricthostkeycheck | |
ssh 0.0.0.0 0.0.0.0 mgmt | |
ssh timeout 5 | |
ssh version 2 | |
ssh key-exchange group dh-group1-sha1 | |
console timeout 0 | |
dhcprelay server 10.1.1.20 Outside | |
dhcprelay enable Inside | |
dhcprelay enable Inside-2 | |
dhcprelay timeout 60 | |
threat-detection basic-threat | |
threat-detection statistics access-list | |
no threat-detection statistics tcp-intercept | |
group-policy GP-VPN-ACORP-BRANCH-ACORP internal | |
group-policy GP-VPN-ACORP-BRANCH-ACORP attributes | |
vpn-tunnel-protocol ikev1 | |
dynamic-access-policy-record DfltAccessPolicy | |
username cisco password 3USUcOPFUiMCO4Jk encrypted privilege 15 | |
tunnel-group 192.0.2.10 type ipsec-l2l | |
tunnel-group 192.0.2.10 general-attributes | |
default-group-policy GP-VPN-ACORP-BRANCH-ACORP | |
tunnel-group 192.0.2.10 ipsec-attributes | |
ikev1 pre-shared-key cisco | |
isakmp keepalive disable | |
! | |
class-map inspection_default | |
match default-inspection-traffic | |
! | |
! | |
policy-map type inspect dns migrated_dns_map_1 | |
parameters | |
message-length maximum client auto | |
message-length maximum 512 | |
no tcp-inspection | |
policy-map global_policy | |
class inspection_default | |
inspect dns migrated_dns_map_1 | |
inspect ftp | |
inspect h323 h225 | |
inspect h323 ras | |
inspect ip-options | |
inspect netbios | |
inspect rsh | |
inspect rtsp | |
inspect skinny | |
inspect esmtp | |
inspect sqlnet | |
inspect sunrpc | |
inspect tftp | |
inspect sip | |
inspect xdmcp | |
! | |
service-policy global_policy global | |
prompt hostname context | |
no call-home reporting anonymous | |
call-home | |
profile CiscoTAC-1 | |
no active | |
destination address http https://tools.cisco.com/its/service/oddce/services/DDCEService | |
destination address email callhome@cisco.com | |
profile License | |
destination address http https://tools.cisco.com/its/service/oddce/services/DDCEService | |
destination transport-method http</entry> | |
</extensions> | |
<interface id="0" name="GigabitEthernet0/0"/> | |
<interface id="1" name="GigabitEthernet0/1"/> | |
</node> | |
<node name="Internal-Server-1" type="SIMPLE" subtype="server" location="66,155"> | |
<extensions> | |
<entry key="config" type="String">#cloud-config | |
bootcmd: | |
- ln -s -t /etc/rc.d /etc/rc.local | |
hostname: Internal-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.23.9 | |
lock-passwd: false | |
name: cisco | |
plain-text-passwd: cisco | |
shell: /bin/bash | |
ssh-authorized-keys: | |
- VIRL-USER-SSH-PUBLIC-KEY | |
sudo: ALL=(ALL) ALL | |
write_files: | |
- path: /etc/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.1.1.10 netmask 255.255.255.0 | |
route add default gw 10.1.1.1 | |
exit 0</entry> | |
</extensions> | |
<interface id="0" name="eth1"/> | |
</node> | |
<node name="Internal-Server-2" type="SIMPLE" subtype="server" location="926,160"> | |
<extensions> | |
<entry key="config" type="String">#cloud-config | |
bootcmd: | |
- ln -s -t /etc/rc.d /etc/rc.local | |
hostname: Internal-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.23.9 | |
lock-passwd: false | |
name: cisco | |
plain-text-passwd: cisco | |
shell: /bin/bash | |
ssh-authorized-keys: | |
- VIRL-USER-SSH-PUBLIC-KEY | |
sudo: ALL=(ALL) ALL | |
write_files: | |
- path: /etc/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.1.2.10 netmask 255.255.255.0 | |
route add default gw 10.1.2.1 | |
exit 0 | |
</entry> | |
</extensions> | |
<interface id="0" name="eth1"/> | |
</node> | |
<node name="DHCP-Server" type="SIMPLE" subtype="IOSv" location="75,280"> | |
<extensions> | |
<entry key="config" type="String">! | |
! Last configuration change at 01:27:13 UTC Sun Apr 9 2017 | |
! | |
version 15.6 | |
service timestamps debug datetime msec | |
service timestamps log datetime msec | |
no service password-encryption | |
! | |
hostname DHCP-SERVER | |
! | |
boot-start-marker | |
boot-end-marker | |
! | |
! | |
! | |
no aaa new-model | |
ethernet lmi ce | |
! | |
! | |
! | |
mmi polling-interval 60 | |
no mmi auto-configure | |
no mmi pvc | |
mmi snmp-timeout 180 | |
! | |
! | |
! | |
! | |
! | |
! | |
! | |
! | |
ip dhcp excluded-address 10.1.2.1 10.1.2.60 | |
ip dhcp excluded-address 10.1.3.1 10.1.3.60 | |
! | |
ip dhcp pool DHCP-POOL-1 | |
network 10.1.2.0 255.255.255.0 | |
default-router 10.1.2.1 | |
! | |
ip dhcp pool DHCP-POOL-2 | |
network 10.1.3.0 255.255.255.0 | |
default-router 10.1.3.1 | |
! | |
! | |
! | |
ip cef | |
no ipv6 cef | |
! | |
multilink bundle-name authenticated | |
! | |
! | |
! | |
! | |
! | |
redundancy | |
! | |
! | |
! | |
! | |
! | |
! | |
! | |
! | |
! | |
! | |
! | |
! | |
! | |
! | |
! | |
interface GigabitEthernet0/0 | |
ip address 172.16.1.158 255.255.255.0 | |
shutdown | |
duplex auto | |
speed auto | |
media-type rj45 | |
! | |
interface GigabitEthernet0/1 | |
ip address 10.1.1.20 255.255.255.0 | |
duplex auto | |
speed auto | |
media-type rj45 | |
! | |
ip forward-protocol nd | |
! | |
! | |
no ip http server | |
no ip http secure-server | |
ip route 0.0.0.0 0.0.0.0 10.1.1.1 | |
! | |
! | |
! | |
! | |
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 | |
login | |
transport input none | |
! | |
no scheduler allocate | |
! | |
end</entry> | |
</extensions> | |
<interface id="0" name="GigabitEthernet0/1"/> | |
</node> | |
<node name="windows-1" type="SIMPLE" subtype="Windows" location="910,293"> | |
<interface id="0" name="eth0"/> | |
</node> | |
<node name="windows-2" type="SIMPLE" subtype="Windows" location="799,319"> | |
<interface id="0" name="eth0"/> | |
</node> | |
<node name="SW-1" type="SIMPLE" subtype="IOSvL2" location="148,225"> | |
<extensions> | |
<entry key="config" type="String">! | |
! Last configuration change at 01:27:12 UTC Sun Apr 9 2017 | |
! | |
version 15.2 | |
service timestamps debug datetime msec | |
service timestamps log datetime msec | |
no service password-encryption | |
service compress-config | |
! | |
hostname SW-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 | |
! | |
! | |
! | |
! | |
! | |
vtp domain virl.lab | |
vtp mode transparent | |
! | |
! | |
! | |
no ip domain-lookup | |
ip cef | |
no ipv6 cef | |
! | |
! | |
! | |
spanning-tree mode pvst | |
spanning-tree extend system-id | |
! | |
vlan internal allocation policy ascending | |
! | |
vlan 2 | |
name ank_vlan2 | |
! | |
vlan 5 | |
name DMZ | |
! | |
vlan 10 | |
name Inside | |
no cdp run | |
! | |
! | |
! | |
! | |
! | |
! | |
! | |
! | |
! | |
! | |
! | |
! | |
! | |
! | |
interface Loopback0 | |
description Loopback | |
no ip address | |
! | |
interface GigabitEthernet0/1 | |
description to ASA-1 | |
switchport trunk encapsulation dot1q | |
switchport mode trunk | |
switchport nonegotiate | |
media-type rj45 | |
duplex full | |
no negotiation auto | |
! | |
interface GigabitEthernet0/2 | |
description to Internal-Server-1 | |
switchport access vlan 5 | |
switchport mode access | |
media-type rj45 | |
negotiation auto | |
! | |
interface GigabitEthernet0/3 | |
description DHCP-SERVER | |
switchport access vlan 5 | |
switchport mode access | |
media-type rj45 | |
negotiation auto | |
! | |
interface GigabitEthernet0/0 | |
description OOB management | |
no switchport | |
vrf forwarding Mgmt-intf | |
ip address 172.16.1.163 255.255.255.0 | |
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 | |
login | |
! | |
! | |
end</entry> | |
</extensions> | |
<interface id="0" name="GigabitEthernet0/1"/> | |
<interface id="1" name="GigabitEthernet0/2"/> | |
<interface id="2" name="GigabitEthernet0/3"/> | |
</node> | |
<node name="SW-2" type="SIMPLE" subtype="IOSvL2" location="837,220"> | |
<extensions> | |
<entry key="config" type="String">! | |
! Last configuration change at 01:27:13 UTC Sun Apr 9 2017 | |
! | |
version 15.2 | |
service timestamps debug datetime msec | |
service timestamps log datetime msec | |
no service password-encryption | |
service compress-config | |
! | |
hostname SW-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 | |
! | |
! | |
! | |
! | |
! | |
vtp domain virl.lab | |
vtp mode transparent | |
! | |
! | |
! | |
no ip domain-lookup | |
ip cef | |
no ipv6 cef | |
! | |
! | |
! | |
spanning-tree mode pvst | |
spanning-tree extend system-id | |
! | |
vlan internal allocation policy ascending | |
! | |
vlan 2 | |
name ank_vlan2 | |
! | |
vlan 5 | |
name Inside | |
! | |
vlan 10 | |
name Inside-2 | |
no cdp run | |
! | |
! | |
! | |
! | |
! | |
! | |
! | |
! | |
! | |
! | |
! | |
! | |
! | |
! | |
interface Loopback0 | |
description Loopback | |
no ip address | |
! | |
interface GigabitEthernet0/1 | |
description to ASA-2 | |
switchport trunk encapsulation dot1q | |
switchport mode trunk | |
switchport nonegotiate | |
media-type rj45 | |
duplex full | |
no negotiation auto | |
! | |
interface GigabitEthernet0/2 | |
description to Internal-Server-2 | |
switchport access vlan 5 | |
switchport mode access | |
media-type rj45 | |
negotiation auto | |
! | |
interface GigabitEthernet0/3 | |
description Windows | |
switchport access vlan 5 | |
switchport mode access | |
media-type rj45 | |
negotiation auto | |
! | |
interface GigabitEthernet0/0 | |
description OOB management | |
no switchport | |
vrf forwarding Mgmt-intf | |
ip address 172.16.1.164 255.255.255.0 | |
negotiation auto | |
! | |
interface GigabitEthernet1/0 | |
description Windows | |
switchport access vlan 10 | |
switchport mode access | |
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 | |
login | |
! | |
! | |
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> | |
<annotations/> | |
<connection dst="/virl:topology/virl:node[3]/virl:interface[1]" src="/virl:topology/virl:node[4]/virl:interface[2]"/> | |
<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[1]/virl:interface[2]" src="/virl:topology/virl:node[2]/virl:interface[2]"/> | |
<connection dst="/virl:topology/virl:node[10]/virl:interface[1]" src="/virl:topology/virl:node[1]/virl:interface[1]"/> | |
<connection dst="/virl:topology/virl:node[10]/virl:interface[2]" src="/virl:topology/virl:node[5]/virl:interface[1]"/> | |
<connection dst="/virl:topology/virl:node[10]/virl:interface[3]" src="/virl:topology/virl:node[7]/virl:interface[1]"/> | |
<connection dst="/virl:topology/virl:node[11]/virl:interface[1]" src="/virl:topology/virl:node[4]/virl:interface[1]"/> | |
<connection dst="/virl:topology/virl:node[11]/virl:interface[2]" src="/virl:topology/virl:node[6]/virl:interface[1]"/> | |
<connection dst="/virl:topology/virl:node[11]/virl:interface[3]" src="/virl:topology/virl:node[8]/virl:interface[1]"/> | |
<connection dst="/virl:topology/virl:node[11]/virl:interface[4]" src="/virl:topology/virl:node[9]/virl:interface[1]"/> | |
</topology> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment