Skip to content

Commit

Permalink
VXLAN leaf-and-spine fabric: add Arista EOS configurations
Browse files Browse the repository at this point in the history
  • Loading branch information
ipspace committed Mar 19, 2024
1 parent 2ea6a50 commit 9d8d3ae
Show file tree
Hide file tree
Showing 6 changed files with 588 additions and 0 deletions.
98 changes: 98 additions & 0 deletions EVPN/vxlan-fabric/config/L1.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
! Command: show running-config
! device: L1 (cEOSLab, EOS-4.31.2F-35442176.4312F (engineering build))
!
no aaa root
!
username admin privilege 15 role network-admin secret sha512 $6$QQSQtqxPuwj.4WRY$szmRfQ2d0kEaMCkmBZFKgzmO3qRMCRYkDo9ACM4mEz6zP.Ulkct6F1nXbmt1v8YUykej0vhzDdPsdtPBSlkMZ1
!
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
vxlan vlan 1000 flood vtep 10.0.0.3
!
ip routing
no ip routing vrf management
!
ip route vrf management 0.0.0.0/0 192.168.121.1
!
router ospf 1
router-id 10.0.0.1
max-lsa 12000
!
end
98 changes: 98 additions & 0 deletions EVPN/vxlan-fabric/config/L2.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
! Command: show running-config
! device: L2 (cEOSLab, EOS-4.31.2F-35442176.4312F (engineering build))
!
no aaa root
!
username admin privilege 15 role network-admin secret sha512 $6$4IQTr0SMP/Vw0FPE$Ap31okcRqSxEzUdZeMTMBcEQAVfHx6T3CwZIQ484WBCjGrYKGhi2qP0vxYcDAuHmeUJl3lMhWO0AJhBb63lbD/
!
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
vxlan vlan 1001 flood vtep 10.0.0.4
!
ip routing
no ip routing vrf management
!
ip route vrf management 0.0.0.0/0 192.168.121.1
!
router ospf 1
router-id 10.0.0.2
max-lsa 12000
!
end
98 changes: 98 additions & 0 deletions EVPN/vxlan-fabric/config/L3.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
! Command: show running-config
! device: L3 (cEOSLab, EOS-4.31.2F-35442176.4312F (engineering build))
!
no aaa root
!
username admin privilege 15 role network-admin secret sha512 $6$x6WXUa7ynFS86INv$w3j0TQpdOXCZjhn4VfoJHGergKsoF4nxxjzfcKYBd25JBHtpQ1WjwlSg5M3MsWRpeC1C8v5Kdhr9q7gFUHB1k.
!
transceiver qsfp default-mode 4x10G
!
service routing protocols model multi-agent
!
logging monitor debugging
!
hostname L3
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 L2 10.0.0.2 10.1.0.9 10.1.0.13
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 L3 -> S1
mac-address 52:dc:ca:fe:03:01
no switchport
ip address 10.1.0.17/30
ip ospf network point-to-point
ip ospf area 0.0.0.0
!
interface Ethernet2
description L3 -> S2
mac-address 52:dc:ca:fe:03:02
no switchport
ip address 10.1.0.21/30
ip ospf network point-to-point
ip ospf area 0.0.0.0
!
interface Ethernet3
mac-address 52:dc:ca:fe:03:03
switchport access vlan 1000
!
interface Loopback0
ip address 10.0.0.3/32
ip ospf area 0.0.0.0
!
interface Management0
vrf management
ip address 192.168.121.103/24
no lldp transmit
no lldp receive
!
interface Vlan1000
description VLAN orange (1000) -> [H1,L1,H2]
!
interface Vxlan1
vxlan source-interface Loopback0
vxlan udp-port 4789
vxlan vlan 1000 vni 101000
vxlan vlan 1000 flood vtep 10.0.0.1
!
ip routing
no ip routing vrf management
!
ip route vrf management 0.0.0.0/0 192.168.121.1
!
router ospf 1
router-id 10.0.0.3
max-lsa 12000
!
end
98 changes: 98 additions & 0 deletions EVPN/vxlan-fabric/config/L4.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
! Command: show running-config
! device: L4 (cEOSLab, EOS-4.31.2F-35442176.4312F (engineering build))
!
no aaa root
!
username admin privilege 15 role network-admin secret sha512 $6$r2voRwBFamtB4MXH$ECSWPIYV/MMjYbv1BWNfFqmFu22eROil2JsGlQvBuLbJbjQJTbY0yoPs2HXnvfvpYis5FdAuR8s6k4hvmP3s9/
!
transceiver qsfp default-mode 4x10G
!
service routing protocols model multi-agent
!
logging monitor debugging
!
hostname L4
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 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 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 L4 -> S1
mac-address 52:dc:ca:fe:04:01
no switchport
ip address 10.1.0.25/30
ip ospf network point-to-point
ip ospf area 0.0.0.0
!
interface Ethernet2
description L4 -> S2
mac-address 52:dc:ca:fe:04:02
no switchport
ip address 10.1.0.29/30
ip ospf network point-to-point
ip ospf area 0.0.0.0
!
interface Ethernet3
mac-address 52:dc:ca:fe:04:03
switchport access vlan 1001
!
interface Loopback0
ip address 10.0.0.4/32
ip ospf area 0.0.0.0
!
interface Management0
vrf management
ip address 192.168.121.104/24
no lldp transmit
no lldp receive
!
interface Vlan1001
description VLAN blue (1001) -> [H3,L2,H4]
!
interface Vxlan1
vxlan source-interface Loopback0
vxlan udp-port 4789
vxlan vlan 1001 vni 101001
vxlan vlan 1001 flood vtep 10.0.0.2
!
ip routing
no ip routing vrf management
!
ip route vrf management 0.0.0.0/0 192.168.121.1
!
router ospf 1
router-id 10.0.0.4
max-lsa 12000
!
end
Loading

0 comments on commit 9d8d3ae

Please sign in to comment.