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.

866 lines
27 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. <node name="iosv-1" type="SIMPLE" subtype="IOSv" location="310,72" coordinate="52.187404745599686,-109.248046875">
  4. <extensions>
  5. <entry key="AutoNetkit.mgmt_ip" type="string"></entry>
  6. <entry key="config" type="String">!&#xD;
  7. ! Last configuration change at 15:54:14 UTC Thu Jan 7 2016&#xD;
  8. !&#xD;
  9. version 15.6&#xD;
  10. service timestamps debug datetime msec&#xD;
  11. service timestamps log datetime msec&#xD;
  12. no service password-encryption&#xD;
  13. !&#xD;
  14. hostname iosv-1&#xD;
  15. !&#xD;
  16. boot-start-marker&#xD;
  17. boot-end-marker&#xD;
  18. !&#xD;
  19. !&#xD;
  20. vrf definition Mgmt-intf&#xD;
  21. !&#xD;
  22. address-family ipv4&#xD;
  23. exit-address-family&#xD;
  24. !&#xD;
  25. address-family ipv6&#xD;
  26. exit-address-family&#xD;
  27. !&#xD;
  28. enable password cisco&#xD;
  29. !&#xD;
  30. no aaa new-model&#xD;
  31. ethernet lmi ce&#xD;
  32. !&#xD;
  33. !&#xD;
  34. !&#xD;
  35. mmi polling-interval 60&#xD;
  36. no mmi auto-configure&#xD;
  37. no mmi pvc&#xD;
  38. mmi snmp-timeout 180&#xD;
  39. !&#xD;
  40. !&#xD;
  41. !&#xD;
  42. !&#xD;
  43. !&#xD;
  44. !&#xD;
  45. !&#xD;
  46. !&#xD;
  47. !&#xD;
  48. !&#xD;
  49. !&#xD;
  50. no ip domain lookup&#xD;
  51. ip cef&#xD;
  52. ipv6 unicast-routing&#xD;
  53. ipv6 cef&#xD;
  54. !&#xD;
  55. multilink bundle-name authenticated&#xD;
  56. !&#xD;
  57. !&#xD;
  58. !&#xD;
  59. !&#xD;
  60. !&#xD;
  61. redundancy&#xD;
  62. !&#xD;
  63. no cdp run&#xD;
  64. !&#xD;
  65. ! &#xD;
  66. !&#xD;
  67. !&#xD;
  68. !&#xD;
  69. !&#xD;
  70. !&#xD;
  71. !&#xD;
  72. !&#xD;
  73. !&#xD;
  74. !&#xD;
  75. !&#xD;
  76. !&#xD;
  77. !&#xD;
  78. interface Loopback0&#xD;
  79. description Loopback&#xD;
  80. ip address 10.10.10.2 255.255.255.255&#xD;
  81. !&#xD;
  82. interface GigabitEthernet0/0&#xD;
  83. ip address 10.255.0.60 255.255.0.0&#xD;
  84. shutdown&#xD;
  85. duplex auto&#xD;
  86. speed auto&#xD;
  87. media-type rj45&#xD;
  88. !&#xD;
  89. interface GigabitEthernet0/1&#xD;
  90. description to flat-1&#xD;
  91. ip address 172.16.1.115 255.255.255.0&#xD;
  92. ip ospf 1 area 0&#xD;
  93. duplex full&#xD;
  94. speed auto&#xD;
  95. media-type rj45&#xD;
  96. !&#xD;
  97. interface GigabitEthernet0/2&#xD;
  98. description to iosvl2-1&#xD;
  99. no ip address&#xD;
  100. duplex full&#xD;
  101. speed auto&#xD;
  102. media-type rj45&#xD;
  103. !&#xD;
  104. interface GigabitEthernet0/2.10&#xD;
  105. description VLAN10&#xD;
  106. encapsulation dot1Q 10&#xD;
  107. ip address 192.168.21.254 255.255.255.0&#xD;
  108. ip ospf cost 1&#xD;
  109. !&#xD;
  110. interface GigabitEthernet0/2.20&#xD;
  111. description VLAN20&#xD;
  112. encapsulation dot1Q 20&#xD;
  113. ip address 192.168.22.254 255.255.255.0&#xD;
  114. ip ospf cost 1&#xD;
  115. !&#xD;
  116. interface GigabitEthernet0/2.30&#xD;
  117. description VLAN30&#xD;
  118. encapsulation dot1Q 30&#xD;
  119. ip address 192.168.23.254 255.255.255.0&#xD;
  120. ip ospf cost 1&#xD;
  121. !&#xD;
  122. router ospf 1&#xD;
  123. passive-interface Loopback0&#xD;
  124. network 192.168.21.0 0.0.0.255 area 0&#xD;
  125. network 192.168.22.0 0.0.0.255 area 0&#xD;
  126. network 192.168.23.0 0.0.0.255 area 0&#xD;
  127. !&#xD;
  128. ip forward-protocol nd&#xD;
  129. !&#xD;
  130. !&#xD;
  131. no ip http server&#xD;
  132. no ip http secure-server&#xD;
  133. !&#xD;
  134. !&#xD;
  135. !&#xD;
  136. !&#xD;
  137. control-plane&#xD;
  138. !&#xD;
  139. banner exec `&#xD;
  140. **************************************************************************&#xD;
  141. * IOSv is strictly limited to use for evaluation, demonstration and IOS *&#xD;
  142. * education. IOSv is provided as-is and is not supported by Cisco's *&#xD;
  143. * Technical Advisory Center. Any use or disclosure, in whole or in part, *&#xD;
  144. * of the IOSv Software or Documentation to any third party for any *&#xD;
  145. * purposes is expressly prohibited except as otherwise authorized by *&#xD;
  146. * Cisco in writing. *&#xD;
  147. **************************************************************************`&#xD;
  148. banner incoming `&#xD;
  149. **************************************************************************&#xD;
  150. * IOSv is strictly limited to use for evaluation, demonstration and IOS *&#xD;
  151. * education. IOSv is provided as-is and is not supported by Cisco's *&#xD;
  152. * Technical Advisory Center. Any use or disclosure, in whole or in part, *&#xD;
  153. * of the IOSv Software or Documentation to any third party for any *&#xD;
  154. * purposes is expressly prohibited except as otherwise authorized by *&#xD;
  155. * Cisco in writing. *&#xD;
  156. **************************************************************************`&#xD;
  157. banner login `&#xD;
  158. **************************************************************************&#xD;
  159. * IOSv is strictly limited to use for evaluation, demonstration and IOS *&#xD;
  160. * education. IOSv is provided as-is and is not supported by Cisco's *&#xD;
  161. * Technical Advisory Center. Any use or disclosure, in whole or in part, *&#xD;
  162. * of the IOSv Software or Documentation to any third party for any *&#xD;
  163. * purposes is expressly prohibited except as otherwise authorized by *&#xD;
  164. * Cisco in writing. *&#xD;
  165. **************************************************************************`&#xD;
  166. !&#xD;
  167. line con 0&#xD;
  168. password cisco&#xD;
  169. line aux 0&#xD;
  170. line vty 0 4&#xD;
  171. exec-timeout 720 0&#xD;
  172. password cisco&#xD;
  173. login&#xD;
  174. transport input telnet ssh&#xD;
  175. !&#xD;
  176. no scheduler allocate&#xD;
  177. !&#xD;
  178. end</entry>
  179. </extensions>
  180. <interface id="0" name="GigabitEthernet0/1"/>
  181. <interface id="1" name="GigabitEthernet0/2"/>
  182. </node>
  183. <node name="flat-1" type="ASSET" subtype="FLAT" location="145,75" coordinate="52.10650519075632,-116.4990234375">
  184. <interface id="0" name="link0"/>
  185. </node>
  186. <node name="iosvl2-1" type="SIMPLE" subtype="IOSvL2" location="304,210" coordinate="48.312427904071775,-109.51171875">
  187. <extensions>
  188. <entry key="AutoNetkit.mgmt_ip" type="string"></entry>
  189. <entry key="config" type="String">!&#xD;
  190. ! Last configuration change at 15:26:32 UTC Sat Jan 23 2016&#xD;
  191. !&#xD;
  192. version 15.2&#xD;
  193. service timestamps debug datetime msec&#xD;
  194. service timestamps log datetime msec&#xD;
  195. no service password-encryption&#xD;
  196. service compress-config&#xD;
  197. !&#xD;
  198. hostname iosvl2-1&#xD;
  199. !&#xD;
  200. boot-start-marker&#xD;
  201. boot-end-marker&#xD;
  202. !&#xD;
  203. !&#xD;
  204. vrf definition Mgmt-intf&#xD;
  205. !&#xD;
  206. address-family ipv4&#xD;
  207. exit-address-family&#xD;
  208. !&#xD;
  209. address-family ipv6&#xD;
  210. exit-address-family&#xD;
  211. !&#xD;
  212. enable password cisco&#xD;
  213. !&#xD;
  214. no aaa new-model&#xD;
  215. !&#xD;
  216. !&#xD;
  217. !&#xD;
  218. !&#xD;
  219. !&#xD;
  220. no ip routing&#xD;
  221. !&#xD;
  222. !&#xD;
  223. !&#xD;
  224. no ip domain-lookup&#xD;
  225. no ip cef&#xD;
  226. no ipv6 cef&#xD;
  227. !&#xD;
  228. !&#xD;
  229. !&#xD;
  230. spanning-tree mode pvst&#xD;
  231. spanning-tree extend system-id&#xD;
  232. spanning-tree vlan 10,20 priority 24576&#xD;
  233. !&#xD;
  234. vlan internal allocation policy ascending&#xD;
  235. !&#xD;
  236. ! &#xD;
  237. !&#xD;
  238. !&#xD;
  239. !&#xD;
  240. !&#xD;
  241. !&#xD;
  242. !&#xD;
  243. !&#xD;
  244. !&#xD;
  245. !&#xD;
  246. !&#xD;
  247. !&#xD;
  248. !&#xD;
  249. interface GigabitEthernet0/0&#xD;
  250. media-type rj45&#xD;
  251. negotiation auto&#xD;
  252. !&#xD;
  253. interface GigabitEthernet0/1&#xD;
  254. description to iosv-1&#xD;
  255. switchport trunk allowed vlan 10,30&#xD;
  256. switchport trunk encapsulation dot1q&#xD;
  257. switchport mode trunk&#xD;
  258. media-type rj45&#xD;
  259. negotiation auto&#xD;
  260. spanning-tree bpdufilter enable&#xD;
  261. !&#xD;
  262. interface GigabitEthernet0/2&#xD;
  263. description to iosvl2-2&#xD;
  264. switchport trunk allowed vlan 10,20,30&#xD;
  265. switchport trunk encapsulation dot1q&#xD;
  266. switchport mode trunk&#xD;
  267. shutdown&#xD;
  268. media-type rj45&#xD;
  269. negotiation auto&#xD;
  270. spanning-tree bpduguard enable&#xD;
  271. !&#xD;
  272. interface GigabitEthernet0/3&#xD;
  273. description to iosvl2-3&#xD;
  274. switchport trunk allowed vlan 10,20,30&#xD;
  275. switchport trunk encapsulation dot1q&#xD;
  276. switchport mode trunk&#xD;
  277. media-type rj45&#xD;
  278. negotiation auto&#xD;
  279. !&#xD;
  280. interface GigabitEthernet1/0&#xD;
  281. description to server-1&#xD;
  282. switchport access vlan 20&#xD;
  283. switchport access vlan 30&#xD;
  284. switchport access vlan 10&#xD;
  285. switchport mode access&#xD;
  286. media-type rj45&#xD;
  287. negotiation auto&#xD;
  288. spanning-tree bpdufilter enable&#xD;
  289. !&#xD;
  290. interface Vlan20&#xD;
  291. description VLAN20TEST&#xD;
  292. ip address 192.168.22.251 255.255.255.0&#xD;
  293. no ip route-cache&#xD;
  294. !&#xD;
  295. ip forward-protocol nd&#xD;
  296. !&#xD;
  297. no ip http server&#xD;
  298. no ip http secure-server&#xD;
  299. !&#xD;
  300. !&#xD;
  301. !&#xD;
  302. !&#xD;
  303. !&#xD;
  304. !&#xD;
  305. control-plane&#xD;
  306. !&#xD;
  307. banner exec `&#xD;
  308. **************************************************************************&#xD;
  309. * IOSv is strictly limited to use for evaluation, demonstration and IOS *&#xD;
  310. * education. IOSv is provided as-is and is not supported by Cisco's *&#xD;
  311. * Technical Advisory Center. Any use or disclosure, in whole or in part, *&#xD;
  312. * of the IOSv Software or Documentation to any third party for any *&#xD;
  313. * purposes is expressly prohibited except as otherwise authorized by *&#xD;
  314. * Cisco in writing. *&#xD;
  315. **************************************************************************`&#xD;
  316. banner incoming `&#xD;
  317. **************************************************************************&#xD;
  318. * IOSv is strictly limited to use for evaluation, demonstration and IOS *&#xD;
  319. * education. IOSv is provided as-is and is not supported by Cisco's *&#xD;
  320. * Technical Advisory Center. Any use or disclosure, in whole or in part, *&#xD;
  321. * of the IOSv Software or Documentation to any third party for any *&#xD;
  322. * purposes is expressly prohibited except as otherwise authorized by *&#xD;
  323. * Cisco in writing. *&#xD;
  324. **************************************************************************`&#xD;
  325. banner login `&#xD;
  326. **************************************************************************&#xD;
  327. * IOSv is strictly limited to use for evaluation, demonstration and IOS *&#xD;
  328. * education. IOSv is provided as-is and is not supported by Cisco's *&#xD;
  329. * Technical Advisory Center. Any use or disclosure, in whole or in part, *&#xD;
  330. * of the IOSv Software or Documentation to any third party for any *&#xD;
  331. * purposes is expressly prohibited except as otherwise authorized by *&#xD;
  332. * Cisco in writing. *&#xD;
  333. **************************************************************************`&#xD;
  334. !&#xD;
  335. line con 0&#xD;
  336. password cisco&#xD;
  337. line aux 0&#xD;
  338. line vty 0 4&#xD;
  339. exec-timeout 720 0&#xD;
  340. password cisco&#xD;
  341. login&#xD;
  342. transport input telnet ssh&#xD;
  343. !&#xD;
  344. !&#xD;
  345. end</entry>
  346. </extensions>
  347. <interface id="0" name="GigabitEthernet0/1"/>
  348. <interface id="1" name="GigabitEthernet0/2"/>
  349. <interface id="2" name="GigabitEthernet0/3"/>
  350. <interface id="3" name="GigabitEthernet1/0"/>
  351. </node>
  352. <node name="iosvl2-2" type="SIMPLE" subtype="IOSvL2" location="172,305" coordinate="45.460130637921004,-115.3125">
  353. <extensions>
  354. <entry key="AutoNetkit.mgmt_ip" type="string"></entry>
  355. <entry key="config" type="String">!&#xD;
  356. ! Last configuration change at 15:04:01 UTC Sat Jan 23 2016&#xD;
  357. !&#xD;
  358. version 15.2&#xD;
  359. service timestamps debug datetime msec&#xD;
  360. service timestamps log datetime msec&#xD;
  361. no service password-encryption&#xD;
  362. service compress-config&#xD;
  363. !&#xD;
  364. hostname iosvl2-2&#xD;
  365. !&#xD;
  366. boot-start-marker&#xD;
  367. boot-end-marker&#xD;
  368. !&#xD;
  369. !&#xD;
  370. vrf definition Mgmt-intf&#xD;
  371. !&#xD;
  372. address-family ipv4&#xD;
  373. exit-address-family&#xD;
  374. !&#xD;
  375. address-family ipv6&#xD;
  376. exit-address-family&#xD;
  377. !&#xD;
  378. enable password cisco&#xD;
  379. !&#xD;
  380. no aaa new-model&#xD;
  381. !&#xD;
  382. !&#xD;
  383. !&#xD;
  384. !&#xD;
  385. !&#xD;
  386. !&#xD;
  387. !&#xD;
  388. !&#xD;
  389. no ip domain-lookup&#xD;
  390. ip cef&#xD;
  391. no ipv6 cef&#xD;
  392. !&#xD;
  393. !&#xD;
  394. !&#xD;
  395. spanning-tree mode pvst&#xD;
  396. spanning-tree extend system-id&#xD;
  397. !&#xD;
  398. vlan internal allocation policy ascending&#xD;
  399. !&#xD;
  400. ! &#xD;
  401. !&#xD;
  402. !&#xD;
  403. !&#xD;
  404. !&#xD;
  405. !&#xD;
  406. !&#xD;
  407. !&#xD;
  408. !&#xD;
  409. !&#xD;
  410. !&#xD;
  411. !&#xD;
  412. !&#xD;
  413. interface Loopback0&#xD;
  414. description Loopback&#xD;
  415. no ip address&#xD;
  416. !&#xD;
  417. interface GigabitEthernet0/0&#xD;
  418. media-type rj45&#xD;
  419. negotiation auto&#xD;
  420. !&#xD;
  421. interface GigabitEthernet0/1&#xD;
  422. description to iosvl2-1&#xD;
  423. switchport trunk encapsulation dot1q&#xD;
  424. switchport mode trunk&#xD;
  425. switchport trunk allowed vlan 10,20,30&#xD;
  426. media-type rj45&#xD;
  427. negotiation auto&#xD;
  428. !&#xD;
  429. interface GigabitEthernet0/2&#xD;
  430. description to iosvl2-3&#xD;
  431. switchport trunk encapsulation dot1q&#xD;
  432. switchport mode trunk&#xD;
  433. switchport trunk allowed vlan 10,20,30&#xD;
  434. media-type rj45&#xD;
  435. negotiation auto&#xD;
  436. !&#xD;
  437. interface GigabitEthernet0/3&#xD;
  438. description to server-2&#xD;
  439. switchport trunk encapsulation dot1q&#xD;
  440. switchport trunk native vlan 20&#xD;
  441. switchport mode trunk&#xD;
  442. media-type rj45&#xD;
  443. negotiation auto&#xD;
  444. spanning-tree bpdufilter enable&#xD;
  445. !&#xD;
  446. interface GigabitEthernet1/0&#xD;
  447. switchport mode access&#xD;
  448. switchport access vlan 10&#xD;
  449. switchport access vlan 30 &#xD;
  450. switchport access vlan 20&#xD;
  451. no switchport access vlan 20&#xD;
  452. media-type rj45&#xD;
  453. negotiation auto&#xD;
  454. spanning-tree bpdufilter enable&#xD;
  455. !&#xD;
  456. interface Vlan20&#xD;
  457. description VLAN20TEST&#xD;
  458. ip address 192.168.22.252 255.255.255.0&#xD;
  459. no ip route-cache&#xD;
  460. !&#xD;
  461. ip forward-protocol nd&#xD;
  462. !&#xD;
  463. no ip http server&#xD;
  464. no ip http secure-server&#xD;
  465. !&#xD;
  466. !&#xD;
  467. !&#xD;
  468. !&#xD;
  469. !&#xD;
  470. !&#xD;
  471. control-plane&#xD;
  472. !&#xD;
  473. banner exec `&#xD;
  474. **************************************************************************&#xD;
  475. * IOSv is strictly limited to use for evaluation, demonstration and IOS *&#xD;
  476. * education. IOSv is provided as-is and is not supported by Cisco's *&#xD;
  477. * Technical Advisory Center. Any use or disclosure, in whole or in part, *&#xD;
  478. * of the IOSv Software or Documentation to any third party for any *&#xD;
  479. * purposes is expressly prohibited except as otherwise authorized by *&#xD;
  480. * Cisco in writing. *&#xD;
  481. **************************************************************************`&#xD;
  482. banner incoming `&#xD;
  483. **************************************************************************&#xD;
  484. * IOSv is strictly limited to use for evaluation, demonstration and IOS *&#xD;
  485. * education. IOSv is provided as-is and is not supported by Cisco's *&#xD;
  486. * Technical Advisory Center. Any use or disclosure, in whole or in part, *&#xD;
  487. * of the IOSv Software or Documentation to any third party for any *&#xD;
  488. * purposes is expressly prohibited except as otherwise authorized by *&#xD;
  489. * Cisco in writing. *&#xD;
  490. **************************************************************************`&#xD;
  491. banner login `&#xD;
  492. **************************************************************************&#xD;
  493. * IOSv is strictly limited to use for evaluation, demonstration and IOS *&#xD;
  494. * education. IOSv is provided as-is and is not supported by Cisco's *&#xD;
  495. * Technical Advisory Center. Any use or disclosure, in whole or in part, *&#xD;
  496. * of the IOSv Software or Documentation to any third party for any *&#xD;
  497. * purposes is expressly prohibited except as otherwise authorized by *&#xD;
  498. * Cisco in writing. *&#xD;
  499. **************************************************************************`&#xD;
  500. !&#xD;
  501. line con 0&#xD;
  502. password cisco&#xD;
  503. line aux 0&#xD;
  504. line vty 0 4&#xD;
  505. exec-timeout 720 0&#xD;
  506. password cisco&#xD;
  507. login&#xD;
  508. transport input telnet ssh&#xD;
  509. !&#xD;
  510. !&#xD;
  511. end</entry>
  512. </extensions>
  513. <interface id="0" name="GigabitEthernet0/1"/>
  514. <interface id="1" name="GigabitEthernet0/2"/>
  515. <interface id="2" name="GigabitEthernet0/3"/>
  516. <interface id="3" name="GigabitEthernet1/0"/>
  517. </node>
  518. <node name="server-2" type="SIMPLE" subtype="server" location="172,404" coordinate="42.326062444562034,-115.3125">
  519. <extensions>
  520. <entry key="config" type="String">#cloud-config&#xD;
  521. bootcmd:&#xD;
  522. - ln -s -t /etc/rc.d /etc/rc.local&#xD;
  523. hostname: server-2&#xD;
  524. manage_etc_hosts: true&#xD;
  525. runcmd:&#xD;
  526. - start ttyS0&#xD;
  527. - systemctl start getty@ttyS0.service&#xD;
  528. - systemctl start rc-local&#xD;
  529. - sed -i '/^\s*PasswordAuthentication\s\+no/d' /etc/ssh/sshd_config&#xD;
  530. - echo "UseDNS no" &gt;&gt; /etc/ssh/sshd_config&#xD;
  531. - service ssh restart&#xD;
  532. - service sshd restart&#xD;
  533. users:&#xD;
  534. - default&#xD;
  535. - gecos: User configured by VIRL Configuration Engine 0.18.10&#xD;
  536. lock-passwd: false&#xD;
  537. name: cisco&#xD;
  538. plain-text-passwd: cisco&#xD;
  539. shell: /bin/bash&#xD;
  540. ssh-authorized-keys:&#xD;
  541. - VIRL-USER-SSH-PUBLIC-KEY&#xD;
  542. sudo: ALL=(ALL) ALL&#xD;
  543. write_files:&#xD;
  544. - path: /etc/init/ttyS0.conf&#xD;
  545. owner: root:root&#xD;
  546. content: |&#xD;
  547. # ttyS0 - getty&#xD;
  548. # This service maintains a getty on ttyS0 from the point the system is&#xD;
  549. # started until it is shut down again.&#xD;
  550. start on stopped rc or RUNLEVEL=[12345]&#xD;
  551. stop on runlevel [!12345]&#xD;
  552. respawn&#xD;
  553. exec /sbin/getty -L 115200 ttyS0 vt102&#xD;
  554. permissions: '0644'&#xD;
  555. - path: /etc/systemd/system/dhclient@.service&#xD;
  556. content: |&#xD;
  557. [Unit]&#xD;
  558. Description=Run dhclient on %i interface&#xD;
  559. After=network.target&#xD;
  560. [Service]&#xD;
  561. Type=oneshot&#xD;
  562. ExecStart=/sbin/dhclient %i -pf /var/run/dhclient.%i.pid -lf /var/lib/dhclient/dhclient.%i.lease&#xD;
  563. RemainAfterExit=yes&#xD;
  564. owner: root:root&#xD;
  565. permissions: '0644'&#xD;
  566. - path: /etc/rc.local&#xD;
  567. owner: root:root&#xD;
  568. permissions: '0755'&#xD;
  569. content: |-&#xD;
  570. #!/bin/sh -e&#xD;
  571. ifconfig eth1 up 192.168.22.1 netmask 255.255.255.0&#xD;
  572. route add -host 192.168.1.200 gw 192.168.22.254 dev eth1&#xD;
  573. route add -net 0.0.0.0 gw 192.168.22.254 dev eth1&#xD;
  574. exit 0&#xD;
  575. </entry>
  576. </extensions>
  577. <interface id="0" name="eth1"/>
  578. </node>
  579. <node name="server-3" type="SIMPLE" subtype="server" location="410,402" coordinate="42.39100860920504,-104.853515625">
  580. <extensions>
  581. <entry key="config" type="String">#cloud-config&#xD;
  582. bootcmd:&#xD;
  583. - ln -s -t /etc/rc.d /etc/rc.local&#xD;
  584. hostname: server-3&#xD;
  585. manage_etc_hosts: true&#xD;
  586. runcmd:&#xD;
  587. - start ttyS0&#xD;
  588. - systemctl start getty@ttyS0.service&#xD;
  589. - systemctl start rc-local&#xD;
  590. - sed -i '/^\s*PasswordAuthentication\s\+no/d' /etc/ssh/sshd_config&#xD;
  591. - echo "UseDNS no" &gt;&gt; /etc/ssh/sshd_config&#xD;
  592. - service ssh restart&#xD;
  593. - service sshd restart&#xD;
  594. users:&#xD;
  595. - default&#xD;
  596. - gecos: User configured by VIRL Configuration Engine 0.18.10&#xD;
  597. lock-passwd: false&#xD;
  598. name: cisco&#xD;
  599. plain-text-passwd: cisco&#xD;
  600. shell: /bin/bash&#xD;
  601. ssh-authorized-keys:&#xD;
  602. - VIRL-USER-SSH-PUBLIC-KEY&#xD;
  603. sudo: ALL=(ALL) ALL&#xD;
  604. write_files:&#xD;
  605. - path: /etc/init/ttyS0.conf&#xD;
  606. owner: root:root&#xD;
  607. content: |&#xD;
  608. # ttyS0 - getty&#xD;
  609. # This service maintains a getty on ttyS0 from the point the system is&#xD;
  610. # started until it is shut down again.&#xD;
  611. start on stopped rc or RUNLEVEL=[12345]&#xD;
  612. stop on runlevel [!12345]&#xD;
  613. respawn&#xD;
  614. exec /sbin/getty -L 115200 ttyS0 vt102&#xD;
  615. permissions: '0644'&#xD;
  616. - path: /etc/systemd/system/dhclient@.service&#xD;
  617. content: |&#xD;
  618. [Unit]&#xD;
  619. Description=Run dhclient on %i interface&#xD;
  620. After=network.target&#xD;
  621. [Service]&#xD;
  622. Type=oneshot&#xD;
  623. ExecStart=/sbin/dhclient %i -pf /var/run/dhclient.%i.pid -lf /var/lib/dhclient/dhclient.%i.lease&#xD;
  624. RemainAfterExit=yes&#xD;
  625. owner: root:root&#xD;
  626. permissions: '0644'&#xD;
  627. - path: /etc/rc.local&#xD;
  628. owner: root:root&#xD;
  629. permissions: '0755'&#xD;
  630. content: |-&#xD;
  631. #!/bin/sh -e&#xD;
  632. ifconfig eth1 up 192.168.23.1 netmask 255.255.255.0&#xD;
  633. route add -host 192.168.1.200 gw 192.168.23.254 dev eth1&#xD;
  634. route add -net 0.0.0.0 gw 192.168.23.254 dev eth1&#xD;
  635. exit 0&#xD;
  636. </entry>
  637. </extensions>
  638. <interface id="0" name="eth1"/>
  639. </node>
  640. <node name="server-1" type="SIMPLE" subtype="server" location="547,202" coordinate="48.54570549184746,-98.8330078125">
  641. <extensions>
  642. <entry key="config" type="String">#cloud-config&#xD;
  643. bootcmd:&#xD;
  644. - ln -s -t /etc/rc.d /etc/rc.local&#xD;
  645. hostname: server-1&#xD;
  646. manage_etc_hosts: true&#xD;
  647. runcmd:&#xD;
  648. - start ttyS0&#xD;
  649. - systemctl start getty@ttyS0.service&#xD;
  650. - systemctl start rc-local&#xD;
  651. - sed -i '/^\s*PasswordAuthentication\s\+no/d' /etc/ssh/sshd_config&#xD;
  652. - echo "UseDNS no" &gt;&gt; /etc/ssh/sshd_config&#xD;
  653. - service ssh restart&#xD;
  654. - service sshd restart&#xD;
  655. users:&#xD;
  656. - default&#xD;
  657. - gecos: User configured by VIRL Configuration Engine 0.18.10&#xD;
  658. lock-passwd: false&#xD;
  659. name: cisco&#xD;
  660. plain-text-passwd: cisco&#xD;
  661. shell: /bin/bash&#xD;
  662. ssh-authorized-keys:&#xD;
  663. - VIRL-USER-SSH-PUBLIC-KEY&#xD;
  664. sudo: ALL=(ALL) ALL&#xD;
  665. write_files:&#xD;
  666. - path: /etc/init/ttyS0.conf&#xD;
  667. owner: root:root&#xD;
  668. content: |&#xD;
  669. # ttyS0 - getty&#xD;
  670. # This service maintains a getty on ttyS0 from the point the system is&#xD;
  671. # started until it is shut down again.&#xD;
  672. start on stopped rc or RUNLEVEL=[12345]&#xD;
  673. stop on runlevel [!12345]&#xD;
  674. respawn&#xD;
  675. exec /sbin/getty -L 115200 ttyS0 vt102&#xD;
  676. permissions: '0644'&#xD;
  677. - path: /etc/systemd/system/dhclient@.service&#xD;
  678. content: |&#xD;
  679. [Unit]&#xD;
  680. Description=Run dhclient on %i interface&#xD;
  681. After=network.target&#xD;
  682. [Service]&#xD;
  683. Type=oneshot&#xD;
  684. ExecStart=/sbin/dhclient %i -pf /var/run/dhclient.%i.pid -lf /var/lib/dhclient/dhclient.%i.lease&#xD;
  685. RemainAfterExit=yes&#xD;
  686. owner: root:root&#xD;
  687. permissions: '0644'&#xD;
  688. - path: /etc/rc.local&#xD;
  689. owner: root:root&#xD;
  690. permissions: '0755'&#xD;
  691. content: |-&#xD;
  692. #!/bin/sh -e&#xD;
  693. ifconfig eth1 up 192.168.21.1 netmask 255.255.255.0&#xD;
  694. route add -host 192.168.1.200 gw 192.168.21.254 dev eth1&#xD;
  695. route add -net 0.0.0.0 gw 192.168.21.254 dev eth1&#xD;
  696. exit 0&#xD;
  697. </entry>
  698. </extensions>
  699. <interface id="0" name="eth1"/>
  700. </node>
  701. <node name="iosvl2-3" type="SIMPLE" subtype="IOSvL2" location="410,305" coordinate="45.460130637921004,-104.853515625">
  702. <extensions>
  703. <entry key="AutoNetkit.mgmt_ip" type="string"></entry>
  704. <entry key="config" type="String">!&#xD;
  705. ! Last configuration change at 15:27:02 UTC Sat Jan 23 2016&#xD;
  706. !&#xD;
  707. version 15.2&#xD;
  708. service timestamps debug datetime msec&#xD;
  709. service timestamps log datetime msec&#xD;
  710. no service password-encryption&#xD;
  711. service compress-config&#xD;
  712. !&#xD;
  713. hostname iosvl2-3&#xD;
  714. !&#xD;
  715. boot-start-marker&#xD;
  716. boot-end-marker&#xD;
  717. !&#xD;
  718. !&#xD;
  719. vrf definition Mgmt-intf&#xD;
  720. !&#xD;
  721. address-family ipv4&#xD;
  722. exit-address-family&#xD;
  723. !&#xD;
  724. address-family ipv6&#xD;
  725. exit-address-family&#xD;
  726. !&#xD;
  727. enable password cisco&#xD;
  728. !&#xD;
  729. no aaa new-model&#xD;
  730. !&#xD;
  731. !&#xD;
  732. !&#xD;
  733. !&#xD;
  734. !&#xD;
  735. !&#xD;
  736. !&#xD;
  737. !&#xD;
  738. no ip domain-lookup&#xD;
  739. ip cef&#xD;
  740. no ipv6 cef&#xD;
  741. !&#xD;
  742. !&#xD;
  743. !&#xD;
  744. spanning-tree mode pvst&#xD;
  745. spanning-tree extend system-id&#xD;
  746. spanning-tree vlan 10,20,30 priority 28672&#xD;
  747. !&#xD;
  748. vlan internal allocation policy ascending&#xD;
  749. !&#xD;
  750. ! &#xD;
  751. !&#xD;
  752. !&#xD;
  753. !&#xD;
  754. !&#xD;
  755. !&#xD;
  756. !&#xD;
  757. !&#xD;
  758. !&#xD;
  759. !&#xD;
  760. !&#xD;
  761. !&#xD;
  762. !&#xD;
  763. interface Loopback0&#xD;
  764. description Loopback&#xD;
  765. no ip address&#xD;
  766. !&#xD;
  767. interface GigabitEthernet0/0&#xD;
  768. media-type rj45&#xD;
  769. negotiation auto&#xD;
  770. !&#xD;
  771. interface GigabitEthernet0/1&#xD;
  772. description to iosvl2-1&#xD;
  773. switchport trunk allowed vlan 10,30&#xD;
  774. switchport trunk encapsulation dot1q&#xD;
  775. switchport mode trunk&#xD;
  776. media-type rj45&#xD;
  777. negotiation auto&#xD;
  778. !&#xD;
  779. interface GigabitEthernet0/2&#xD;
  780. description to iosvl2-2&#xD;
  781. switchport trunk allowed vlan 10,20,30&#xD;
  782. switchport trunk encapsulation dot1q&#xD;
  783. switchport mode trunk&#xD;
  784. media-type rj45&#xD;
  785. negotiation auto&#xD;
  786. !&#xD;
  787. interface GigabitEthernet0/3&#xD;
  788. description to server-1&#xD;
  789. switchport access vlan 10&#xD;
  790. switchport access vlan 20&#xD;
  791. switchport access vlan 30&#xD;
  792. switchport mode access&#xD;
  793. media-type rj45&#xD;
  794. negotiation auto&#xD;
  795. spanning-tree bpdufilter enable&#xD;
  796. !&#xD;
  797. interface Vlan20&#xD;
  798. description VLAN20TEST&#xD;
  799. ip address 192.168.22.253 255.255.255.0&#xD;
  800. no ip route-cache&#xD;
  801. !&#xD;
  802. ip forward-protocol nd&#xD;
  803. !&#xD;
  804. no ip http server&#xD;
  805. no ip http secure-server&#xD;
  806. !&#xD;
  807. !&#xD;
  808. !&#xD;
  809. !&#xD;
  810. !&#xD;
  811. !&#xD;
  812. control-plane&#xD;
  813. !&#xD;
  814. banner exec `&#xD;
  815. **************************************************************************&#xD;
  816. * IOSv is strictly limited to use for evaluation, demonstration and IOS *&#xD;
  817. * education. IOSv is provided as-is and is not supported by Cisco's *&#xD;
  818. * Technical Advisory Center. Any use or disclosure, in whole or in part, *&#xD;
  819. * of the IOSv Software or Documentation to any third party for any *&#xD;
  820. * purposes is expressly prohibited except as otherwise authorized by *&#xD;
  821. * Cisco in writing. *&#xD;
  822. **************************************************************************`&#xD;
  823. banner incoming `&#xD;
  824. **************************************************************************&#xD;
  825. * IOSv is strictly limited to use for evaluation, demonstration and IOS *&#xD;
  826. * education. IOSv is provided as-is and is not supported by Cisco's *&#xD;
  827. * Technical Advisory Center. Any use or disclosure, in whole or in part, *&#xD;
  828. * of the IOSv Software or Documentation to any third party for any *&#xD;
  829. * purposes is expressly prohibited except as otherwise authorized by *&#xD;
  830. * Cisco in writing. *&#xD;
  831. **************************************************************************`&#xD;
  832. banner login `&#xD;
  833. **************************************************************************&#xD;
  834. * IOSv is strictly limited to use for evaluation, demonstration and IOS *&#xD;
  835. * education. IOSv is provided as-is and is not supported by Cisco's *&#xD;
  836. * Technical Advisory Center. Any use or disclosure, in whole or in part, *&#xD;
  837. * of the IOSv Software or Documentation to any third party for any *&#xD;
  838. * purposes is expressly prohibited except as otherwise authorized by *&#xD;
  839. * Cisco in writing. *&#xD;
  840. **************************************************************************`&#xD;
  841. !&#xD;
  842. line con 0&#xD;
  843. password cisco&#xD;
  844. line aux 0&#xD;
  845. line vty 0 4&#xD;
  846. exec-timeout 720 0&#xD;
  847. password cisco&#xD;
  848. login&#xD;
  849. transport input telnet ssh&#xD;
  850. !&#xD;
  851. !&#xD;
  852. end</entry>
  853. </extensions>
  854. <interface id="0" name="GigabitEthernet0/1"/>
  855. <interface id="1" name="GigabitEthernet0/2"/>
  856. <interface id="2" name="GigabitEthernet0/3"/>
  857. </node>
  858. <connection dst="/virl:topology/virl:node[1]/virl:interface[1]" src="/virl:topology/virl:node[2]/virl:interface[1]"/>
  859. <connection dst="/virl:topology/virl:node[3]/virl:interface[1]" src="/virl:topology/virl:node[1]/virl:interface[2]"/>
  860. <connection dst="/virl:topology/virl:node[4]/virl:interface[1]" src="/virl:topology/virl:node[3]/virl:interface[2]"/>
  861. <connection dst="/virl:topology/virl:node[8]/virl:interface[1]" src="/virl:topology/virl:node[3]/virl:interface[3]"/>
  862. <connection dst="/virl:topology/virl:node[8]/virl:interface[2]" src="/virl:topology/virl:node[4]/virl:interface[2]"/>
  863. <connection dst="/virl:topology/virl:node[6]/virl:interface[1]" src="/virl:topology/virl:node[8]/virl:interface[3]"/>
  864. <connection dst="/virl:topology/virl:node[7]/virl:interface[1]" src="/virl:topology/virl:node[3]/virl:interface[4]"/>
  865. <connection dst="/virl:topology/virl:node[5]/virl:interface[1]" src="/virl:topology/virl:node[4]/virl:interface[3]"/>
  866. </topology>