๊ธ€

Multicast based VXLAN with vQFX - II

์ด๋ฏธ์ง€
์ด์ œ ์ด์–ด์„œ ๋งŒ๋“ค ๋žฉ์˜ ์ „์›์„ ์ผญ๋‹ˆ๋‹ค~ ์œ„์— Start all nodes ํ•˜๋ฉด ํ•œ๋ฒˆ์— ๋‹ค ์ผœ์ง‘๋‹ˆ๋‹ค ใ…Žใ…Žใ…Ž ์Šค์ƒท ์ฐ์—ˆ์„๋•Œ ๋ณด๊ธฐ ํŽธํ•˜๋ ค๊ณ  ์„ค์ •์„ ๋ณ€๊ฒฝํ–ˆ์Šต๋‹ˆ๋‹ค ใ…Žใ…Ž ๋ˆˆ์ด ์กฐ๊ธˆ ํŽธํ•ด์กŒ๋„ค์š”. ์ ‘์†์„ ์œ„ํ•œ ๊ณ„์ •์€ root/Juniper๊ฐ€ ๊ธฐ๋ณธ์ด๋„ค์š” ์ด๋ฏธ์ง€๊ฐ€ ๋งŒ๋“ค์–ด์งˆ ๋•Œ ์ €์žฅ๋œ ๋“ฏ ํ•ฉ๋‹ˆ๋‹ค ์ด์ œ ์ˆœ์„œ๋Œ€๋กœ ์ง„ํ–‰์„ ํ•ด๋ณผ๊นŒ ํ•ฉ๋‹ˆ๋‹ค. OSPF์—ฐ๋™ Mulicast ์—ฐ๋™ with PIM Sparse mode / RP ์ง€์ • VXLAN ์„ค์ • ๋ฐ Multicast Group ์ง€์ • End host ์„ค์ •๋ฐ ๊ฒ€์ฆ. ์‹œ์ž‘ ์ „์— ์Šค์œ„์น˜ ์ด๋ฏธ์ง€์ธ ๋งŒํผ interface์„ค์ •์ด ๋งŽ์œผ๋‹ˆ ์ง€์šฐ๊ณ  ์‹œ์ž‘ํ•˜๊ฒ ์Šต๋‹ˆ๋‹ค. ์œ„์˜ em1์ธํ„ฐํŽ˜์ด์Šค๊ฐ€ ์—†์œผ๋ฉด xe interface๊ฐ€ ์•ˆ์˜ฌ๋ผ์˜ค๋‹ˆ em1๋งŒ ์‚ด๋ ค๋‘ก๋‹ˆ๋‹ค ใ…Žใ…Ž ===================================================================================== ์ฒซ๋ฒˆ์งธ์ธ OSPF๋Š” ๋ญ…๋‹ค๋“ค ์•„์‹œ์ฃ ? ์ญ‰์ญ‰ ์„ค์ •ํ•˜๊ฒ ์Šต๋‹ˆ๋‹ค ๋ชจ๋“  Interface๋Š” /31 ๋กœ ์„ค์ •ํ•˜๊ฒ ์Šต๋‹ˆ๋‹ค. ์™œ /24 ์•ˆ์“ฐ๋Š”์ง€๋Š” ์ƒ๊ฐํ•ด๋ณด์„ธ์š” ใ…Žใ…Ž ์„ค์ •์€ ๋ญ….๋”ฐ๋กœ ์ฒจ๋ถ€ ํ•ด๋ณผ๊นŒ ํ•ฉ๋‹ˆ๋‹ค. (์ด๋ ‡๊ฒŒ๋„ ํ•ด๋ณด๊ณ  ์ €๋ ‡๊ฒŒ๋„ ํ•ด๋ณด๊ณ …ใ…Žใ…Žใ…Žใ…Ž) ๊ฐ€์šด๋ฐ ์žฅ๋น„์ธ vQFX-2์—์„œ ํ™•์ธ ํ•ด๋ณด๋‹ˆ ์„œ๋กœ OSPF์—ฐ๋™๋ฐ Loopback๋„ ์ž˜๋ฐ›์•„ ์™”๋„ค์š”. 2. Multicast with PIM Sparse mode ๋ฉ€์บ๋Š” ์‚ฌ์‹ค ๋งŽ์ด ํ•˜์‹œ๋Š” ๋ถ„์€ ๋งŽ์ด ํ•˜์‹œ๊ณ  ๋˜, ์•ˆํ•˜์‹œ๋Š” ๋ถ„์€ ๊ฑฐ์˜ ์•ˆํ•˜๋Š” ๋…€์„์ด๋ผ๊ณ  ์ €๋Š” ์ƒ๊ฐํ•ฉ๋‹ˆ๋‹ค ใ…Žใ…Ž ๋”ฐ๋ผ์„œ ์ž์„ธํžˆ๋Š” ์•ˆ๋‹ค๋ฃจ๊ณ  ํ•„์š”ํ•œ ์„ค์ •๋งŒ ์ƒค์ƒฅ~! ํ•˜๊ณ  ๋„˜์–ด๊ฐ‘๋‹ˆ๋‹ค. (์–ธ์  ๊ฐ€ ๋ฉ€ํ‹ฐ๋งŒ ๊นŠ๊ฒŒ ๋‹ค๋ฃฐ์ผ์ด ์žˆ๊ฒ ์ฃ  ใ…Žใ…Ž) ๋ณ„๋‹ค๋ฅธ๊ฑฐ ์—†์ด PIM๊ณผ RP๋ฅผ ์„ค์ •ํ•ฉ๋‹ˆ๋‹ค. ์„ค์ • ํ›„ PIM neighbor์™€ RP๋ฅผ ํ™•์ธ ํ•˜๋ฉด ์ผ๋‹จ ๋์ž…๋‹ˆ๋‹ค. ์‰ฝ๊ฒŒ ํ•˜๋ ค๋ฉด ์‰ฌ์šด ๋ฉ€์บ ์–ด๋ ต๊ฒŒ ํ•˜๋ ค๋ฉด ์–ด๋ ค์šด ๋ฉ€์บ. 3. VXLAN / Multicast Group์„ค์ • ๋ฉ€์บ ๊ทธ๋ฃน์„ ์™œ ์œ„์—์„œ ์•ˆํ•˜๊ณ  ๋”ฐ๋กœ ํ•˜๋‚˜….๋ผ๊ณ  ์ƒ๊ฐํ•˜์‹œ๋Š” ๋ถ„์ด ๊ณ„์‹ค์ˆ˜ ์žˆ๋Š”

