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.

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