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.

622 lines
18 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.95" xsi:schemaLocation="http://www.cisco.com/VIRL https://raw.github.com/CiscoVIRL/schema/v0.95/virl.xsd">
  3. <node name="Router-A" type="SIMPLE" subtype="IOSv" location="236,245">
  4. <extensions>
  5. <entry key="AutoNetkit.mgmt_ip" type="string"></entry>
  6. <entry key="AutoNetkit.IGP" type="String">eigrp</entry>
  7. <entry key="Auto-generate config" type="Boolean">false</entry>
  8. <entry key="config" type="String">! IOS Config generated on 2015-09-06 21:22
  9. ! by autonetkit_0.18.1
  10. !
  11. hostname Router-A
  12. boot-start-marker
  13. boot-end-marker
  14. !
  15. vrf definition Mgmt-intf
  16. !
  17. address-family ipv4
  18. exit-address-family
  19. !
  20. address-family ipv6
  21. exit-address-family
  22. !
  23. !
  24. !
  25. no aaa new-model
  26. !
  27. !
  28. ip cef
  29. ipv6 unicast-routing
  30. ipv6 cef
  31. !
  32. !
  33. service timestamps debug datetime msec
  34. service timestamps log datetime msec
  35. no service password-encryption
  36. no service config
  37. enable password cisco
  38. ip classless
  39. ip subnet-zero
  40. no ip domain lookup
  41. line vty 0 4
  42. transport input ssh telnet
  43. exec-timeout 720 0
  44. password cisco
  45. login
  46. line con 0
  47. password cisco
  48. !
  49. no cdp run
  50. !
  51. !
  52. interface Loopback0
  53. description Loopback
  54. ip address 192.168.0.2 255.255.255.255
  55. !
  56. interface GigabitEthernet0/0
  57. description OOB Management
  58. vrf forwarding Mgmt-intf
  59. ! Configured on launch
  60. no ip address
  61. duplex full
  62. speed auto
  63. no shutdown
  64. !
  65. interface GigabitEthernet0/1
  66. description to wanEM
  67. ip address 192.168.101.2 255.255.255.252
  68. duplex full
  69. speed auto
  70. no shutdown
  71. !
  72. interface GigabitEthernet0/2
  73. description to server-1
  74. ip address 192.168.1.1 255.255.255.0
  75. duplex full
  76. speed auto
  77. no shutdown
  78. !
  79. !
  80. !
  81. !
  82. ip route 0.0.0.0 0.0.0.0 192.168.101.1
  83. !
  84. end
  85. </entry>
  86. </extensions>
  87. <interface id="0" name="GigabitEthernet0/1" ipv4="192.168.101.2" netPrefixLenV4="24"/>
  88. <interface id="1" name="GigabitEthernet0/2" ipv4="192.168.1.1" netPrefixLenV4="24"/>
  89. </node>
  90. <node name="Router-B" type="SIMPLE" subtype="IOSv" location="463,232">
  91. <extensions>
  92. <entry key="AutoNetkit.mgmt_ip" type="string"></entry>
  93. <entry key="Auto-generate config" type="Boolean">false</entry>
  94. <entry key="config" type="String">! IOS Config generated on 2015-09-06 21:22&#xD;
  95. ! by autonetkit_0.18.1&#xD;
  96. !&#xD;
  97. hostname Router-B&#xD;
  98. boot-start-marker&#xD;
  99. boot-end-marker&#xD;
  100. !&#xD;
  101. vrf definition Mgmt-intf&#xD;
  102. !&#xD;
  103. address-family ipv4&#xD;
  104. exit-address-family&#xD;
  105. !&#xD;
  106. address-family ipv6&#xD;
  107. exit-address-family&#xD;
  108. !&#xD;
  109. !&#xD;
  110. !&#xD;
  111. no aaa new-model&#xD;
  112. !&#xD;
  113. !&#xD;
  114. ip cef&#xD;
  115. ipv6 unicast-routing&#xD;
  116. ipv6 cef&#xD;
  117. !&#xD;
  118. !&#xD;
  119. service timestamps debug datetime msec&#xD;
  120. service timestamps log datetime msec&#xD;
  121. no service password-encryption&#xD;
  122. no service config&#xD;
  123. enable password cisco&#xD;
  124. ip classless&#xD;
  125. ip subnet-zero&#xD;
  126. no ip domain lookup&#xD;
  127. line vty 0 4&#xD;
  128. transport input ssh telnet&#xD;
  129. exec-timeout 720 0&#xD;
  130. password cisco&#xD;
  131. login&#xD;
  132. line con 0&#xD;
  133. password cisco&#xD;
  134. !&#xD;
  135. no cdp run&#xD;
  136. !&#xD;
  137. !&#xD;
  138. interface Loopback0&#xD;
  139. description Loopback&#xD;
  140. ip address 192.168.0.3 255.255.255.255&#xD;
  141. !&#xD;
  142. interface GigabitEthernet0/0&#xD;
  143. description OOB Management&#xD;
  144. vrf forwarding Mgmt-intf&#xD;
  145. ! Configured on launch&#xD;
  146. no ip address&#xD;
  147. duplex full&#xD;
  148. speed auto&#xD;
  149. no shutdown&#xD;
  150. !&#xD;
  151. interface GigabitEthernet0/1&#xD;
  152. description to wanEM&#xD;
  153. ip address 192.168.102.2 255.255.255.252&#xD;
  154. ip ospf cost 1&#xD;
  155. duplex full&#xD;
  156. speed auto&#xD;
  157. no shutdown&#xD;
  158. !&#xD;
  159. interface GigabitEthernet0/2&#xD;
  160. description to server-2&#xD;
  161. ip address 192.168.2.1 255.255.255.0&#xD;
  162. ip ospf cost 1&#xD;
  163. duplex full&#xD;
  164. speed auto&#xD;
  165. no shutdown&#xD;
  166. !&#xD;
  167. !&#xD;
  168. !&#xD;
  169. ip route 0.0.0.0 0.0.0.0 192.168.102.1&#xD;
  170. !&#xD;
  171. end&#xD;
  172. </entry>
  173. </extensions>
  174. <interface id="0" name="GigabitEthernet0/1"/>
  175. <interface id="1" name="GigabitEthernet0/2" netPrefixLenV4="24"/>
  176. </node>
  177. <node name="Internet&#xD;&#xA;" type="ASSET" subtype="FLAT" location="391,42">
  178. <extensions>
  179. <entry key="host_network" type="String">flat</entry>
  180. </extensions>
  181. <interface id="0" name="link0"/>
  182. </node>
  183. <node name="Switch-A" type="SIMPLE" subtype="IOSvL2" location="552,358">
  184. <extensions>
  185. <entry key="AutoNetkit.mgmt_ip" type="string"></entry>
  186. <entry key="config" type="String">! IOSvL2 Config generated on 2015-12-11 21:04
  187. ! by autonetkit_0.18.1
  188. !
  189. version 15.2
  190. service timestamps debug datetime msec
  191. service timestamps log datetime msec
  192. no service password-encryption
  193. service compress-config
  194. no service config
  195. enable password cisco
  196. ip classless
  197. ip subnet-zero
  198. no ip domain lookup
  199. !
  200. line vty 0 4
  201. transport input ssh telnet
  202. exec-timeout 720 0
  203. password cisco
  204. login
  205. !
  206. line con 0
  207. password cisco
  208. !
  209. hostname Switch-A
  210. !
  211. boot-start-marker
  212. boot-end-marker
  213. !
  214. !
  215. !
  216. no aaa new-model
  217. !
  218. !
  219. !
  220. !
  221. !
  222. !
  223. !
  224. !
  225. ip cef
  226. no ipv6 cef
  227. !
  228. !
  229. spanning-tree mode pvst
  230. spanning-tree extend system-id
  231. !
  232. vlan internal allocation policy ascending
  233. !
  234. !
  235. !
  236. !
  237. vrf definition Mgmt-intf
  238. !
  239. address-family ipv4
  240. exit-address-family
  241. !
  242. address-family ipv6
  243. exit-address-family
  244. !
  245. !
  246. !
  247. !
  248. !
  249. interface Loopback0
  250. description Loopback
  251. !
  252. interface GigabitEthernet0/0
  253. description OOB management
  254. ! Configured on launch
  255. no switchport
  256. no ip address
  257. no shutdown
  258. !
  259. interface GigabitEthernet0/1
  260. description to Router-B
  261. switchport access vlan 2
  262. switchport mode access
  263. no shutdown
  264. !
  265. interface GigabitEthernet0/2
  266. description to Server-A
  267. switchport access vlan 2
  268. switchport mode access
  269. shutdown
  270. !
  271. interface GigabitEthernet0/3
  272. description to Server-B
  273. switchport access vlan 2
  274. switchport mode access
  275. no shutdown
  276. !
  277. !
  278. ip forward-protocol nd
  279. !
  280. no ip http server
  281. no ip http secure-server
  282. !
  283. !
  284. !
  285. !
  286. !
  287. !
  288. control-plane
  289. !
  290. !
  291. !
  292. end
  293. </entry>
  294. <entry key="Auto-generate config" type="Boolean">false</entry>
  295. </extensions>
  296. <interface id="0" name="GigabitEthernet0/1"/>
  297. <interface id="1" name="GigabitEthernet0/2"/>
  298. <interface id="2" name="GigabitEthernet0/3"/>
  299. </node>
  300. <node name="Client" type="SIMPLE" subtype="lxc" location="154,308">
  301. <extensions>
  302. <entry key="Auto-generate config" type="Boolean">false</entry>
  303. <entry key="config" type="String">#cloud-config&#xD;
  304. bootcmd:&#xD;
  305. - ln -s -t /etc/rc.d /etc/rc.local&#xD;
  306. hostname: Client&#xD;
  307. manage_etc_hosts: true&#xD;
  308. runcmd:&#xD;
  309. - start ttyS0&#xD;
  310. - systemctl start getty@ttyS0.service&#xD;
  311. - systemctl start rc-local&#xD;
  312. - sed -i '/^\s*PasswordAuthentication\s\+no/d' /etc/ssh/sshd_config&#xD;
  313. - echo "UseDNS no" &gt;&gt; /etc/ssh/sshd_config&#xD;
  314. - service ssh restart&#xD;
  315. - service sshd restart&#xD;
  316. users:&#xD;
  317. - default&#xD;
  318. - gecos: User configured by VIRL Configuration Engine 0.18.9&#xD;
  319. lock-passwd: false&#xD;
  320. name: cisco&#xD;
  321. plain-text-passwd: cisco&#xD;
  322. shell: /bin/bash&#xD;
  323. ssh-authorized-keys:&#xD;
  324. - VIRL-USER-SSH-PUBLIC-KEY&#xD;
  325. sudo: ALL=(ALL) ALL&#xD;
  326. write_files:&#xD;
  327. - path: /etc/init/ttyS0.conf&#xD;
  328. owner: root:root&#xD;
  329. content: |&#xD;
  330. # ttyS0 - getty&#xD;
  331. # This service maintains a getty on ttyS0 from the point the system is&#xD;
  332. # started until it is shut down again.&#xD;
  333. start on stopped rc or RUNLEVEL=[12345]&#xD;
  334. stop on runlevel [!12345]&#xD;
  335. respawn&#xD;
  336. exec /sbin/getty -L 115200 ttyS0 vt102&#xD;
  337. permissions: '0644'&#xD;
  338. - path: /etc/systemd/system/dhclient@.service&#xD;
  339. content: |&#xD;
  340. [Unit]&#xD;
  341. Description=Run dhclient on %i interface&#xD;
  342. After=network.target&#xD;
  343. [Service]&#xD;
  344. Type=oneshot&#xD;
  345. ExecStart=/sbin/dhclient %i -pf /var/run/dhclient.%i.pid -lf /var/lib/dhclient/dhclient.%i.lease&#xD;
  346. RemainAfterExit=yes&#xD;
  347. owner: root:root&#xD;
  348. permissions: '0644'&#xD;
  349. - path: /etc/rc.local&#xD;
  350. owner: root:root&#xD;
  351. permissions: '0755'&#xD;
  352. content: |-&#xD;
  353. !/bin/sh -e&#xD;
  354. ifconfig eth1 up 192.168.1.100 netmask 255.255.255.0&#xD;
  355. route del default&#xD;
  356. route add default gw 192.168.1.1&#xD;
  357. #arp -i eth1 -s 192.168.1.1 aa:aa:aa:aa:aa:aa&#xD;
  358. echo "alias unbug='sudo arp -d 192.168.1.1'" &gt;&gt;/home/cisco/.bashrc&#xD;
  359. exit 0&#xD;
  360. &#xD;
  361. - path: /etc/resolv.conf&#xD;
  362. owner: root:root&#xD;
  363. permissions: '0644'&#xD;
  364. content: |&#xD;
  365. #by Patrick.&#xD;
  366. nameserver 8.8.8.8&#xD;
  367. </entry>
  368. </extensions>
  369. <interface id="0" name="eth1"/>
  370. </node>
  371. <node name="ISP" type="SIMPLE" subtype="lxc" location="343,149">
  372. <extensions>
  373. <entry key="Auto-generate config" type="Boolean">false</entry>
  374. <entry key="config" type="String">#cloud-config&#xD;
  375. bootcmd:&#xD;
  376. - ln -s -t /etc/rc.d /etc/rc.local&#xD;
  377. hostname: ISP&#xD;
  378. manage_etc_hosts: true&#xD;
  379. runcmd:&#xD;
  380. - start ttyS0&#xD;
  381. - systemctl start getty@ttyS0.service&#xD;
  382. - systemctl start rc-local&#xD;
  383. - sed -i '/^\s*PasswordAuthentication\s\+no/d' /etc/ssh/sshd_config&#xD;
  384. - echo "UseDNS no" &gt;&gt; /etc/ssh/sshd_config&#xD;
  385. - service ssh restart&#xD;
  386. - service sshd restart&#xD;
  387. users:&#xD;
  388. - default&#xD;
  389. - gecos: User configured by VIRL Configuration Engine 0.23.9&#xD;
  390. lock-passwd: false&#xD;
  391. name: cisco&#xD;
  392. plain-text-passwd: cisco&#xD;
  393. shell: /bin/bash&#xD;
  394. ssh-authorized-keys:&#xD;
  395. - VIRL-USER-SSH-PUBLIC-KEY&#xD;
  396. sudo: ALL=(ALL) ALL&#xD;
  397. write_files:&#xD;
  398. - path: /etc/init/ttyS0.conf&#xD;
  399. owner: root:root&#xD;
  400. content: |&#xD;
  401. # ttyS0 - getty&#xD;
  402. # This service maintains a getty on ttyS0 from the point the system is&#xD;
  403. # started until it is shut down again.&#xD;
  404. start on stopped rc or RUNLEVEL=[12345]&#xD;
  405. stop on runlevel [!12345]&#xD;
  406. respawn&#xD;
  407. exec /sbin/getty -L 115200 ttyS0 vt102&#xD;
  408. permissions: '0644'&#xD;
  409. - path: /etc/systemd/system/dhclient@.service&#xD;
  410. content: |&#xD;
  411. [Unit]&#xD;
  412. Description=Run dhclient on %i interface&#xD;
  413. After=network.target&#xD;
  414. [Service]&#xD;
  415. Type=oneshot&#xD;
  416. ExecStart=/sbin/dhclient %i -pf /var/run/dhclient.%i.pid -lf /var/lib/dhclient/dhclient.%i.lease&#xD;
  417. RemainAfterExit=yes&#xD;
  418. owner: root:root&#xD;
  419. permissions: '0644'&#xD;
  420. - path: /etc/rc.local&#xD;
  421. owner: root:root&#xD;
  422. permissions: '0755'&#xD;
  423. content: |-&#xD;
  424. #!/bin/sh&#xD;
  425. ifconfig eth1 up 192.168.101.1 netmask 255.255.255.252&#xD;
  426. ifconfig eth2 up 192.168.102.1 netmask 255.255.255.252&#xD;
  427. &#xD;
  428. dhclient eth0&#xD;
  429. dhclient eth3&#xD;
  430. &#xD;
  431. echo 1 &gt; /proc/sys/net/ipv4/ip_forward&#xD;
  432. &#xD;
  433. route add default gw 172.16.1.1 eth3&#xD;
  434. &#xD;
  435. route add -net 192.168.101.0/30 gw 192.168.101.2 dev eth1&#xD;
  436. route add -net 192.168.1.0/24 gw 192.168.101.2 dev eth1&#xD;
  437. &#xD;
  438. route add -net 192.168.102.0/30 gw 192.168.102.2 dev eth2&#xD;
  439. route add -net 192.168.2.0/24 gw 192.168.102.2 dev eth2&#xD;
  440. &#xD;
  441. iptables -t nat -A POSTROUTING -o eth3 -j MASQUERADE&#xD;
  442. iptables -P FORWARD ACCEPT&#xD;
  443. iptables -F FORWARD&#xD;
  444. &#xD;
  445. iptables -t nat -A PREROUTING -i eth3 -p tcp -m tcp --dport 80 -j DNAT --to-destination 192.168.2.100:80&#xD;
  446. iptables -t nat -A PREROUTING -i eth3 -p tcp -m tcp --dport 22 -j DNAT --to-destination 192.168.2.100:22&#xD;
  447. &#xD;
  448. /sbin/tc qdisc add dev eth2 root handle 1:1 netem delay 100ms loss 5%&#xD;
  449. echo "alias unbug='sudo tc qdisc del dev eth2 root'" &gt;&gt;/home/cisco/.bashrc&#xD;
  450. &#xD;
  451. service ssh start&#xD;
  452. &#xD;
  453. hostname ISP&#xD;
  454. &#xD;
  455. exit 0&#xD;
  456. &#xD;
  457. </entry>
  458. </extensions>
  459. <interface id="0" name="eth1"/>
  460. <interface id="1" name="eth2"/>
  461. <interface id="2" name="eth3"/>
  462. </node>
  463. <node name="Server-B" type="SIMPLE" subtype="lxc" location="411,333">
  464. <extensions>
  465. <entry key="Auto-generate config" type="Boolean">false</entry>
  466. <entry key="config" type="String">#cloud-config&#xD;
  467. bootcmd:&#xD;
  468. - ln -s -t /etc/rc.d /etc/rc.local&#xD;
  469. hostname: Server-B&#xD;
  470. manage_etc_hosts: true&#xD;
  471. &#xD;
  472. runcmd:&#xD;
  473. - start ttyS0&#xD;
  474. - systemctl start getty@ttyS0.service&#xD;
  475. - systemctl start rc-local&#xD;
  476. - systemctl start install-webserver&#xD;
  477. - sed -i '/^\s*PasswordAuthentication\s\+no/d' /etc/ssh/sshd_config&#xD;
  478. - echo "UseDNS no" &gt;&gt; /etc/ssh/sshd_config&#xD;
  479. - service ssh restart&#xD;
  480. - service sshd restart&#xD;
  481. users:&#xD;
  482. - default&#xD;
  483. - gecos: User configured by VIRL Configuration Engine 0.18.9&#xD;
  484. lock-passwd: false&#xD;
  485. name: cisco&#xD;
  486. plain-text-passwd: cisco&#xD;
  487. shell: /bin/bash&#xD;
  488. ssh-authorized-keys:&#xD;
  489. - VIRL-USER-SSH-PUBLIC-KEY&#xD;
  490. sudo: ALL=(ALL) ALL&#xD;
  491. write_files:&#xD;
  492. - path: /etc/init/ttyS0.conf&#xD;
  493. owner: root:root&#xD;
  494. content: |&#xD;
  495. # ttyS0 - getty&#xD;
  496. # This service maintains a getty on ttyS0 from the point the system is&#xD;
  497. # started until it is shut down again.&#xD;
  498. start on stopped rc or RUNLEVEL=[12345]&#xD;
  499. stop on runlevel [!12345]&#xD;
  500. respawn&#xD;
  501. exec /sbin/getty -L 115200 ttyS0 vt102&#xD;
  502. permissions: '0644'&#xD;
  503. - path: /etc/systemd/system/dhclient@.service&#xD;
  504. content: |&#xD;
  505. [Unit]&#xD;
  506. Description=Run dhclient on %i interface&#xD;
  507. After=network.target&#xD;
  508. [Service]&#xD;
  509. Type=oneshot&#xD;
  510. ExecStart=/sbin/dhclient %i -pf /var/run/dhclient.%i.pid -lf /var/lib/dhclient/dhclient.%i.lease&#xD;
  511. RemainAfterExit=yes&#xD;
  512. owner: root:root&#xD;
  513. permissions: '0644'&#xD;
  514. - path: /etc/rc.local&#xD;
  515. owner: root:root&#xD;
  516. permissions: '0755'&#xD;
  517. content: |-&#xD;
  518. #!/bin/sh -e&#xD;
  519. ifconfig eth1 up 192.168.2.100 netmask 255.255.255.0&#xD;
  520. route del default&#xD;
  521. route add default gw 192.168.2.1&#xD;
  522. #route add -net 192.168.1.0/24 gw 127.0.0.1&#xD;
  523. echo "alias unbug='sudo route del -net 192.168.1.0/24'" &gt;&gt;/home/cisco/.bashrc&#xD;
  524. echo "nameserver 8.8.8.8" &gt;/etc/resolv.conf&#xD;
  525. screen -dmS install-webserver /tmp/install-webserver &amp;&#xD;
  526. exit 0&#xD;
  527. - path: /tmp/install-webserver&#xD;
  528. owner: root:root&#xD;
  529. permissions: '0755'&#xD;
  530. content: |-&#xD;
  531. #!/bin/bash&#xD;
  532. echo "Waiting for internet connectivity"&#xD;
  533. until echo -n "." &amp;&amp; ping -c1 archive.ubuntu.com &amp;&gt;/dev/null; do :; done&#xD;
  534. apt-get -y update&#xD;
  535. apt-get -y install apache2&#xD;
  536. echo "&lt;h1&gt;Willkommen auf Server-B!&lt;/h1&gt;" &gt;/var/www/html/index.html&#xD;
  537. read -p "Press any key..."&#xD;
  538. exit 0&#xD;
  539. </entry>
  540. </extensions>
  541. <interface id="0" name="eth1"/>
  542. </node>
  543. <node name="Server-A" type="SIMPLE" subtype="lxc" location="639,256">
  544. <extensions>
  545. <entry key="Auto-generate config" type="Boolean">false</entry>
  546. <entry key="config" type="String">#cloud-config&#xD;
  547. bootcmd:&#xD;
  548. - ln -s -t /etc/rc.d /etc/rc.local&#xD;
  549. hostname: Server-A&#xD;
  550. manage_etc_hosts: true&#xD;
  551. runcmd:&#xD;
  552. - start ttyS0&#xD;
  553. - systemctl start getty@ttyS0.service&#xD;
  554. - systemctl start rc-local&#xD;
  555. - sed -i '/^\s*PasswordAuthentication\s\+no/d' /etc/ssh/sshd_config&#xD;
  556. - echo "UseDNS no" &gt;&gt; /etc/ssh/sshd_config&#xD;
  557. - service ssh restart&#xD;
  558. - service sshd restart&#xD;
  559. users:&#xD;
  560. - default&#xD;
  561. - gecos: User configured by VIRL Configuration Engine 0.18.9&#xD;
  562. lock-passwd: false&#xD;
  563. name: cisco&#xD;
  564. plain-text-passwd: cisco&#xD;
  565. shell: /bin/bash&#xD;
  566. ssh-authorized-keys:&#xD;
  567. - VIRL-USER-SSH-PUBLIC-KEY&#xD;
  568. sudo: ALL=(ALL) ALL&#xD;
  569. write_files:&#xD;
  570. - path: /etc/init/ttyS0.conf&#xD;
  571. owner: root:root&#xD;
  572. content: |&#xD;
  573. # ttyS0 - getty&#xD;
  574. # This service maintains a getty on ttyS0 from the point the system is&#xD;
  575. # started until it is shut down again.&#xD;
  576. start on stopped rc or RUNLEVEL=[12345]&#xD;
  577. stop on runlevel [!12345]&#xD;
  578. respawn&#xD;
  579. exec /sbin/getty -L 115200 ttyS0 vt102&#xD;
  580. permissions: '0644'&#xD;
  581. - path: /etc/systemd/system/dhclient@.service&#xD;
  582. content: |&#xD;
  583. [Unit]&#xD;
  584. Description=Run dhclient on %i interface&#xD;
  585. After=network.target&#xD;
  586. [Service]&#xD;
  587. Type=oneshot&#xD;
  588. ExecStart=/sbin/dhclient %i -pf /var/run/dhclient.%i.pid -lf /var/lib/dhclient/dhclient.%i.lease&#xD;
  589. RemainAfterExit=yes&#xD;
  590. owner: root:root&#xD;
  591. permissions: '0644'&#xD;
  592. - path: /etc/rc.local&#xD;
  593. owner: root:root&#xD;
  594. permissions: '0755'&#xD;
  595. content: |-&#xD;
  596. #!/bin/sh -e&#xD;
  597. ifconfig eth1 up 192.168.2.200 netmask 255.255.255.0&#xD;
  598. route del default&#xD;
  599. route add default gw 192.168.2.1&#xD;
  600. exit 0&#xD;
  601. &#xD;
  602. - path: /etc/resolv.conf&#xD;
  603. owner: root:root&#xD;
  604. permissions: '0644'&#xD;
  605. content: |&#xD;
  606. # ttyS0 - getty&#xD;
  607. # This service maintains a getty on ttyS0 from the point the system is&#xD;
  608. # started until it is shut down again.&#xD;
  609. nameserver 8.8.8.8</entry>
  610. </extensions>
  611. <interface id="0" name="eth1"/>
  612. </node>
  613. <annotations/>
  614. <connection dst="/virl:topology/virl:node[4]/virl:interface[1]" src="/virl:topology/virl:node[2]/virl:interface[2]"/>
  615. <connection dst="/virl:topology/virl:node[6]/virl:interface[1]" src="/virl:topology/virl:node[1]/virl:interface[1]"/>
  616. <connection dst="/virl:topology/virl:node[2]/virl:interface[1]" src="/virl:topology/virl:node[6]/virl:interface[2]"/>
  617. <connection dst="/virl:topology/virl:node[6]/virl:interface[3]" src="/virl:topology/virl:node[3]/virl:interface[1]"/>
  618. <connection dst="/virl:topology/virl:node[4]/virl:interface[3]" src="/virl:topology/virl:node[7]/virl:interface[1]"/>
  619. <connection dst="/virl:topology/virl:node[4]/virl:interface[2]" src="/virl:topology/virl:node[8]/virl:interface[1]"/>
  620. <connection dst="/virl:topology/virl:node[5]/virl:interface[1]" src="/virl:topology/virl:node[1]/virl:interface[2]"/>
  621. </topology>