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 모드로 진행하고자 합니다.

기본적인 구성과 설정은 아래와 같습니다.

image_thumb


## vMX-1

set chassis fpc 0 pic 0 tunnel-services bandwidth 10g
# 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 bridge-domains vlan-5 vxlan ingress-node-replication
#BUM Traffic의 전달? 방법지정 및 vxlan vni mapping

set switch-options vtep-source-interface lo0.0
set switch-options remote-vtep-list 10.100.1.2
## vxlan source interface 및 remote vtep ip지정

## vMX-2

set chassis fpc 0 pic 0 tunnel-services bandwidth 10g

set interfaces ge-0/0/0 unit 0 family inet address 10.172.0.1/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

set interfaces lo0 unit 0 family inet address 10.100.1.2/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

set bridge-domains vlan-5 vlan-id 5
set bridge-domains vlan-5 vxlan vni 105
set bridge-domains vlan-5 vxlan ingress-node-replication

set switch-options vtep-source-interface lo0.0
set switch-options remote-vtep-list 10.100.1.1

설정을 보면 VXLAN을 아시는분은 바로 이해 가능하시지 않을까 싶네요
통신 확인을 위해 VPC에 IP를 넣어 봅니다.

image
image
Ping을 서로 치고 Packet Capture를 하면 아래와 같이 나옵니다.
image

image
참 쉽죠? =_=..;
기술적인 Detail은 아래 문서들을 참고하시면 좋을 듯합니다.
https://www.juniper.net/documentation/en_US/junos/topics/topic-map/sdn-vxlan.html
https://www.juniper.net/documentation/en_US/junos/topics/task/verification/vxlan-remote-vtep-qfx-series.html

수고하세요~





댓글

  1. 안녕하세요 . Vxlan 패킷 캡쳐하려면 wireshark에서 설정해야하는 항목이 있을까요?

    답글삭제

댓글 쓰기

이 블로그의 인기 게시물

Juniper - OSPF Configuration Part - III

New Bebe Lab with EVE-NG II

New Bebe Lab with EVE-NG I