You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

447 lines
12 KiB

  1. <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
  2. <topology xmlns="http://www.cisco.com/VIRL" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" schemaVersion="0.9" xsi:schemaLocation="http://www.cisco.com/VIRL https://raw.github.com/CiscoVIRL/schema/v0.9/virl.xsd">
  3. <extensions>
  4. <entry key="management_network" type="String">exclusive</entry>
  5. </extensions>
  6. <node name="flat-1" type="ASSET" subtype="FLAT" location="149,274">
  7. <interface id="0" name="link0"/>
  8. </node>
  9. <node name="asav-1" type="SIMPLE" subtype="ASAv" location="329,284">
  10. <extensions>
  11. <entry key="config" type="string">! ASAv Config generated on 2015-08-28 10:43
  12. ! by autonetkit_0.18.1
  13. !
  14. hostname asav-1
  15. username cisco password cisco privilege 15
  16. enable password cisco
  17. passwd cisco
  18. names
  19. !
  20. interface Loopback100
  21. description loopback
  22. no ip address
  23. interface GigabitEthernet0/0
  24. description to flat-1
  25. duplex full
  26. nameif outside
  27. security-level 0
  28. no shutdown
  29. no ip address
  30. interface GigabitEthernet0/1
  31. description to nx-osv-1
  32. duplex full
  33. nameif inside
  34. security-level 100
  35. no shutdown
  36. ip address 10.0.128.1 255.255.255.252
  37. interface Management0/0
  38. description OOB Management
  39. duplex full
  40. management-only
  41. nameif mgmt
  42. security-level 100
  43. no shutdown
  44. ! Configured on launch
  45. no ip address
  46. !
  47. same-security-traffic permit inter-interface
  48. logging enable
  49. logging asdm informational
  50. user-identity default-domain LOCAL
  51. aaa authentication ssh console LOCAL
  52. http server enable
  53. http 0.0.0.0 0.0.0.0 inside
  54. ssh 0.0.0.0 0.0.0.0 inside
  55. telnet 0.0.0.0 0.0.0.0 inside
  56. http 0.0.0.0 0.0.0.0 mgmt
  57. ssh 0.0.0.0 0.0.0.0 mgmt
  58. telnet 0.0.0.0 0.0.0.0 mgmt
  59. http 0.0.0.0 0.0.0.0 outside
  60. ssh 0.0.0.0 0.0.0.0 outside
  61. telnet 0.0.0.0 0.0.0.0 outside
  62. telnet timeout 15
  63. console timeout 0
  64. username cisco password cisco privilege 15
  65. !
  66. class-map inspection_default
  67. match default-inspection-traffic
  68. !
  69. !
  70. policy-map type inspect dns preset_dns_map
  71. parameters
  72. message-length maximum client auto
  73. message-length maximum 512
  74. policy-map global_policy
  75. class inspection_default
  76. inspect ip-options
  77. inspect netbios
  78. inspect rtsp
  79. inspect sunrpc
  80. inspect tftp
  81. inspect xdmcp
  82. inspect dns preset_dns_map
  83. inspect ftp
  84. inspect h323 h225
  85. inspect h323 ras
  86. inspect rsh
  87. inspect esmtp
  88. inspect sqlnet
  89. inspect sip
  90. inspect skinny
  91. inspect icmp
  92. inspect http
  93. !
  94. service-policy global_policy global
  95. no call-home reporting anonymous
  96. call-home
  97. profile CiscoTAC-1
  98. no active
  99. end
  100. </entry>
  101. <entry key="AutoNetkit.mgmt_ip" type="string"></entry>
  102. </extensions>
  103. <interface id="0" name="GigabitEthernet0/0"/>
  104. <interface id="1" name="GigabitEthernet0/1" ipv4="10.0.128.1" netPrefixLenV4="30">
  105. <extensions>
  106. <entry key="AutoNetkit.security_level" type="Integer">100</entry>
  107. </extensions>
  108. </interface>
  109. </node>
  110. <node name="nx-osv-1" type="SIMPLE" subtype="NX-OSv" location="499,288" ipv4="192.168.0.3">
  111. <extensions>
  112. <entry key="config" type="string">! NX-OSv Config generated on 2015-08-28 10:43
  113. ! by autonetkit_0.18.1
  114. !
  115. version 6.2(1)
  116. license grace-period
  117. !
  118. hostname nx-osv-1
  119. vdc nx-osv-1 id 1
  120. allocate interface Ethernet2/1-48
  121. allocate interface Ethernet3/1-48
  122. limit-resource vlan minimum 16 maximum 4094
  123. limit-resource vrf minimum 2 maximum 4096
  124. limit-resource port-channel minimum 0 maximum 768
  125. limit-resource u4route-mem minimum 96 maximum 96
  126. limit-resource u6route-mem minimum 24 maximum 24
  127. limit-resource m4route-mem minimum 58 maximum 58
  128. limit-resource m6route-mem minimum 8 maximum 8
  129. feature telnet
  130. feature ospf
  131. username adminbackup password 5 ! role network-operator
  132. username admin password 5 $1$KuOSBsvW$Cy0TSD..gEBGBPjzpDgf51 role network-admin
  133. username cisco password 5 $1$Nk7ZkwH0$fyiRmMMfIheqE3BqvcL0C1 role network-operator
  134. username cisco role network-admin
  135. username lab password 5 $1$buoy/oqy$.EXQz8rCn72ii8qtdldj00 role network-admin
  136. no password strength-check
  137. ip domain-lookup
  138. copp profile strict
  139. snmp-server user lab network-admin auth md5 0x5ceb414591539ee35159fca86fdfa101 priv 0x5ceb414591539ee35159fca86fdfa101 localizedkey
  140. snmp-server user admin network-admin auth md5 0x328945d53e05e8e7207f8c20b142f0b7 priv 0x328945d53e05e8e7207f8c20b142f0b7 localizedkey
  141. snmp-server user cisco network-operator auth md5 0x55b3c64a53fb95518e75358ee75e82e9 priv 0x55b3c64a53fb95518e75358ee75e82e9 localizedkey
  142. snmp-server user cisco network-admin
  143. rmon event 1 log trap public description FATAL(1) owner PMON@FATAL
  144. rmon event 2 log trap public description CRITICAL(2) owner PMON@CRITICAL
  145. rmon event 3 log trap public description ERROR(3) owner PMON@ERROR
  146. rmon event 4 log trap public description WARNING(4) owner PMON@WARNING
  147. rmon event 5 log trap public description INFORMATION(5) owner PMON@INFO
  148. vlan 1
  149. vrf context management
  150. hardware forwarding unicast trace
  151. interface Loopback0
  152. description Loopback
  153. ip address 192.168.0.3/32
  154. ip router ospf 1 area 0
  155. interface Ethernet2/1
  156. description to asav-1
  157. ip address 10.0.128.2/30
  158. ip router ospf 1 area 0
  159. duplex full
  160. no mac-address
  161. no shutdown
  162. interface Ethernet2/2
  163. description to iosvl2-1
  164. ip address 10.0.0.1/17
  165. ip router ospf 1 area 0
  166. duplex full
  167. no mac-address
  168. no shutdown
  169. interface mgmt0
  170. description OOB Management
  171. ! Configured on launch
  172. no ip address
  173. duplex full
  174. no mac-address
  175. no shutdown
  176. vrf member management
  177. line console
  178. line vty
  179. router ospf 1
  180. router-id 192.168.0.3
  181. </entry>
  182. <entry key="AutoNetkit.mgmt_ip" type="string"></entry>
  183. </extensions>
  184. <interface id="0" name="Ethernet2/1" ipv4="10.0.128.2" netPrefixLenV4="30"/>
  185. <interface id="1" name="Ethernet2/2" ipv4="10.0.0.1" netPrefixLenV4="17"/>
  186. </node>
  187. <node name="iosvl2-1" type="SIMPLE" subtype="IOSvL2" location="629,291">
  188. <extensions>
  189. <entry key="config" type="string">! IOSvL2 Config generated on 2015-08-28 10:43
  190. ! by autonetkit_0.18.1
  191. !
  192. version 15.2
  193. service timestamps debug datetime msec
  194. service timestamps log datetime msec
  195. no service password-encryption
  196. service compress-config
  197. no service config
  198. enable password cisco
  199. ip classless
  200. ip subnet-zero
  201. no ip domain lookup
  202. !
  203. line vty 0 4
  204. transport input ssh telnet
  205. exec-timeout 720 0
  206. password cisco
  207. login
  208. !
  209. line con 0
  210. password cisco
  211. !
  212. hostname iosvl2-1
  213. !
  214. boot-start-marker
  215. boot-end-marker
  216. !
  217. !
  218. !
  219. no aaa new-model
  220. !
  221. !
  222. !
  223. !
  224. !
  225. !
  226. !
  227. !
  228. ip cef
  229. no ipv6 cef
  230. !
  231. !
  232. spanning-tree mode pvst
  233. spanning-tree extend system-id
  234. !
  235. vlan internal allocation policy ascending
  236. !
  237. !
  238. !
  239. !
  240. vrf definition Mgmt-intf
  241. !
  242. address-family ipv4
  243. exit-address-family
  244. !
  245. address-family ipv6
  246. exit-address-family
  247. !
  248. !
  249. !
  250. !
  251. !
  252. interface Loopback0
  253. description Loopback
  254. !
  255. interface GigabitEthernet0/0
  256. description Mapped to Vlan1 for management
  257. ! Configured on launch
  258. switchport mode access
  259. no shutdown
  260. !
  261. interface GigabitEthernet0/1
  262. description to nx-osv-1
  263. switchport access vlan 2
  264. switchport mode access
  265. no shutdown
  266. !
  267. interface GigabitEthernet0/2
  268. description to server-1
  269. switchport access vlan 2
  270. switchport mode access
  271. no shutdown
  272. !
  273. interface GigabitEthernet0/3
  274. description to server-2
  275. switchport access vlan 2
  276. switchport mode access
  277. no shutdown
  278. !
  279. interface Vlan1
  280. description OOB Management
  281. ! Configured on launch
  282. vrf forwarding Mgmt-intf
  283. no ip address
  284. !
  285. !
  286. ip forward-protocol nd
  287. !
  288. no ip http server
  289. no ip http secure-server
  290. !
  291. !
  292. !
  293. !
  294. !
  295. !
  296. control-plane
  297. !
  298. !
  299. !
  300. end
  301. </entry>
  302. <entry key="AutoNetkit.mgmt_ip" type="string"></entry>
  303. </extensions>
  304. <interface id="0" name="GigabitEthernet0/1"/>
  305. <interface id="1" name="GigabitEthernet0/2"/>
  306. <interface id="2" name="GigabitEthernet0/3"/>
  307. </node>
  308. <node name="server-1" type="SIMPLE" subtype="server" location="769,197">
  309. <extensions>
  310. <entry key="config" type="string">#cloud-config
  311. bootcmd:
  312. - ln -s -t /etc/rc.d /etc/rc.local
  313. hostname: server-1
  314. manage_etc_hosts: true
  315. runcmd:
  316. - start ttyS0
  317. - systemctl start getty@ttyS0.service
  318. - systemctl start rc-local
  319. - sed -i '/^\s*PasswordAuthentication\s\+no/d' /etc/ssh/sshd_config
  320. - echo "UseDNS no" &gt;&gt; /etc/ssh/sshd_config
  321. - service ssh restart
  322. - service sshd restart
  323. users:
  324. - default
  325. - gecos: User configured by VIRL Configuration Engine 0.18.9
  326. lock-passwd: false
  327. name: cisco
  328. plain-text-passwd: cisco
  329. shell: /bin/bash
  330. ssh-authorized-keys:
  331. - VIRL-USER-SSH-PUBLIC-KEY
  332. sudo: ALL=(ALL) ALL
  333. write_files:
  334. - path: /etc/init/ttyS0.conf
  335. owner: root:root
  336. content: |
  337. # ttyS0 - getty
  338. # This service maintains a getty on ttyS0 from the point the system is
  339. # started until it is shut down again.
  340. start on stopped rc or RUNLEVEL=[12345]
  341. stop on runlevel [!12345]
  342. respawn
  343. exec /sbin/getty -L 115200 ttyS0 vt102
  344. permissions: '0644'
  345. - path: /etc/systemd/system/dhclient@.service
  346. content: |
  347. [Unit]
  348. Description=Run dhclient on %i interface
  349. After=network.target
  350. [Service]
  351. Type=oneshot
  352. ExecStart=/sbin/dhclient %i -pf /var/run/dhclient.%i.pid -lf /var/lib/dhclient/dhclient.%i.lease
  353. RemainAfterExit=yes
  354. owner: root:root
  355. permissions: '0644'
  356. - path: /etc/rc.local
  357. owner: root:root
  358. permissions: '0755'
  359. content: |-
  360. #!/bin/sh -e
  361. ifconfig eth1 up 10.0.0.2 netmask 255.255.128.0
  362. route add -net 10.0.0.0/16 gw 10.0.0.1 dev eth1
  363. route add -net 192.168.0.0/29 gw 10.0.0.1 dev eth1
  364. exit 0
  365. </entry>
  366. </extensions>
  367. <interface id="0" name="eth1" ipv4="10.0.0.2" netPrefixLenV4="17"/>
  368. </node>
  369. <node name="server-2" type="SIMPLE" subtype="server" location="789,358">
  370. <extensions>
  371. <entry key="config" type="string">#cloud-config
  372. bootcmd:
  373. - ln -s -t /etc/rc.d /etc/rc.local
  374. hostname: server-2
  375. manage_etc_hosts: true
  376. runcmd:
  377. - start ttyS0
  378. - systemctl start getty@ttyS0.service
  379. - systemctl start rc-local
  380. - sed -i '/^\s*PasswordAuthentication\s\+no/d' /etc/ssh/sshd_config
  381. - echo "UseDNS no" &gt;&gt; /etc/ssh/sshd_config
  382. - service ssh restart
  383. - service sshd restart
  384. users:
  385. - default
  386. - gecos: User configured by VIRL Configuration Engine 0.18.9
  387. lock-passwd: false
  388. name: cisco
  389. plain-text-passwd: cisco
  390. shell: /bin/bash
  391. ssh-authorized-keys:
  392. - VIRL-USER-SSH-PUBLIC-KEY
  393. sudo: ALL=(ALL) ALL
  394. write_files:
  395. - path: /etc/init/ttyS0.conf
  396. owner: root:root
  397. content: |
  398. # ttyS0 - getty
  399. # This service maintains a getty on ttyS0 from the point the system is
  400. # started until it is shut down again.
  401. start on stopped rc or RUNLEVEL=[12345]
  402. stop on runlevel [!12345]
  403. respawn
  404. exec /sbin/getty -L 115200 ttyS0 vt102
  405. permissions: '0644'
  406. - path: /etc/systemd/system/dhclient@.service
  407. content: |
  408. [Unit]
  409. Description=Run dhclient on %i interface
  410. After=network.target
  411. [Service]
  412. Type=oneshot
  413. ExecStart=/sbin/dhclient %i -pf /var/run/dhclient.%i.pid -lf /var/lib/dhclient/dhclient.%i.lease
  414. RemainAfterExit=yes
  415. owner: root:root
  416. permissions: '0644'
  417. - path: /etc/rc.local
  418. owner: root:root
  419. permissions: '0755'
  420. content: |-
  421. #!/bin/sh -e
  422. ifconfig eth1 up 10.0.0.3 netmask 255.255.128.0
  423. route add -net 10.0.0.0/16 gw 10.0.0.1 dev eth1
  424. route add -net 192.168.0.0/29 gw 10.0.0.1 dev eth1
  425. exit 0
  426. </entry>
  427. </extensions>
  428. <interface id="0" name="eth1" ipv4="10.0.0.3" netPrefixLenV4="17"/>
  429. </node>
  430. <connection dst="/virl:topology/virl:node[2]/virl:interface[1]" src="/virl:topology/virl:node[1]/virl:interface[1]"/>
  431. <connection dst="/virl:topology/virl:node[3]/virl:interface[1]" src="/virl:topology/virl:node[2]/virl:interface[2]"/>
  432. <connection dst="/virl:topology/virl:node[4]/virl:interface[1]" src="/virl:topology/virl:node[3]/virl:interface[2]"/>
  433. <connection dst="/virl:topology/virl:node[5]/virl:interface[1]" src="/virl:topology/virl:node[4]/virl:interface[2]"/>
  434. <connection dst="/virl:topology/virl:node[6]/virl:interface[1]" src="/virl:topology/virl:node[4]/virl:interface[3]"/>
  435. </topology>