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.

382 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.95" xsi:schemaLocation="http://www.cisco.com/VIRL https://raw.github.com/CiscoVIRL/schema/v0.95/virl.xsd">
  3. <extensions>
  4. <entry key="management_network" type="String">exclusive</entry>
  5. </extensions>
  6. <node name="veos-1" type="SIMPLE" subtype="vEOS" location="286,138">
  7. <extensions>
  8. <entry key="Auto-generate config" type="Boolean">false</entry>
  9. <entry key="config" type="String">! Command: show running-config
  10. ! device: vEOS-1 (vEOS, EOS-4.16.6M)
  11. !
  12. ! boot system flash:/vEOS-lab.swi
  13. !&#xD;
  14. ! AdvCompNet Lab 5 VXLAN Scenario 1&#xD;
  15. !
  16. transceiver qsfp default-mode 4x10G
  17. !
  18. hostname veos-1
  19. !
  20. spanning-tree mode rapid-pvst
  21. !
  22. no aaa root
  23. !&#xD;
  24. username admin privilege 15 role network-admin secret 5 $1$yUkG2yoL$0Lq.DaVPw9ECzR4Ew1.wW.&#xD;
  25. username cisco privilege 15 role network-admin secret 5 $1$rQS0W9wP$ZUzVG2XoGCCZCJopFp1aV/&#xD;
  26. !
  27. vlan 10
  28. !
  29. interface Ethernet1
  30. switchport access vlan 10
  31. !
  32. interface Ethernet2
  33. no switchport
  34. ip address 10.20.30.2/30
  35. !
  36. interface Loopback0
  37. ip address 192.168.0.1/32
  38. !&#xD;
  39. interface Management1&#xD;
  40. ! ip of ma1 configured on launch&#xD;
  41. !
  42. interface Vxlan1
  43. vxlan source-interface Loopback0
  44. vxlan udp-port 4789
  45. vxlan vlan 10 vni 1010
  46. vxlan vlan 10 flood vtep 192.168.0.3
  47. !
  48. ip routing
  49. !
  50. router bgp 101
  51. router-id 1.1.1.1
  52. neighbor 10.20.30.1 remote-as 102
  53. network 192.168.0.1 mask 255.255.255.255
  54. !
  55. !
  56. end</entry>
  57. </extensions>
  58. <interface id="0" name="Ethernet1"/>
  59. <interface id="1" name="Ethernet2"/>
  60. <interface id="2" name="Ethernet3"/>
  61. <interface id="3" name="Ethernet4"/>
  62. </node>
  63. <node name="veos-2" type="SIMPLE" subtype="vEOS" location="506,214">
  64. <extensions>
  65. <entry key="Auto-generate config" type="Boolean">false</entry>
  66. <entry key="config" type="String">! Command: show running-config
  67. ! device: vEOS-2 (vEOS, EOS-4.16.6M)
  68. !
  69. ! boot system flash:/vEOS-lab.swi
  70. !&#xD;
  71. ! AdvCompNet Lab 5 VXLAN Scenario 1&#xD;
  72. !
  73. transceiver qsfp default-mode 4x10G
  74. !
  75. hostname veos-2
  76. !
  77. spanning-tree mode rapid-pvst
  78. !
  79. no aaa root
  80. !&#xD;
  81. username admin privilege 15 role network-admin secret 5 $1$yUkG2yoL$0Lq.DaVPw9ECzR4Ew1.wW.&#xD;
  82. username cisco privilege 15 role network-admin secret 5 $1$rQS0W9wP$ZUzVG2XoGCCZCJopFp1aV/&#xD;
  83. !
  84. vlan 20
  85. !
  86. interface Ethernet1
  87. switchport access vlan 20
  88. !
  89. interface Ethernet2
  90. no switchport
  91. ip address 10.20.30.1/30
  92. !
  93. interface Ethernet3
  94. no switchport
  95. ip address 10.20.30.5/30
  96. !
  97. interface Loopback0
  98. ip address 192.168.0.2/32
  99. !&#xD;
  100. interface Management1&#xD;
  101. ! ip of ma1 configured on launch&#xD;
  102. !
  103. interface Vxlan1
  104. vxlan source-interface Loopback0
  105. vxlan udp-port 4789
  106. vxlan vlan 20 vni 2040
  107. vxlan vlan 20 flood vtep 192.168.0.3
  108. !
  109. ip routing
  110. !
  111. router bgp 102
  112. router-id 2.2.2.2
  113. neighbor 10.20.30.2 remote-as 101
  114. neighbor 10.20.30.6 remote-as 103
  115. network 192.168.0.2 mask 255.255.255.255
  116. !
  117. !
  118. end</entry>
  119. </extensions>
  120. <interface id="0" name="Ethernet1"/>
  121. <interface id="1" name="Ethernet2"/>
  122. <interface id="2" name="Ethernet3"/>
  123. <interface id="3" name="Ethernet4"/>
  124. <interface id="4" name="Ethernet5"/>
  125. <interface id="5" name="Ethernet6"/>
  126. </node>
  127. <node name="veos-3" type="SIMPLE" subtype="vEOS" location="734,139">
  128. <extensions>
  129. <entry key="Auto-generate config" type="Boolean">false</entry>
  130. <entry key="config" type="String">! Command: show running-config
  131. ! device: vEOS-3 (vEOS, EOS-4.16.6M)
  132. !
  133. ! boot system flash:/vEOS-lab.swi
  134. !&#xD;
  135. ! AdvCompNet Lab 5 VXLAN Scenario 1&#xD;
  136. !
  137. transceiver qsfp default-mode 4x10G
  138. !
  139. hostname veos-3
  140. !
  141. spanning-tree mode rapid-pvst
  142. !
  143. no aaa root
  144. !&#xD;
  145. username admin privilege 15 role network-admin secret 5 $1$yUkG2yoL$0Lq.DaVPw9ECzR4Ew1.wW.&#xD;
  146. username cisco privilege 15 role network-admin secret 5 $1$rQS0W9wP$ZUzVG2XoGCCZCJopFp1aV/&#xD;
  147. !
  148. vlan 10,40
  149. !
  150. interface Ethernet1
  151. switchport access vlan 40
  152. !
  153. interface Ethernet2
  154. switchport access vlan 10
  155. !
  156. interface Ethernet3
  157. no switchport
  158. ip address 10.20.30.6/30
  159. !
  160. interface Loopback0
  161. ip address 192.168.0.3/32
  162. !&#xD;
  163. interface Management1&#xD;
  164. ! ip of ma1 configured on launch&#xD;
  165. !
  166. interface Vxlan1
  167. vxlan source-interface Loopback0
  168. vxlan udp-port 4789
  169. vxlan vlan 10 vni 1010
  170. vxlan vlan 40 vni 2040
  171. vxlan vlan 10 flood vtep 192.168.0.1
  172. vxlan vlan 40 flood vtep 192.168.0.2
  173. !
  174. ip routing
  175. !
  176. router bgp 103
  177. router-id 3.3.3.3
  178. neighbor 10.20.30.5 remote-as 102
  179. network 192.168.0.3 mask 255.255.255.255
  180. !
  181. !
  182. end</entry>
  183. </extensions>
  184. <interface id="0" name="Ethernet1"/>
  185. <interface id="1" name="Ethernet2"/>
  186. <interface id="2" name="Ethernet3"/>
  187. <interface id="3" name="Ethernet4"/>
  188. <interface id="4" name="Ethernet5"/>
  189. <interface id="5" name="Ethernet6"/>
  190. </node>
  191. <node name="lxc-iperf-1" type="SIMPLE" subtype="lxc-iperf" location="155,134" ipv4="172.23.24.10">
  192. <extensions>
  193. <entry key="config" type="String">#cloud-config&#xD;
  194. bootcmd:&#xD;
  195. - ln -s -t /etc/rc.d /etc/rc.local&#xD;
  196. hostname: lxc-iperf-1&#xD;
  197. manage_etc_hosts: true&#xD;
  198. runcmd:&#xD;
  199. - systemctl start rc-local&#xD;
  200. - sed -i '/^\s*PasswordAuthentication\s\+no/d' /etc/ssh/sshd_config&#xD;
  201. - echo "UseDNS no" &gt;&gt; /etc/ssh/sshd_config&#xD;
  202. - service ssh restart&#xD;
  203. - service sshd restart&#xD;
  204. users:&#xD;
  205. - default&#xD;
  206. - gecos: User configured by VIRL Configuration Engine 0.20.22&#xD;
  207. lock-passwd: false&#xD;
  208. name: cisco&#xD;
  209. plain-text-passwd: cisco&#xD;
  210. shell: /bin/bash&#xD;
  211. ssh-authorized-keys:&#xD;
  212. - VIRL-USER-SSH-PUBLIC-KEY&#xD;
  213. sudo: ALL=(ALL) ALL&#xD;
  214. write_files:&#xD;
  215. - path: /etc/systemd/system/dhclient@.service&#xD;
  216. content: |&#xD;
  217. [Unit]&#xD;
  218. Description=Run dhclient on %i interface&#xD;
  219. After=network.target&#xD;
  220. [Service]&#xD;
  221. Type=oneshot&#xD;
  222. ExecStart=/sbin/dhclient %i -pf /var/run/dhclient.%i.pid -lf /var/lib/dhclient/dhclient.%i.lease&#xD;
  223. RemainAfterExit=yes&#xD;
  224. owner: root:root&#xD;
  225. permissions: '0644'&#xD;
  226. - path: /etc/rc.local&#xD;
  227. owner: root:root&#xD;
  228. permissions: '0755'&#xD;
  229. content: |-&#xD;
  230. #!/bin/sh&#xD;
  231. ifconfig eth1 up 172.23.24.10 netmask 255.255.255.0&#xD;
  232. exit 0&#xD;
  233. </entry>
  234. </extensions>
  235. <interface id="0" name="eth1"/>
  236. </node>
  237. <node name="lxc-iperf-2" type="SIMPLE" subtype="lxc-iperf" location="506,44" ipv4="172.23.25.10">
  238. <extensions>
  239. <entry key="config" type="String">#cloud-config&#xD;
  240. bootcmd:&#xD;
  241. - ln -s -t /etc/rc.d /etc/rc.local&#xD;
  242. hostname: lxc-iperf-2&#xD;
  243. manage_etc_hosts: true&#xD;
  244. runcmd:&#xD;
  245. - systemctl start rc-local&#xD;
  246. - sed -i '/^\s*PasswordAuthentication\s\+no/d' /etc/ssh/sshd_config&#xD;
  247. - echo "UseDNS no" &gt;&gt; /etc/ssh/sshd_config&#xD;
  248. - service ssh restart&#xD;
  249. - service sshd restart&#xD;
  250. users:&#xD;
  251. - default&#xD;
  252. - gecos: User configured by VIRL Configuration Engine 0.20.22&#xD;
  253. lock-passwd: false&#xD;
  254. name: cisco&#xD;
  255. plain-text-passwd: cisco&#xD;
  256. shell: /bin/bash&#xD;
  257. ssh-authorized-keys:&#xD;
  258. - VIRL-USER-SSH-PUBLIC-KEY&#xD;
  259. sudo: ALL=(ALL) ALL&#xD;
  260. write_files:&#xD;
  261. - path: /etc/systemd/system/dhclient@.service&#xD;
  262. content: |&#xD;
  263. [Unit]&#xD;
  264. Description=Run dhclient on %i interface&#xD;
  265. After=network.target&#xD;
  266. [Service]&#xD;
  267. Type=oneshot&#xD;
  268. ExecStart=/sbin/dhclient %i -pf /var/run/dhclient.%i.pid -lf /var/lib/dhclient/dhclient.%i.lease&#xD;
  269. RemainAfterExit=yes&#xD;
  270. owner: root:root&#xD;
  271. permissions: '0644'&#xD;
  272. - path: /etc/rc.local&#xD;
  273. owner: root:root&#xD;
  274. permissions: '0755'&#xD;
  275. content: |-&#xD;
  276. #!/bin/sh&#xD;
  277. ifconfig eth1 up 172.23.25.10 netmask 255.255.255.0&#xD;
  278. exit 0&#xD;
  279. </entry>
  280. </extensions>
  281. <interface id="0" name="eth1"/>
  282. </node>
  283. <node name="lxc-iperf-4" type="SIMPLE" subtype="lxc-iperf" location="854,212" ipv4="172.23.25.20">
  284. <extensions>
  285. <entry key="config" type="String">#cloud-config&#xD;
  286. bootcmd:&#xD;
  287. - ln -s -t /etc/rc.d /etc/rc.local&#xD;
  288. hostname: lxc-iperf-4&#xD;
  289. manage_etc_hosts: true&#xD;
  290. runcmd:&#xD;
  291. - systemctl start rc-local&#xD;
  292. - sed -i '/^\s*PasswordAuthentication\s\+no/d' /etc/ssh/sshd_config&#xD;
  293. - echo "UseDNS no" &gt;&gt; /etc/ssh/sshd_config&#xD;
  294. - service ssh restart&#xD;
  295. - service sshd restart&#xD;
  296. users:&#xD;
  297. - default&#xD;
  298. - gecos: User configured by VIRL Configuration Engine 0.20.22&#xD;
  299. lock-passwd: false&#xD;
  300. name: cisco&#xD;
  301. plain-text-passwd: cisco&#xD;
  302. shell: /bin/bash&#xD;
  303. ssh-authorized-keys:&#xD;
  304. - VIRL-USER-SSH-PUBLIC-KEY&#xD;
  305. sudo: ALL=(ALL) ALL&#xD;
  306. write_files:&#xD;
  307. - path: /etc/systemd/system/dhclient@.service&#xD;
  308. content: |&#xD;
  309. [Unit]&#xD;
  310. Description=Run dhclient on %i interface&#xD;
  311. After=network.target&#xD;
  312. [Service]&#xD;
  313. Type=oneshot&#xD;
  314. ExecStart=/sbin/dhclient %i -pf /var/run/dhclient.%i.pid -lf /var/lib/dhclient/dhclient.%i.lease&#xD;
  315. RemainAfterExit=yes&#xD;
  316. owner: root:root&#xD;
  317. permissions: '0644'&#xD;
  318. - path: /etc/rc.local&#xD;
  319. owner: root:root&#xD;
  320. permissions: '0755'&#xD;
  321. content: |-&#xD;
  322. #!/bin/sh&#xD;
  323. ifconfig eth1 up 172.23.25.20 netmask 255.255.255.0&#xD;
  324. exit 0&#xD;
  325. </entry>
  326. </extensions>
  327. <interface id="0" name="eth1"/>
  328. </node>
  329. <node name="lxc-iperf-3" type="SIMPLE" subtype="lxc-iperf" location="853,80" ipv4="172.23.24.20">
  330. <extensions>
  331. <entry key="config" type="String">#cloud-config&#xD;
  332. bootcmd:&#xD;
  333. - ln -s -t /etc/rc.d /etc/rc.local&#xD;
  334. hostname: lxc-iperf-3&#xD;
  335. manage_etc_hosts: true&#xD;
  336. runcmd:&#xD;
  337. - systemctl start rc-local&#xD;
  338. - sed -i '/^\s*PasswordAuthentication\s\+no/d' /etc/ssh/sshd_config&#xD;
  339. - echo "UseDNS no" &gt;&gt; /etc/ssh/sshd_config&#xD;
  340. - service ssh restart&#xD;
  341. - service sshd restart&#xD;
  342. users:&#xD;
  343. - default&#xD;
  344. - gecos: User configured by VIRL Configuration Engine 0.20.22&#xD;
  345. lock-passwd: false&#xD;
  346. name: cisco&#xD;
  347. plain-text-passwd: cisco&#xD;
  348. shell: /bin/bash&#xD;
  349. ssh-authorized-keys:&#xD;
  350. - VIRL-USER-SSH-PUBLIC-KEY&#xD;
  351. sudo: ALL=(ALL) ALL&#xD;
  352. write_files:&#xD;
  353. - path: /etc/systemd/system/dhclient@.service&#xD;
  354. content: |&#xD;
  355. [Unit]&#xD;
  356. Description=Run dhclient on %i interface&#xD;
  357. After=network.target&#xD;
  358. [Service]&#xD;
  359. Type=oneshot&#xD;
  360. ExecStart=/sbin/dhclient %i -pf /var/run/dhclient.%i.pid -lf /var/lib/dhclient/dhclient.%i.lease&#xD;
  361. RemainAfterExit=yes&#xD;
  362. owner: root:root&#xD;
  363. permissions: '0644'&#xD;
  364. - path: /etc/rc.local&#xD;
  365. owner: root:root&#xD;
  366. permissions: '0755'&#xD;
  367. content: |-&#xD;
  368. #!/bin/sh&#xD;
  369. ifconfig eth1 up 172.23.24.20 netmask 255.255.255.0&#xD;
  370. exit 0&#xD;
  371. </entry>
  372. </extensions>
  373. <interface id="0" name="eth1"/>
  374. </node>
  375. <annotations/>
  376. <connection dst="/virl:topology/virl:node[2]/virl:interface[2]" src="/virl:topology/virl:node[1]/virl:interface[2]"/>
  377. <connection dst="/virl:topology/virl:node[3]/virl:interface[3]" src="/virl:topology/virl:node[2]/virl:interface[3]"/>
  378. <connection dst="/virl:topology/virl:node[1]/virl:interface[1]" src="/virl:topology/virl:node[4]/virl:interface[1]"/>
  379. <connection dst="/virl:topology/virl:node[2]/virl:interface[1]" src="/virl:topology/virl:node[5]/virl:interface[1]"/>
  380. <connection dst="/virl:topology/virl:node[6]/virl:interface[1]" src="/virl:topology/virl:node[3]/virl:interface[1]"/>
  381. <connection dst="/virl:topology/virl:node[3]/virl:interface[2]" src="/virl:topology/virl:node[7]/virl:interface[1]"/>
  382. </topology>