Files
arista-evpn-vxlan-clab/configs/spine2.cfg
Damien Arnodo 62efe9fc93 Apply critical fix: Add ip routing command to spine2
This enables BGP and IP forwarding on spine switches. Without this command,
BGP sessions cannot be established and routing is disabled. This is essential
for the underlay fabric to function properly.
2025-11-28 09:27:19 +00:00

134 lines
3.2 KiB
INI

! Spine2 Configuration
! BGP EVPN Spine - AS 65000
!
hostname spine2
!
! admin/admin for ssh access
username admin privilege 15 role network-admin secret sha512 $6$xQktFrbdeqEhVzLM$.1wOJB25nw2fqYaSXDu6y4mo6AP9lhngMCFe2vGDl84hWoz00Q.4unoEBqspNI0HEoRz.OZhdBHqQv12KABf0B0
!
! Enable IP routing - CRITICAL for BGP to work
ip routing
!
! Enable routing protocols
service routing protocols model multi-agent
!
! Management interface
interface Management1
vrf mgmt
ip address 172.16.0.2/24
!
! Loopback for BGP Router-ID
interface Loopback0
ip address 10.0.250.2/32
!
! Underlay P2P interfaces to Leafs
interface Ethernet1
description leaf1
no switchport
ip address 10.0.2.0/31
mtu 9214
!
interface Ethernet2
description leaf2
no switchport
ip address 10.0.2.2/31
mtu 9214
!
interface Ethernet3
description leaf3
no switchport
ip address 10.0.2.4/31
mtu 9214
!
interface Ethernet4
description leaf4
no switchport
ip address 10.0.2.6/31
mtu 9214
!
interface Ethernet5
description leaf5
no switchport
ip address 10.0.2.8/31
mtu 9214
!
interface Ethernet6
description leaf6
no switchport
ip address 10.0.2.10/31
mtu 9214
!
interface Ethernet7
description leaf7
no switchport
ip address 10.0.2.12/31
mtu 9214
!
interface Ethernet8
description leaf8
no switchport
ip address 10.0.2.14/31
mtu 9214
!
! BGP Configuration
router bgp 65000
router-id 10.0.250.2
no bgp default ipv4-unicast
bgp log-neighbor-changes
distance bgp 20 200 200
maximum-paths 4 ecmp 64
!
! Underlay IPv4 neighbors
neighbor 10.0.2.1 remote-as 65001
neighbor 10.0.2.3 remote-as 65001
neighbor 10.0.2.5 remote-as 65002
neighbor 10.0.2.7 remote-as 65002
neighbor 10.0.2.9 remote-as 65003
neighbor 10.0.2.11 remote-as 65003
neighbor 10.0.2.13 remote-as 65004
neighbor 10.0.2.15 remote-as 65004
!
! EVPN peer-group configuration
neighbor evpn peer group
neighbor evpn next-hop-unchanged
neighbor evpn update-source Loopback0
neighbor evpn ebgp-multihop 3
neighbor evpn send-community extended
neighbor evpn maximum-routes 12000 warning-only
!
! EVPN neighbors (to leaf loopbacks)
neighbor 10.0.250.11 peer group evpn
neighbor 10.0.250.11 remote-as 65001
neighbor 10.0.250.12 peer group evpn
neighbor 10.0.250.12 remote-as 65001
neighbor 10.0.250.13 peer group evpn
neighbor 10.0.250.13 remote-as 65002
neighbor 10.0.250.14 peer group evpn
neighbor 10.0.250.14 remote-as 65002
neighbor 10.0.250.15 peer group evpn
neighbor 10.0.250.15 remote-as 65003
neighbor 10.0.250.16 peer group evpn
neighbor 10.0.250.16 remote-as 65003
neighbor 10.0.250.17 peer group evpn
neighbor 10.0.250.17 remote-as 65004
neighbor 10.0.250.18 peer group evpn
neighbor 10.0.250.18 remote-as 65004
!
! IPv4 address family
address-family ipv4
neighbor 10.0.2.1 activate
neighbor 10.0.2.3 activate
neighbor 10.0.2.5 activate
neighbor 10.0.2.7 activate
neighbor 10.0.2.9 activate
neighbor 10.0.2.11 activate
neighbor 10.0.2.13 activate
neighbor 10.0.2.15 activate
network 10.0.250.2/32
!
! EVPN address family
address-family evpn
neighbor evpn activate
!
end