Multicast based VXLAN with vQFX - I

์ด๋ฏธ์ง€
์•ˆ๋…•ํ•˜์„ธ์š” ์ง€๋‚œ ๋ฒˆ์— VXLAN๊ด€๋ จ Posting์„ ํ–ˆ์—ˆ์Šต๋‹ˆ๋‹ค ๊ทธ 2ํƒ„์œผ๋กœ Multicast ๊ธฐ๋ฐ˜์˜ VXLAN๋„ ์จ๋ณผ๊นŒ ํ•ฉ๋‹ˆ๋‹ค. ๋ฌผ๋ก  ๋˜ ์‹œ๊ฐ„์ด ๋˜๋ฉด ๊ฐ€์žฅ HOT ํ•œ(?) EVPN-VXLAN๋„ ์“ธ๊ฒ๋‹ˆ๋‹ค ใ…Žใ…Ž ๊ธฐ์ˆ  ๋ฐฐ๊ฒฝ? ์„ ์ข€ ๋ณด์ž๋ฉด ์‚ฌ์‹ค VXLAN์€ Multicast ๊ธฐ๋ฐ˜์ด ๊ธฐ๋ณธ์ด๊ณ  ์ถ”๊ฐ€์ ์œผ๋กœ ํŒŒ์ƒ๋œ ๋ถ€๋ถ„์ด Unicast OVSDB EVPN ์ž…๋‹ˆ๋‹ค. ์ด์œ ์ธ ์ฆ‰ VXLAN์€ DataCenter ๊ธฐ์ˆ ์ด๊ณ  ์ตœ๊ทผ ๋“ค์–ด์„œ์•ผ DCI (Data Center Interconnect) ์šฉ์œผ๋กœ ๊ณ ๋ ค๋˜๋Š” ๊ธฐ์ˆ ์ด๊ธฐ์— Dynamic Tunnel์˜ concept๋ฅผ ๊ธฐ๋ณธ์ ์œผ๋กœ ๊ฐ€์ง€๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ๋”ฐ๋ผ์„œ ์–ธ์ œ ์–ด๋””์— ์ƒ์„ฑ, ํ•™์Šต๋ ์ง€ ๋ชจ๋ฅด๋Š” Host ์ •๋ณด์™€ VTEP์ •๋ณด๋ฅผ ํ•™์Šตํ•˜๊ณ  ์ œ์–ดํ•  Control plane์ด ํ•„์š”ํ•œ๊ฑฐ์ฃ . ๋ญ…์‚ฌ์‹ค ์ฒ˜์Œ VXLAN์ด draft์ผ ๋–„ ๋ถ€ํ„ฐ์˜ ๋‚ด์šฉ์„ ์ญˆ์šฑ ๋ณด๋ฉด์„œ Traditionally, all data centers use VLANs to enforce Layer2 isolation. As data centers grow and needs arise for extending Layer2 networks across data center or may be beyond a data center, the shortcomings of VLANs are evident. These shortcomings are – In a data center, there are requirements of thousands of VLANs to partition traffic in a multi-tenant environment sharing the same L2/L3 infrastructure for a Cloud Service Provider. The current limit of 4096 VLANs (some are reserved) is not enough. Due to Server virtualization, each Virtual Ma

