Skip to content

Commit

Permalink
EVPN designs: IBGP full mesh
Browse files Browse the repository at this point in the history
  • Loading branch information
ipspace committed May 20, 2024
1 parent fdd7edc commit 4ae42e3
Show file tree
Hide file tree
Showing 8 changed files with 793 additions and 0 deletions.
8 changes: 8 additions & 0 deletions EVPN/ibgp-full-mesh/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# EVPN Designs: IBGP Full Mesh

This directory contains the lab topology described in the [EVPN Designs: IBGP Full Mesh Between Leaf Switches
](https://blog.ipspace.net/2024/05/evpn-designs-ibgp-full-mesh.html) blog post.

![](http://blog.ipspace.net/2024/04/evpn-design-fabric.png)

![](http://blog.ipspace.net/2024/05/evpn-design-ibgp-full-mesh.png)
138 changes: 138 additions & 0 deletions EVPN/ibgp-full-mesh/config/L1.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,138 @@
! Command: show running-config
! device: L1 (cEOSLab, EOS-4.32.0F-36401836.4320F (engineering build))
!
no aaa root
!
username admin privilege 15 role network-admin secret sha512 $6$htxqtVqJgup0L4gB$e4SaXj2CitWp/yHFZrn65zF6EkNyZUo511CWfWb6hrsvFNoGAB./IUhYAHsRwdRJDgpjFmWfF4kHJjTG18LhB.
!
transceiver qsfp default-mode 4x10G
!
service routing protocols model multi-agent
!
logging monitor debugging
!
hostname L1
ip host H1 172.16.0.7
ip host H2 172.16.0.8
ip host H3 172.16.1.9
ip host H4 172.16.1.10
ip host L2 10.0.0.2 10.1.0.9 10.1.0.13
ip host L3 10.0.0.3 10.1.0.17 10.1.0.21
ip host L4 10.0.0.4 10.1.0.25 10.1.0.29
ip host S1 10.0.0.5 10.1.0.2 10.1.0.10 10.1.0.18 10.1.0.26
ip host S2 10.0.0.6 10.1.0.6 10.1.0.14 10.1.0.22 10.1.0.30
!
spanning-tree mode mstp
!
system l1
unsupported speed action error
unsupported error-correction action error
!
vlan 1000
name orange
!
vrf instance management
!
management api http-commands
no shutdown
!
vrf management
no shutdown
!
management api gnmi
transport grpc default
vrf management
!
management api netconf
transport ssh default
vrf management
!
interface Ethernet1
description L1 -> S1
mac-address 52:dc:ca:fe:01:01
no switchport
ip address 10.1.0.1/30
ip ospf network point-to-point
ip ospf area 0.0.0.0
!
interface Ethernet2
description L1 -> S2
mac-address 52:dc:ca:fe:01:02
no switchport
ip address 10.1.0.5/30
ip ospf network point-to-point
ip ospf area 0.0.0.0
!
interface Ethernet3
mac-address 52:dc:ca:fe:01:03
switchport access vlan 1000
!
interface Loopback0
ip address 10.0.0.1/32
ip ospf area 0.0.0.0
!
interface Management0
vrf management
ip address 192.168.121.101/24
no lldp transmit
no lldp receive
!
interface Vlan1000
description VLAN orange (1000) -> [H1,H2,L3]
!
interface Vxlan1
vxlan source-interface Loopback0
vxlan udp-port 4789
vxlan vlan 1000 vni 101000
!
ip routing
no ip routing vrf management
!
ip route vrf management 0.0.0.0/0 192.168.121.1
!
route-map next-hop-self-ipv4 permit 10
match route-type external
set ip next-hop peer-address
!
route-map next-hop-self-ipv4 permit 20
!
router bgp 65000
router-id 10.0.0.1
no bgp default ipv4-unicast
bgp advertise-inactive
neighbor 10.0.0.2 remote-as 65000
neighbor 10.0.0.2 update-source Loopback0
neighbor 10.0.0.2 description L2
neighbor 10.0.0.2 send-community standard extended large
neighbor 10.0.0.3 remote-as 65000
neighbor 10.0.0.3 update-source Loopback0
neighbor 10.0.0.3 description L3
neighbor 10.0.0.3 send-community standard extended large
neighbor 10.0.0.4 remote-as 65000
neighbor 10.0.0.4 update-source Loopback0
neighbor 10.0.0.4 description L4
neighbor 10.0.0.4 send-community standard extended large
!
vlan 1000
rd 10.0.0.1:1000
route-target import 65000:1000
route-target export 65000:1000
redistribute learned
!
address-family evpn
neighbor 10.0.0.2 activate
neighbor 10.0.0.3 activate
neighbor 10.0.0.4 activate
!
address-family ipv4
network 10.0.0.1/32
!
router ospf 1
router-id 10.0.0.1
interface unnumbered hello mask tx 0.0.0.0
max-lsa 12000
timers spf delay initial 100 200 500
timers lsa rx min interval 100
timers lsa tx delay initial 100 200 500
!
end
138 changes: 138 additions & 0 deletions EVPN/ibgp-full-mesh/config/L2.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,138 @@
! Command: show running-config
! device: L2 (cEOSLab, EOS-4.32.0F-36401836.4320F (engineering build))
!
no aaa root
!
username admin privilege 15 role network-admin secret sha512 $6$8PgllOUVxgeQsFIR$Uiv4.rM08pAzaa5aGvKmC5/rkiSqJKj8XP4xLLGXigYEQzJVDf1Z4xE2qEaoqUfe9kiIEd5tEDFppFMENrJPF0
!
transceiver qsfp default-mode 4x10G
!
service routing protocols model multi-agent
!
logging monitor debugging
!
hostname L2
ip host H1 172.16.0.7
ip host H2 172.16.0.8
ip host H3 172.16.1.9
ip host H4 172.16.1.10
ip host L1 10.0.0.1 10.1.0.1 10.1.0.5
ip host L3 10.0.0.3 10.1.0.17 10.1.0.21
ip host L4 10.0.0.4 10.1.0.25 10.1.0.29
ip host S1 10.0.0.5 10.1.0.2 10.1.0.10 10.1.0.18 10.1.0.26
ip host S2 10.0.0.6 10.1.0.6 10.1.0.14 10.1.0.22 10.1.0.30
!
spanning-tree mode mstp
!
system l1
unsupported speed action error
unsupported error-correction action error
!
vlan 1001
name blue
!
vrf instance management
!
management api http-commands
no shutdown
!
vrf management
no shutdown
!
management api gnmi
transport grpc default
vrf management
!
management api netconf
transport ssh default
vrf management
!
interface Ethernet1
description L2 -> S1
mac-address 52:dc:ca:fe:02:01
no switchport
ip address 10.1.0.9/30
ip ospf network point-to-point
ip ospf area 0.0.0.0
!
interface Ethernet2
description L2 -> S2
mac-address 52:dc:ca:fe:02:02
no switchport
ip address 10.1.0.13/30
ip ospf network point-to-point
ip ospf area 0.0.0.0
!
interface Ethernet3
mac-address 52:dc:ca:fe:02:03
switchport access vlan 1001
!
interface Loopback0
ip address 10.0.0.2/32
ip ospf area 0.0.0.0
!
interface Management0
vrf management
ip address 192.168.121.102/24
no lldp transmit
no lldp receive
!
interface Vlan1001
description VLAN blue (1001) -> [H3,H4,L4]
!
interface Vxlan1
vxlan source-interface Loopback0
vxlan udp-port 4789
vxlan vlan 1001 vni 101001
!
ip routing
no ip routing vrf management
!
ip route vrf management 0.0.0.0/0 192.168.121.1
!
route-map next-hop-self-ipv4 permit 10
match route-type external
set ip next-hop peer-address
!
route-map next-hop-self-ipv4 permit 20
!
router bgp 65000
router-id 10.0.0.2
no bgp default ipv4-unicast
bgp advertise-inactive
neighbor 10.0.0.1 remote-as 65000
neighbor 10.0.0.1 update-source Loopback0
neighbor 10.0.0.1 description L1
neighbor 10.0.0.1 send-community standard extended large
neighbor 10.0.0.3 remote-as 65000
neighbor 10.0.0.3 update-source Loopback0
neighbor 10.0.0.3 description L3
neighbor 10.0.0.3 send-community standard extended large
neighbor 10.0.0.4 remote-as 65000
neighbor 10.0.0.4 update-source Loopback0
neighbor 10.0.0.4 description L4
neighbor 10.0.0.4 send-community standard extended large
!
vlan 1001
rd 10.0.0.2:1001
route-target import 65000:1001
route-target export 65000:1001
redistribute learned
!
address-family evpn
neighbor 10.0.0.1 activate
neighbor 10.0.0.3 activate
neighbor 10.0.0.4 activate
!
address-family ipv4
network 10.0.0.2/32
!
router ospf 1
router-id 10.0.0.2
interface unnumbered hello mask tx 0.0.0.0
max-lsa 12000
timers spf delay initial 100 200 500
timers lsa rx min interval 100
timers lsa tx delay initial 100 200 500
!
end
Loading

0 comments on commit 4ae42e3

Please sign in to comment.