Skip to content

Commit

Permalink
Fix(eos_designs): Explicitly extend SVI or L2VLAN to remote EVPN doma…
Browse files Browse the repository at this point in the history
…ins (#4736)

Co-authored-by: Claus Holbech <[email protected]>
  • Loading branch information
carlbuchmann and ClausHolbechArista authored Nov 19, 2024
1 parent 6108263 commit 71a101e
Show file tree
Hide file tree
Showing 17 changed files with 1,026 additions and 30 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,336 @@
!
no enable password
no aaa root
!
vlan internal order ascending range 1006 1199
!
transceiver qsfp default-mode 4x10G
!
service routing protocols model multi-agent
!
hostname evpn_l2_multi_domain
!
vlan 110
name L2_MULTI_DOMAIN_NEUTRAL
!
vlan 111
name L2_MULTI_DOMAIN_ENABLED
!
vlan 150
name L2_MULTI_DOMAIN_NEUTRAL
!
vlan 160
name L2_MULTI_DOMAIN_NEUTRAL
!
vlan 170
name L2_MULTI_DOMAIN_DISABLED
!
vlan 180
name L2_MULTI_DOMAIN_NEUTRAL
!
vlan 190
name L2_MULTI_DOMAIN_ENABLED
!
vlan 210
name L2_MULTI_DOMAIN_NEUTRAL
!
vlan 211
name L2_MULTI_DOMAIN_DISABLED
!
vlan 250
name L2_MULTI_DOMAIN_NEUTRAL
!
vlan 260
name L2_MULTI_DOMAIN_NEUTRAL
!
vlan 270
name L2_MULTI_DOMAIN_ENABLED
!
vlan 280
name L2_MULTI_DOMAIN_NEUTRAL
!
vlan 290
name L2_MULTI_DOMAIN_DISABLED
!
vrf instance L2_MULTI_DOMAIN_DISBLED
!
vrf instance L2_MULTI_DOMAIN_ENABLED
!
vrf instance L2_MULTI_DOMAIN_NEUTRAL_1
!
vrf instance L2_MULTI_DOMAIN_NEUTRAL_2
!
vrf instance MGMT
!
management api http-commands
protocol https
no shutdown
!
vrf MGMT
no shutdown
!
interface Loopback0
description ROUTER_ID
no shutdown
ip address 192.168.255.1/32
!
interface Loopback1
description VXLAN_TUNNEL_SOURCE
no shutdown
ip address 192.168.254.1/32
!
interface Management1
description OOB_MANAGEMENT
no shutdown
vrf MGMT
ip address 192.168.100.101/24
!
interface Vlan110
description L2_MULTI_DOMAIN_NEUTRAL
no shutdown
vrf L2_MULTI_DOMAIN_NEUTRAL_1
ip address virtual 10.1.10.1/24
!
interface Vlan111
description L2_MULTI_DOMAIN_ENABLED
no shutdown
vrf L2_MULTI_DOMAIN_NEUTRAL_1
ip address virtual 10.1.11.1/24
!
interface Vlan150
description L2_MULTI_DOMAIN_NEUTRAL
no shutdown
vrf L2_MULTI_DOMAIN_ENABLED
ip address virtual 10.1.50.1/24
!
interface Vlan160
description L2_MULTI_DOMAIN_NEUTRAL
no shutdown
vrf L2_MULTI_DOMAIN_ENABLED
ip address virtual 10.1.60.1/24
!
interface Vlan170
description L2_MULTI_DOMAIN_DISABLED
no shutdown
vrf L2_MULTI_DOMAIN_ENABLED
ip address virtual 10.1.70.1/24
!
interface Vlan210
description L2_MULTI_DOMAIN_NEUTRAL
no shutdown
vrf L2_MULTI_DOMAIN_NEUTRAL_2
ip address virtual 10.2.10.1/24
!
interface Vlan211
description L2_MULTI_DOMAIN_DISABLED
no shutdown
vrf L2_MULTI_DOMAIN_NEUTRAL_2
ip address virtual 10.2.11.1/24
!
interface Vlan250
description L2_MULTI_DOMAIN_NEUTRAL
no shutdown
vrf L2_MULTI_DOMAIN_DISBLED
ip address virtual 10.2.50.1/24
!
interface Vlan260
description L2_MULTI_DOMAIN_NEUTRAL
no shutdown
vrf L2_MULTI_DOMAIN_DISBLED
ip address virtual 10.2.60.1/24
!
interface Vlan270
description L2_MULTI_DOMAIN_ENABLED
no shutdown
vrf L2_MULTI_DOMAIN_DISBLED
ip address virtual 10.2.70.1/24
!
interface Vxlan1
description evpn_l2_multi_domain_VTEP
vxlan source-interface Loopback1
vxlan udp-port 4789
vxlan vlan 110 vni 10110
vxlan vlan 111 vni 10111
vxlan vlan 150 vni 10150
vxlan vlan 160 vni 10160
vxlan vlan 170 vni 10170
vxlan vlan 180 vni 10180
vxlan vlan 190 vni 10190
vxlan vlan 210 vni 20210
vxlan vlan 211 vni 20211
vxlan vlan 250 vni 20250
vxlan vlan 260 vni 20260
vxlan vlan 270 vni 20270
vxlan vlan 280 vni 20280
vxlan vlan 290 vni 20290
vxlan vrf L2_MULTI_DOMAIN_DISBLED vni 21
vxlan vrf L2_MULTI_DOMAIN_ENABLED vni 11
vxlan vrf L2_MULTI_DOMAIN_NEUTRAL_1 vni 10
vxlan vrf L2_MULTI_DOMAIN_NEUTRAL_2 vni 20
!
ip virtual-router mac-address 00:dc:00:00:00:0a
!
ip routing
ip routing vrf L2_MULTI_DOMAIN_DISBLED
ip routing vrf L2_MULTI_DOMAIN_ENABLED
ip routing vrf L2_MULTI_DOMAIN_NEUTRAL_1
ip routing vrf L2_MULTI_DOMAIN_NEUTRAL_2
no ip routing vrf MGMT
!
ip prefix-list PL-LOOPBACKS-EVPN-OVERLAY
seq 10 permit 192.168.255.0/24 eq 32
seq 20 permit 192.168.254.0/24 eq 32
!
route-map RM-CONN-2-BGP permit 10
match ip address prefix-list PL-LOOPBACKS-EVPN-OVERLAY
!
router bfd
multihop interval 300 min-rx 300 multiplier 3
!
router bgp 65001
router-id 192.168.255.1
no bgp default ipv4-unicast
maximum-paths 4 ecmp 4
neighbor EVPN-OVERLAY-CORE peer group
neighbor EVPN-OVERLAY-CORE update-source Loopback0
neighbor EVPN-OVERLAY-CORE bfd
neighbor EVPN-OVERLAY-CORE ebgp-multihop 15
neighbor EVPN-OVERLAY-CORE send-community
neighbor EVPN-OVERLAY-CORE maximum-routes 0
neighbor EVPN-OVERLAY-PEERS peer group
neighbor EVPN-OVERLAY-PEERS update-source Loopback0
neighbor EVPN-OVERLAY-PEERS bfd
neighbor EVPN-OVERLAY-PEERS ebgp-multihop 3
neighbor EVPN-OVERLAY-PEERS send-community
neighbor EVPN-OVERLAY-PEERS maximum-routes 0
neighbor IPv4-UNDERLAY-PEERS peer group
neighbor IPv4-UNDERLAY-PEERS send-community
neighbor IPv4-UNDERLAY-PEERS maximum-routes 12000
neighbor 192.168.100.10 peer group EVPN-OVERLAY-CORE
neighbor 192.168.100.10 remote-as 65002
neighbor 192.168.100.10 description DCI_TEST
redistribute connected route-map RM-CONN-2-BGP
!
vlan 110
rd 192.168.255.1:10110
route-target both 10110:10110
redistribute learned
!
vlan 111
rd 192.168.255.1:10111
rd evpn domain remote 192.168.255.1:10111
route-target both 10111:10111
route-target import export evpn domain remote 10111:10111
redistribute learned
!
vlan 150
rd 192.168.255.1:10150
rd evpn domain remote 192.168.255.1:10150
route-target both 10150:10150
route-target import export evpn domain remote 10150:10150
redistribute learned
!
vlan 160
rd 192.168.255.1:10160
rd evpn domain remote 192.168.255.1:10160
route-target both 10160:10160
route-target import export evpn domain remote 10160:10160
redistribute learned
!
vlan 170
rd 192.168.255.1:10170
route-target both 10170:10170
redistribute learned
!
vlan 180
rd 192.168.255.1:10180
route-target both 10180:10180
redistribute learned
!
vlan 190
rd 192.168.255.1:10190
rd evpn domain remote 192.168.255.1:10190
route-target both 10190:10190
route-target import export evpn domain remote 10190:10190
redistribute learned
!
vlan 210
rd 192.168.255.1:20210
rd evpn domain remote 192.168.255.1:20210
route-target both 20210:20210
route-target import export evpn domain remote 20210:20210
redistribute learned
!
vlan 211
rd 192.168.255.1:20211
route-target both 20211:20211
redistribute learned
!
vlan 250
rd 192.168.255.1:20250
route-target both 20250:20250
redistribute learned
!
vlan 260
rd 192.168.255.1:20260
route-target both 20260:20260
redistribute learned
!
vlan 270
rd 192.168.255.1:20270
rd evpn domain remote 192.168.255.1:20270
route-target both 20270:20270
route-target import export evpn domain remote 20270:20270
redistribute learned
!
vlan 280
rd 192.168.255.1:20280
rd evpn domain remote 192.168.255.1:20280
route-target both 20280:20280
route-target import export evpn domain remote 20280:20280
redistribute learned
!
vlan 290
rd 192.168.255.1:20290
route-target both 20290:20290
redistribute learned
!
address-family evpn
neighbor EVPN-OVERLAY-CORE activate
neighbor EVPN-OVERLAY-CORE domain remote
neighbor EVPN-OVERLAY-PEERS activate
!
address-family ipv4
no neighbor EVPN-OVERLAY-CORE activate
no neighbor EVPN-OVERLAY-PEERS activate
neighbor IPv4-UNDERLAY-PEERS activate
!
vrf L2_MULTI_DOMAIN_DISBLED
rd 192.168.255.1:21
route-target import evpn 21:21
route-target export evpn 21:21
router-id 192.168.255.1
redistribute connected
!
vrf L2_MULTI_DOMAIN_ENABLED
rd 192.168.255.1:11
route-target import evpn 11:11
route-target export evpn 11:11
router-id 192.168.255.1
redistribute connected
!
vrf L2_MULTI_DOMAIN_NEUTRAL_1
rd 192.168.255.1:10
route-target import evpn 10:10
route-target export evpn 10:10
router-id 192.168.255.1
redistribute connected
!
vrf L2_MULTI_DOMAIN_NEUTRAL_2
rd 192.168.255.1:20
route-target import evpn 20:20
route-target export evpn 20:20
router-id 192.168.255.1
redistribute connected
!
end
Loading

0 comments on commit 71a101e

Please sign in to comment.