Easy way to VXLAN implementation with vMX – Layer 2 overlay

์ด๋ฏธ์ง€
์ž๊ธฐ ์ „์— ํ•˜๋‚˜ ๋” ์จ๋ณผ๊นŒ…ํ•ด์„œ ์ •๋ง ๊ฐ„๋‹จํ•˜๊ฒŒ? ํ•ด๋ณผ์ˆ˜ ์žˆ๋Š” VXLAN ์„ค์ •์„ ํ•ด๋ดค์Šต๋‹ˆ๋‹ค. ์‚ฌ์‹ค VXLAN ๊ธฐ์ˆ ์€ ํฌ๊ฒŒ 4๊ฐ€์ง€ ์ •๋„์˜ ๊ตฌ์„ฑ case ๊ฐ€์žˆ์Šต๋‹ˆ๋‹ค Multicast OVSDB Unicast EVPN VXLAN์€ ์œ„์˜ ๊ธฐ์ˆ ๋“ค์„ ๊ธฐ๋ฐ˜์œผ๋กœ MAC์ •๋ณด์™€ VTEP(VXLAN Tunnel End Point)์ •๋ณด๋ฅผ ์ฃผ๊ณ  ๋ฐ›์Šต๋‹ˆ๋‹ค ๊ฐ๊ฐ์ด ์žฅ,๋‹จ์ ์ด ์žˆ์ง€๋งŒ ์˜ค๋Š˜์€ ๊ฐ„๋‹จํ•˜๊ฒŒ? ํ•˜๊ธฐ๋กœ ์ •ํ•ด์„œ Unicast ๋ชจ๋“œ๋กœ ์ง„ํ–‰ํ•˜๊ณ ์ž ํ•ฉ๋‹ˆ๋‹ค. ๊ธฐ๋ณธ์ ์ธ ๊ตฌ์„ฑ๊ณผ ์„ค์ •์€ ์•„๋ž˜์™€ ๊ฐ™์Šต๋‹ˆ๋‹ค. ## vMX-1 set chassis fpc 0 pic 0 tunnel - services bandwidth 10 g # Tunnel service๋ฅผ ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ๋„๋ก ์„ค์ •. set interfaces ge - 0 / 0 / 0 unit 0 family inet address 10.172.0.0 / 31 set interfaces ge - 0 / 0 / 1 unit 0 family bridge interface - mode access set interfaces ge - 0 / 0 / 1 unit 0 family bridge vlan - id 5 #์ผ๋ฐ˜์ ์ธ L2 Access Port๋กœ ์ง€์ • set interfaces lo0 unit 0 family inet address 10.100.1.1 / 32 set protocols ospf area 0.0.0.0 interface lo0 .0 passive set protocols ospf area 0.0.0.0 interface ge - 0 / 0 / 0.0 interface - type p2p #OSPF ๋ฅผ ํ†ตํ•ด Loopback IP ์ „๋‹ฌ set bridge - domains vlan - 5 vlan - id 5 set bridge - domains vlan - 5 vxlan vni 105 set b

Juniper vMX License Activation

