Juniper VXLAN Configs: Configuring VXLANs on Juniper MX Series Routers

 Today I am going to have the scenario where i am going to explain and provide you the VXLAN configurations on Juniper MX series router with the topology. VXLAN as you already knew that these are Virtual extensible LAN used to extend the layer 2 and layer 3 traffic across the public or private network or generally in the case of two datacenter connectivity.


I wrote some of the articles where i put some of the configurations and the basic information about the VXLAN. Below are the links if you want to review the same

Above are some of the topics on the VXLAN and I will come up with more VXLAN topics in the near future. Below is the topology of the VXLAN where VXLAN is configured to run on a default bridge domain. In this topology, the VTEP interfaces sources are configured to the loopback address, and VLAN groups are configured under bridge domains with VXLAN enabled. Here the interfaces are configured for VLAN tagging and encapsulation and IRB is enabled. In Juniper IRB is called as integrating Routing and Bridging.

So your question now is what is IRB or so called Integrated Routing and Bridging ?
So let me answer the same in short. IRB or so called Integrated routing and bridging interfaces enable a switch to recognize which packets are being sent to local addresses so that they are bridged whenever possible and are routed only when needed

So here in this example OSPF and PIM protocols are configured to facilitate unicast and multicast routing. The chassis is configured for GRES and enhanced IP services.



Fig 1.1- VXLAN in Juniper MX Routers
For the above topology below are the configurations you need to do on the Juniper MX routers. The IP address and the topology used here in this article is just for the demo purposes and has no relevance with any of the live or the enterprise network.


CLI Commands on Juniper MX Routers

ttlbits@router#set switch-options vtep-source-interface lo0.0
ttlbits@router#set bridge-domains vlan-5 vxlan vni 100
ttlbits@router#set bridge-domains vlan-5 vxlan multicast-group 233.252.0.1
ttlbits@router#set bridge-domains vlan-5 vlan-id 100
ttlbits@router#set bridge-domains vlan-5 routing-interface irb.0
ttlbits@router#set bridge-domains vlan-5 interface xe-1/0/0.0

ttlbits@router#set bridge-domains vlan-6 vxlan vni 200
ttlbits@router#set bridge-domains vlan-6 vxlan multicast-group 233.252.0.1
ttlbits@router#set bridge-domains vlan-6 vlan-id 200
ttlbits@router#set bridge-domains vlan-6 routing-interface irb.1
ttlbits@router#set bridge-domains vlan-6 interface xe-2/0/0.0

ttlbits@router#set interfaces xe-1/0/0 vlan-tagging
ttlbits@router#set interfaces xe-1/0/0 encapsulation flexible-ethernet-services
ttlbits@router#set interfaces xe-1/0/0 unit 0 encapsulation vlan-bridge
ttlbits@router#set interfaces xe-1/0/0 unit 0 vlan-id 100

ttlbits@router#set interfaces xe-2/0/0 vlan-tagging
ttlbits@router#set interfaces xe-2/0/0 encapsulation flexible-ethernet-services
ttlbits@router#set interfaces xe-2/0/0 unit 0 encapsulation vlan-bridge
ttlbits@router#set interfaces xe-2/0/0 unit 0 vlan-id 200

ttlbits@router#set interface irb unit 0 family inet address 10.5.5.1/24
ttlbits@router#set interface irb unit 1 family inet address 10.6.6.1/24
ttlbits@router#set interfaces lo0 unit 0 family inet address 10.3.3.3/32

ttlbits@router#set protocols ospf area 0.0.0.0 interface ge-8/3/8.0
ttlbits@router#set protocols ospf area 0.0.0.0 interface lo0.0
ttlbits@router#set protocols ospf area 0.0.0.0 interface xe-0/1/3.0
ttlbits@router#set protocols ospf area 0.0.0.0 interface ge-8/3/2.0

ttlbits@router#set protocols pim rp static address 10.2.1.3
ttlbits@router#set protocols pim interface lo0.0 mode bidirectional-sparse
ttlbits@router#set protocols pim interface ge-8/3/8.0 mode bidirectional-sparse
ttlbits@router#set protocols pim interface xe-0/1/3.0 mode bidirectional-sparse
ttlbits@router#set protocols pim interface ge-8/3/2.0 mode bidirectional-sparse

ttlbits@router#set chassis redundancy graceful-switchover
ttlbits@router#set chassis aggregated-devices ethernet device-count 10
ttlbits@router#set chassis fpc 1 pic 0 tunnel-services bandwidth 10g
ttlbits@router#set chassis network-services enhanced-ip

Check with the following commands on Juniper MX routers
ttlbits@router#show switch-options
ttlbits@router#show bridge-domains
ttlbits@router#show interfaces
ttlbits@router#show protocols ospf
ttlbits@router#show protocols pim
ttlbits@router#show chassis

Verify these commands
ttlbits@router>show interfaces terse irb
ttlbits@router>show interfaces vtep
ttlbits@router>show l2-learning vxlan-tunnel-end-point remote mac-table
ttlbits@router>show l2-learning vxlan-tunnel-end-point source