EVPN la configuración básica en la topología de la estructura de CC
La topología completa, tal y como Figure 1 se muestra en la, consiste en:
La estructura del centro de datos:
Cinco PE de hoja EVPN: HOJA-1, hoja-2, hoja-3, hoja-4 y hoja-5
Dos PEs de hoja de borde de EVPN: BL-1 y BL-2
Dos dispositivos de espina Lean: ESPINA 1 y lomo-2
Mundo de multidifusión externo:
Una puerta de enlace PIM: PIM-GW
Un PIM RP: PIM-RP
Tres dispositivos CE para el alojamiento múltiple de algunos de los hosts finales: CE-1, CE-2 y CE-3.
Ocho puertos de Comprobador de enrutador (RT) para simular el origen o los receptores del tráfico de multidifusión.
Configuraremos estos dispositivos según sea necesario.
Configuración de EVPN base
Configuring the Underlay
LEAF-1
Configure las interfaces de subyacente:
set interfaces xe-0/0/0 description "TO SPINE-1"
set interfaces xe-0/0/0 unit 0 family inet address 8.8.8.2/24
set interfaces xe-0/0/1 description "TO SPINE-2"
set interfaces xe-0/0/1 unit 0 family inet address 13.13.13.2/24
set interfaces lo0 unit 0 family inet address 105.105.105.105/32
commit
Configure BGP para enrutamiento en la subyacente:
set routing-options router-id 105.105.105.105
set routing-options autonomous-system 65005
set policy-options policy-statement EXPORT-LO term 1 from
protocol direct
set policy-options policy-statement EXPORT-LO term 1 then
accept
set protocols bgp group UNDERLAY family inet any
set protocols bgp group UNDERLAY export EXPORT-LO
set protocols bgp group UNDERLAY local-as 65005
set protocols bgp group UNDERLAY neighbor 8.8.8.1 description
SPINE-1
set protocols bgp group UNDERLAY neighbor 8.8.8.1 peer-as
65003
set protocols bgp group UNDERLAY neighbor 13.13.13.1 description
SPINE-2
set protocols bgp group UNDERLAY neighbor 13.13.13.1 peer-as
65004
commit
La configuración de subyacente en otros PEs de hoja y PEs de hojas de borde será similar y se proporcionará en el Apéndice
SPINE-1
Configure las interfaces de subyacente:
set interfaces xe-0/0/0 description "TO BL-1"
set interfaces xe-0/0/0 unit 0 family inet address 5.5.5.2/24
set interfaces xe-0/0/1 description "TO BL-2"
set interfaces xe-0/0/1 unit 0 family inet address 7.7.7.2/24
set interfaces xe-0/0/2 description "TO LEAF-1"
set interfaces xe-0/0/2 unit 0 family inet address 13.13.13.1/24
set interfaces xe-0/0/3 description "TO LEAF-2"
set interfaces xe-0/0/3 unit 0 family inet address 14.14.14.1/24
set interfaces xe-0/0/4 description "TO LEAF-3"
set interfaces xe-0/0/4 unit 0 family inet address 15.15.15.1/24
set interfaces xe-0/0/5 description "TO LEAF-4"
set interfaces xe-0/0/5 unit 0 family inet address 16.16.16.1/24
set interfaces xe-0/0/6 description "TO LEAF-5"
set interfaces xe-0/0/6 unit 0 family inet address 17.17.17.1/24
set interfaces lo0 unit 0 family inet address 104.104.104.104/32
commit
Configure BGP para enrutamiento en la subyacente:
set routing-options router-id 104.104.104.104
set routing-options autonomous-system 65004
set policy-options policy-statement EXPORT-LO term 1 from
protocol direct
set policy-options policy-statement EXPORT-LO term 1 then
accept
set protocols bgp group UNDERLAY family inet any
set protocols bgp group UNDERLAY export EXPORT-LO
set protocols bgp group UNDERLAY local-as 65004
set protocols bgp group UNDERLAY neighbor 5.5.5.1 description
BL-1
set protocols bgp group UNDERLAY neighbor 5.5.5.1 peer-as
65001
set protocols bgp group UNDERLAY neighbor 7.7.7.1 description
BL-2
set protocols bgp group UNDERLAY neighbor 7.7.7.1 peer-as
65002
set protocols bgp group UNDERLAY neighbor 13.13.13.2 description
LEAF-1
set protocols bgp group UNDERLAY neighbor 13.13.13.2 peer-as
65005
set protocols bgp group UNDERLAY neighbor 14.14.14.2 description
LEAF-2
set protocols bgp group UNDERLAY neighbor 14.14.14.2 peer-as
65006
set protocols bgp group UNDERLAY neighbor 15.15.15.2 description
LEAF-3
set protocols bgp group UNDERLAY neighbor 15.15.15.2 peer-as
65007
set protocols bgp group UNDERLAY neighbor 16.16.16.2 description
LEAF-4
set protocols bgp group UNDERLAY neighbor 16.16.16.2 peer-as
65008
set protocols bgp group UNDERLAY neighbor 17.17.17.2 description
LEAF-5
set protocols bgp group UNDERLAY neighbor 17.17.17.2 peer-as
65009
commit
Repasaremos la configuración del lomo-1. La configuración de la espina 2 será parecida y se proporcionará en el apéndice.
Configuring the Overlay
A continuación, configuraremos la superposición en el PEs EVPN.
LEAF-1
Configure I-BGP para enrutamiento en la capa superpuesta:
set protocols bgp group OVERLAY type internal
set protocols bgp group OVERLAY local-address 105.105.105.105
set protocols bgp group OVERLAY family evpn signaling
set protocols bgp group OVERLAY local-as 65000
set protocols bgp group OVERLAY neighbor 101.101.101.101
description BL-1
set protocols bgp group OVERLAY neighbor 102.102.102.102
description BL-2
set protocols bgp group OVERLAY neighbor 106.106.106.106
description LEAF-2
set protocols bgp group OVERLAY neighbor 107.107.107.107
description LEAF-3
set protocols bgp group OVERLAY neighbor 108.108.108.108
description LEAF-4
set protocols bgp group OVERLAY neighbor 109.109.109.109
description LEAF-5
commit
Configure las interfaces de cliente y las VLAN:
set chassis aggregated-devices ethernet deviCE-3ount 2
set interfaces xe-0/0/2 gigether-options 802.3ad ae0
set interfaces xe-0/0/3 gigether-options 802.3ad ae1
set interfaces xe-0/0/4 description "TO Host-2"
set interfaces xe-0/0/4 unit 0 family ethernet-switching
interface-mode trunk
set interfaces xe-0/0/4 unit 0 family ethernet-switching
VLAN members VLAN-101
set interfaces ae0 description "TO CE-1"
set interfaces ae0 aggregated-ether-options lacp active
set interfaces ae0 aggregated-ether-options lacp periodic
fast
set interfaces ae0 aggregated-ether-options lacp system-id
00:11:11:11:11:11
set interfaces ae0 unit 0 family ethernet-switching interface-mode
trunk
set interfaces ae0 unit 0 family ethernet-switching VLAN
members VLAN-101
set interfaces ae1 description "TO CE-2"
set interfaces ae1 aggregated-ether-options lacp active
set interfaces ae1 aggregated-ether-options lacp periodic
fast
set interfaces ae1 aggregated-ether-options lacp system-id
00:22:22:22:22:22
set interfaces ae1 unit 0 family ethernet-switching interface-mode
trunk
set interfaces ae1 unit 0 family ethernet-switching VLAN
members VLAN-101
set interfaces ae1 unit 0 family ethernet-switching VLAN
members VLAN-102
set vlans VLAN-101 VLAN-id 101
set vlans VLAN-101 vxlan vni 101
set vlans VLAN-102 VLAN-id 102
set vlans VLAN-102 vxlan vni 102
commit
Configure EVPN para ampliar las VLAN del cliente:
set protocols evpn encapsulation vxlan
set protocols evpn extended-vni-list 101
set protocols evpn extended-vni-list 102
set switch-options vtep-source-interface lo0.0
set switch-options route-distinguisher 105.105.105.105:1
set switch-options vrf-target target:1:1
commit
Configure ESIs para interfaces multitarjeta:
set interfaces ae0 esi 00:11:11:11:11:11:11:11:11:11
set interfaces ae0 esi 00:11:11:11:11:11:11:11:11:11
set interfaces ae1 esi 00:22:22:22:22:22:22:22:22:22
set interfaces ae1 esi all-active
commit
La configuración de superposición en otros EVPN hojas de PEs será similar y se proporcionará en el apéndice.
BL-1
Configure I-BGP para enrutamiento en la capa superpuesta:
set protocols bgp group OVERLAY type internal
set protocols bgp group OVERLAY local-address 102.102.102.102
set protocols bgp group OVERLAY family evpn signaling
set protocols bgp group OVERLAY local-as 65000
set protocols bgp group OVERLAY neighbor 101.101.101.101
description BL-1
set protocols bgp group OVERLAY neighbor 105.105.105.105
description LEAF-1
set protocols bgp group OVERLAY neighbor 106.106.106.106
description LEAF-2
set protocols bgp group OVERLAY neighbor 107.107.107.107
description LEAF-3
set protocols bgp group OVERLAY neighbor 108.108.108.108
description LEAF-4
set protocols bgp group OVERLAY neighbor 109.109.109.109
description LEAF-5
commit
Configure las VLAN del cliente:
set vlans VLAN-101 VLAN-id 101
set vlans VLAN-101 vxlan vni 101
set vlans VLAN-102 VLAN-id 102
set vlans VLAN-102 vxlan vni 102
commit
Configure EVPN para ampliar las VLAN del cliente:
set protocols evpn encapsulation vxlan
set protocols evpn extended-vni-list 101
set protocols evpn extended-vni-list 102
set switch-options vtep-source-interface lo0.0
set switch-options route-distinguisher 101.101.101.101:1
set switch-options vrf-target target:1:1
commit
Configure el VRF de L3 y sus interfaces:
set interfaces irb unit 101 virtual-gateway-accept-data
set interfaces irb unit 101 virtual-gateway-esi 00:66:66:66:66:66:66:66:66:66
set interfaces irb unit 101 virtual-gateway-esi all-active
set interfaces irb unit 101 family inet address 18.18.18.1/24
virtual-gateway-address 18.18.18.100
set interfaces irb unit 102 virtual-gateway-accept-data
set interfaces irb unit 102 virtual-gateway-esi 00:77:77:77:77:77:77:77:77:77
set interfaces irb unit 102 virtual-gateway-esi all-active
set interfaces irb unit 102 family inet address 19.19.19.1/24
virtual-gateway-address 19.19.19.100
set interfaces lo0 unit 1 family inet address 101.101.101.102/32
set routing-instances VRF-1 instance-type virtual-router
set routing-instances VRF-1 interface irb.101
set routing-instances VRF-1 interface irb.102
set routing-instances VRF-1 interface lo0.1
set vlans VLAN-101 l3-interface irb.101
set vlans VLAN-102 l3-interface irb.102
commit
Configure los protocolos de multidifusión L3 en el VRF L3:
set routing-instances VRF-1 protocols pim interface lo0.1
mode sparse
set routing-instances VRF-1 protocols pim rp local address
101.101.101.102
set routing-instances VRF-1 protocols pim interface all
mode sparse
set routing-instances VRF-1 protocols pim interface irb.102
priority 2
commit
La configuración de superposición en BL-2 será similar y se proporcionará en el apéndice.
Configuring the CE devices
CE-1
Configure las interfaces y los dominios de puente:
set chassis aggregated-devices ethernet deviCE-3ount 1
set interfaces ge-0/0/0 description "TO Host-1"
set interfaces ge-0/0/0 unit 0 family bridge interface-mode
trunk
set interfaces ge-0/0/0 unit 0 family bridge VLAN-id-list
101
set interfaces ge-0/0/0 unit 0 family bridge VLAN-id-list
102
set interfaces ge-0/0/1 gigether-options 802.3ad ae0
set interfaces ge-0/0/2 gigether-options 802.3ad ae0
set interfaces ae0 aggregated-ether-options lacp active
set interfaces ae0 aggregated-ether-options lacp periodic
fast
set interfaces ae0 description "TO LEAF-1_LEAF-2"
set interfaces ae0 unit 0 family bridge interface-mode
trunk
set interfaces ae0 unit 0 family bridge VLAN-id-list 101
set interfaces ae0 unit 0 family bridge VLAN-id-list 102
set bridge-domains BD-101 domain-type bridge
set bridge-domains BD-101 VLAN-id 101
set bridge-domains BD-102 domain-type bridge
set bridge-domains BD-102 VLAN-id 102
commit
La configuración de superposición en otros dispositivos de la CE será similar y se proporcionará en el apéndice, además de consultar el apéndice para obtener la configuración básica completa de todos los dispositivos de la topología.