Difference between revisions of "Juniper EVPN-VXLAN configuration"
Jump to navigation
Jump to search
Line 32: | Line 32: | ||
===Spine1 configuation=== | ===Spine1 configuation=== | ||
+ | |||
+ | ##basic configuration | ||
+ | set system host-name spine1 | ||
+ | ## Edit policy-options | ||
+ | set policy-options policy-statement export-lo term lo0 from protocol direct | ||
+ | set policy-options policy-statement export-lo term lo0 from route-filter 10.0.1.13/32 exact | ||
+ | set policy-options policy-statement export-lo term lo0 then accept | ||
+ | set policy-options policy-statement lbpp term lb then load-balance per-packet | ||
+ | ## #Seting the underlay network### | ||
+ | set protocols bgp group underlay authentication-key password1 | ||
+ | set protocols bgp group underlay export export-lo | ||
+ | set protocols bgp group underlay multipath multiple-as | ||
+ | set protocols bgp group underlay neighbor 172.16.1.2 peer-as 65032 | ||
+ | set protocols bgp group underlay neighbor 172.16.1.10 peer-as 65033 | ||
+ | set protocols bgp group underlay neighbor 172.16.1.18 peer-as 65034 | ||
+ | set protocols bgp group underlay neighbor 172.16.1.26 peer-as 65035 descriptio asw-a1 | ||
+ | ## edit routing-options | ||
+ | set routing-options forwarding-table export lbpp | ||
+ | set routing-options router-id 10.0.1.13 | ||
+ | set routing-options autonomous-system 65030 | ||
+ | ## Edit interface lo0 | ||
+ | set interfaces lo0 unit 0 family inet address 10.0.1.13/32 | ||
+ | ## INTERFACE CONFIGUATION | ||
+ | delete interfaces xe-0/0/0 unit 0 family inet dhcp | ||
+ | delete interfaces xe-0/0/1 unit 0 family inet dhcp | ||
+ | delete interfaces xe-0/0/2 unit 0 family inet dhcp | ||
+ | delete interfaces xe-0/0/3 unit 0 family inet dhcp | ||
+ | set interfaces xe-0/0/0 unit 0 family inet address 172.16.1.1/30 | ||
+ | set interfaces xe-0/0/0 description link_to_leaf1_xe-0/0/0 | ||
+ | set interfaces xe-0/0/1 unit 0 family inet address 172.16.1.9/30 | ||
+ | set interfaces xe-0/0/1 description link_to_leaf2_xe-0/0/0 | ||
+ | set interfaces xe-0/0/2 unit 0 family inet address 172.16.1.17/30 | ||
+ | set interfaces xe-0/0/2 description link_to_leaf3_xe-0/0/0 | ||
+ | set interfaces xe-0/0/3 unit 0 family inet address 172.16.1.25/30 | ||
+ | set interfaces xe-0/0/3 description link_to_asw-d1_xe-0/0/0 | ||
+ | |||
===Spine2 configuation=== | ===Spine2 configuation=== |
Revision as of 19:31, 24 December 2021
Goal
In this tutorial we will setup a spine/leaf topology with 2 spines and 4 leaves. The goal is to configure EVPN-VXLAN
Prerequisites
For this tutorial I am using :
- EVE-NG 2.0.3-112
- VQFX model: vqfx-10000 running JUNOS 19.4R1.10
- spine1: ASN:65030
- spine2: ASN:65031
- leaf1: ASN:65032 in row A using 10.192.80.0/22 network
- leaf2: ASN:65033 in row B using 10.192.96.0/22 network
- leaf3: ASN:65034 in row C using 10.192.112.0/22 network
- leaf4: ASN:65035 in row D using 10.192.128.0/22 network
- 4 servers one in each row for testing communication
Diagram
Setup and Configuration
Spine1 configuation
##basic configuration set system host-name spine1 ## Edit policy-options set policy-options policy-statement export-lo term lo0 from protocol direct set policy-options policy-statement export-lo term lo0 from route-filter 10.0.1.13/32 exact set policy-options policy-statement export-lo term lo0 then accept set policy-options policy-statement lbpp term lb then load-balance per-packet ## #Seting the underlay network### set protocols bgp group underlay authentication-key password1 set protocols bgp group underlay export export-lo set protocols bgp group underlay multipath multiple-as set protocols bgp group underlay neighbor 172.16.1.2 peer-as 65032 set protocols bgp group underlay neighbor 172.16.1.10 peer-as 65033 set protocols bgp group underlay neighbor 172.16.1.18 peer-as 65034 set protocols bgp group underlay neighbor 172.16.1.26 peer-as 65035 descriptio asw-a1 ## edit routing-options set routing-options forwarding-table export lbpp set routing-options router-id 10.0.1.13 set routing-options autonomous-system 65030 ## Edit interface lo0 set interfaces lo0 unit 0 family inet address 10.0.1.13/32 ## INTERFACE CONFIGUATION delete interfaces xe-0/0/0 unit 0 family inet dhcp delete interfaces xe-0/0/1 unit 0 family inet dhcp delete interfaces xe-0/0/2 unit 0 family inet dhcp delete interfaces xe-0/0/3 unit 0 family inet dhcp set interfaces xe-0/0/0 unit 0 family inet address 172.16.1.1/30 set interfaces xe-0/0/0 description link_to_leaf1_xe-0/0/0 set interfaces xe-0/0/1 unit 0 family inet address 172.16.1.9/30 set interfaces xe-0/0/1 description link_to_leaf2_xe-0/0/0 set interfaces xe-0/0/2 unit 0 family inet address 172.16.1.17/30 set interfaces xe-0/0/2 description link_to_leaf3_xe-0/0/0 set interfaces xe-0/0/3 unit 0 family inet address 172.16.1.25/30 set interfaces xe-0/0/3 description link_to_asw-d1_xe-0/0/0