์ด๋ฏธ์ง€
Juniper Networks ์—์„œ ์ œ๊ณตํ•˜๋Š”  vMX๋ฅผ 100% ํ™œ์šฉํ•˜๊ธฐ ์œ„ํ•ด์„œ๋Š” ๋ผ์ด์„ผ์Šค๋ฅผ ๋„ฃ์–ด์•ผ ํ•ฉ๋‹ˆ๋‹ค. ํ•ด์„œ ๊ฐ„๋‹จํ•˜๊ฒŒ vMX์— License๋ฅผ ์ถ”๊ฐ€ ํ•ด ๋ณด๊ฒ ์Šต๋‹ˆ๋‹ค. ์šฐ์„  ์ง€๋‚œ ๋ฒˆ vMX๋ฅผ ์ œ๊ณตํ•˜๋Š” Page๋กœ ๊ฐ€ ๋ด…์‹œ๋‹ค https://www.juniper.net/us/en/dm/free-vmx-trial/ ๊ฐ€์‹œ๋ฉด ์œ„์™€ ๊ฐ™์ด License Key๋ฅผ ์ œ๊ณตํ•ฉ๋‹ˆ๋‹ค. ํด๋ฆญํ•ด์„œ ๋“ค์–ด ๊ฐ€์‹œ๋ฉด ์•„๋ž˜ ์™€๊ฐ™์ด Key๋ฅผ ํ™•์ธ ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. ์ด์ œ vMX๋ฅผ ์ผœ๊ณ  ๋ผ์ด์„ผ์Šค๋ฅผ ๋„ฃ์–ด ๋ณด๊ฒ ์Šต๋‹ˆ๋‹ค. vMX-VCP ๊ฐ€ Virtual Control Plane ์ธ RE(Routing Engine)์ž…๋‹ˆ๋‹ค VCP๋ฅผ ํด๋ฆญํ•ด Console๋กœ ๋“ค์–ด๊ฐ€์„œ ํ˜„์žฌ์˜ License๋ฅผ ํ™•์ธํ•ฉ๋‹ˆ๋‹ค ๋‹น์—ฐํ•˜๊ฒŒ๋„ ์•„๋ฌด๋Ÿฐ ๋ผ์ด์„ผ์Šค๊ฐ€ ์—†์Šต๋‹ˆ๋‹ค. ์ด์ œ ๋„ฃ์–ด๋ณด๋„๋ก ํ•˜์ฃ  ๋ณต์‚ฌ + ๋ถ™์—ฌ๋„ฃ๊ธฐ ํ•˜์‹œ๊ณ  Ctrl + D๋ฅผ ๋ˆŒ๋Ÿฌ ์ž…๋ ฅํ•ฉ๋‹ˆ๋‹ค. ๊ทธ๋ฆฌ๊ณ  ๋ผ์ด์„ผ์Šค๋ฅผ ๋‹ค์‹œ ํ™•์ธํ•˜์‹œ๋ฉด~ ์ด๋ ‡๊ฒŒ License ๊ฐ€ Active ๋ฉ๋‹ˆ๋‹ค ์ด์ œ ๋ชจ๋“ ๊ธฐ๋Šฅ์„ ์“ธ์ˆ˜์žˆ๋Š” vMX๋ฅผ ๊ฐ€์ง€๊ณ  ํ•˜๋‚˜ํ•˜๋‚˜ ํ•ด๋ณผ๊นŒํ•˜๋Š”๋ฐ ๋ญ˜ํ• ์ง€ ๊ณ ๋ฏผํ•ด๋ด์•ผ๊ฒ ๋„ค์š” ใ…Žใ…Žใ…Ž

New Bebe Lab with EVE-NG II

์ด๋ฏธ์ง€
ํ™”์žฅ์‹ค ๋‹ค๋…€์˜จ ์‚ฌ์ด์— ์ด๋ฏธ์ง€๊ฐ€ ์ค€๋น„ ๋˜์—ˆ์Šต๋‹ˆ๋‹ค. ์ด์–ด์„œ ๊ฐ€๋ณด์ง€์š” ^^ ์ด๋ฏธ์ง€๋Š” ์˜ค๋Š˜์ž (2018.2.5) ์ตœ์‹ ๋ฒ„์ „์œผ๋กœ ๋‹ค ๋ฐ›์•˜์Šต๋‹ˆ๋‹ค. ๋ฐ›์œผ์‹ค ๋•Œ ์ฃผ์˜ ํ•˜์‹ค ์ ์€ KVM๋ฒ„์ „์œผ๋กœ ๋ฐ›์œผ์…”์•ผ ์ง„ํ–‰์ด ์ˆ˜์›”ํ•ฉ๋‹ˆ๋‹ค. ์™œ? ์ €ํฌ๋Š” Qemu๋กœ ๋Œ๋ฆด๊ฑฐ๋‹ˆ๊นŒ์š”. ์ผ๋‹จ ์•„๋ž˜ url๋กœ ๋“ค์–ด๊ฐ€์‹œ๋ฉด ๊ฐ๊ฐ์˜ ์ด๋ฏธ์ง€๋ฅผ ์–ด์ฐŒ ์ถ”๊ฐ€ํ•˜๋Š”์ง€ ๋‹ค ๋‚˜์™€์žˆ์Šต๋‹ˆ๋‹ค. ์ €๋Š” ์ž… ๋ฒ„๋ฆ‡์ฒ˜๋Ÿผ ๋งํ•˜์ง€๋งŒ ๊ฒ€์ƒ‰ํ•˜๋ฉด ์•ˆ๋‚˜์˜ค๋Š”๊ฒŒ ์—†๋Š” ์‹œ๋Œ€์— ์ €ํฌ๋Š” ์‚ด๊ณ ์žˆ์œผ๋‹ˆ๊นŒ์š”. http://www.eve-ng.net/index.php/documentation/howto-s http://www.eve-ng.net/index.php/documentation/howto-s/109-howto-juniper-vmx-16-x-17-x ์œ„ url์„ ๊ธฐ๋ณธ์œผ๋กœ ์ง„ํ–‰ํ•ฉ๋‹ˆ๋‹ค. ์ถ”๊ฐ€๋กœ ์ด์ „ post์ธ ์„ค์น˜๊ณผ์ • ์—ญ์‹œ๋„ ์นœ์ฒ ํžˆ ๋‚˜์™€์žˆ๋„ค์š” http://www.eve-ng.net/index.php/documentation/howto-s/65-howto-configure-eve-during-first-boot 1. ์ด๋ฏธ์ง€๋ฅผ VM์— ๋ณต์‚ฌ ํ•ฉ๋‹ˆ๋‹ค (๋ฌผ๋ก  ์••์ถ• ํ’€์–ด์„œ ใ…Žใ…Ž) ์••์ถœํ’€๋ฉด ์•„๋ž˜์™€ ๊ฐ™์ด ๋‚˜์˜ค๋Š”๋ฐ Imageํด๋”๋กœ ๋“ค์–ด๊ฐ‘๋‹ˆ๋‹ค. ์•„๋ž˜์™€ ๊ฐ™์ด ์„ ํƒ๋œ 4๊ฐœ์˜ ํŒŒ์ผ์„ ๋ณต์‚ฌํ•ฉ๋‹ˆ๋‹ค. ๋ณต์‚ฌํ•˜๋Š” ํด๋”๋Š” /opt/unetlab/addons/qemu/vmxvcp-17.4R1.16 /opt/unetlab/addons/qemu/vmxvfp-17.4R1.16 ๋‘ ๊ณณ์— ๋‚˜๋ˆ„์–ด์„œ ์˜ฌ๋ฆฝ๋‹ˆ๋‹ค. EVE-NG๋Š” ํด๋”๋ช…์˜ ์•ž ๋ฌธ์ž์—ด๋กœ img๋ฅผ ๊ตฌ๋ณ„ํ•˜๊ธฐ ๋•Œ๋ฌธ์— ํด๋”๋ช…์ด ์ค‘์š” ํ•ฉ๋‹ˆ๋‹ค. ์œ„์™€ ๊ฐ™์ด ์ด๋ฏธ์ง€๋ฅผ ์˜ฌ๋ฆฌ๊ณ  EVE-NG์—์„œ ์‚ฌ์šฉ๊ฐ€๋Šฅํ•˜๊ฒŒ qcow2 format์œผ๋กœ ๋ณ€๊ฒฝํ•ด์ค๋‹ˆ๋‹ค. ๋ณ€๊ฒฝํ•˜๋Š” file name๋„ ์ค‘์š”ํ•˜๋ฏ€๋กœ ๊ผญ! ์•„๋ž˜ ์ˆœ์„œ๋Œ€๋กœ ์ง„ํ–‰ํ•ฉ๋‹ˆ๋‹ค. 2. ์ด๋ฏธ์ง€ ๋ณ€ํ™˜ - Junos –> hda.qcow2 - vmxhdd –> hdb.qcow2 - re –> hdc.qcow2 ๊ทธ๋ฆฌ๊ณ  PFE ์ด๋ฏธ์ง€๋„ hda.qcow2๋กœ ๋ณ€