Enhance DC1 and DC2 topology configuration by adding access layer switches and host connections

- Updated comments for clarity on leaf and border leaf layers
- Added access layer switches for both DC1 and DC2 with management IPs
- Established connections between access switches and their respective leaf switches
- Defined host devices for both DC1 and DC2, connected to local access switches
- Removed redundant host connection definitions and streamlined link configurations
This commit is contained in:
2025-11-12 08:06:03 +00:00
parent eb3ba8f647
commit 61a792df52
2 changed files with 378 additions and 283 deletions

View File

@@ -29,7 +29,7 @@ topology:
# startup-config: configs/spine3-DC1.cfg
# ==========================================
# DC1 - LEAF LAYER
# DC1 - LEAF LAYER (Aggregation/Distribution)
# ==========================================
leaf1-DC1:
kind: arista_ceos
@@ -52,7 +52,7 @@ topology:
# startup-config: configs/leaf4-DC1.cfg
# ==========================================
# DC1 - BORDER LEAF LAYER
# DC1 - BORDER LEAF LAYER (DCI Gateway)
# ==========================================
borderleaf1-DC1:
kind: arista_ceos
@@ -64,6 +64,20 @@ topology:
mgmt-ipv4: 10.255.0.32
# startup-config: configs/borderleaf2-DC1.cfg
# ==========================================
# DC1 - ACCESS LAYER (Rack/Bay Switches)
# Each bay/rack gets 1 access switch
# ==========================================
access1-DC1:
kind: arista_ceos
mgmt-ipv4: 10.255.0.71
# startup-config: configs/access1-DC1.cfg
access2-DC1:
kind: arista_ceos
mgmt-ipv4: 10.255.0.72
# startup-config: configs/access2-DC1.cfg
# ==========================================
# DC2 - SPINE LAYER
# ==========================================
@@ -83,7 +97,7 @@ topology:
# startup-config: configs/spine3-DC2.cfg
# ==========================================
# DC2 - LEAF LAYER
# DC2 - LEAF LAYER (Aggregation/Distribution)
# ==========================================
leaf1-DC2:
kind: arista_ceos
@@ -106,7 +120,7 @@ topology:
# startup-config: configs/leaf4-DC2.cfg
# ==========================================
# DC2 - BORDER LEAF LAYER
# DC2 - BORDER LEAF LAYER (DCI Gateway)
# ==========================================
borderleaf1-DC2:
kind: arista_ceos
@@ -118,6 +132,20 @@ topology:
mgmt-ipv4: 10.255.0.62
# startup-config: configs/borderleaf2-DC2.cfg
# ==========================================
# DC2 - ACCESS LAYER (Rack/Bay Switches)
# Each bay/rack gets 1 access switch
# ==========================================
access1-DC2:
kind: arista_ceos
mgmt-ipv4: 10.255.0.81
# startup-config: configs/access1-DC2.cfg
access2-DC2:
kind: arista_ceos
mgmt-ipv4: 10.255.0.82
# startup-config: configs/access2-DC2.cfg
# ==========================================
# DCI SWITCH (Data Center Interconnect)
# ==========================================
@@ -127,68 +155,36 @@ topology:
# startup-config: configs/DCI.cfg
# ==========================================
# HOST DEVICES
# Using Linux containers as hosts
# HOST DEVICES - DC1
# Connected to access switches (1 per rack/bay)
# ==========================================
host1-DC1:
kind: linux
mgmt-ipv4: 10.255.0.201
image: alpine:latest
exec:
- ip link add bond0 type bond mode 802.3ad
- ip link set eth1 down
- ip link set eth2 down
- ip link set eth1 master bond0
- ip link set eth2 master bond0
- ip link set bond0 up
- ip link set eth1 up
- ip link set eth2 up
host2-DC1:
kind: linux
mgmt-ipv4: 10.255.0.202
image: alpine:latest
exec:
- ip link add bond0 type bond mode 802.3ad
- ip link set eth1 down
- ip link set eth2 down
- ip link set eth1 master bond0
- ip link set eth2 master bond0
- ip link set bond0 up
- ip link set eth1 up
- ip link set eth2 up
# ==========================================
# HOST DEVICES - DC2
# Connected to access switches (1 per rack/bay)
# ==========================================
host1-DC2:
kind: linux
mgmt-ipv4: 10.255.0.211
image: alpine:latest
exec:
- ip link add bond0 type bond mode 802.3ad
- ip link set eth1 down
- ip link set eth2 down
- ip link set eth1 master bond0
- ip link set eth2 master bond0
- ip link set bond0 up
- ip link set eth1 up
- ip link set eth2 up
host2-DC2:
kind: linux
mgmt-ipv4: 10.255.0.212
image: alpine:latest
exec:
- ip link add bond0 type bond mode 802.3ad
- ip link set eth1 down
- ip link set eth2 down
- ip link set eth1 master bond0
- ip link set eth2 master bond0
- ip link set bond0 up
- ip link set eth1 up
- ip link set eth2 up
links:
# ==========================================
# DC1 - SPINE to LEAF Connections
# DC1 - SPINE to LEAF Connections (Underlay)
# ==========================================
# Spine1-DC1 to leafs
@@ -216,7 +212,7 @@ topology:
- endpoints: ["spine3-DC1:eth7", "borderleaf2-DC1:eth5"]
# ==========================================
# DC1 - MLAG Peer Links
# DC1 - MLAG Peer Links (Leaf Layer)
# ==========================================
- endpoints: ["leaf1-DC1:eth1", "leaf2-DC1:eth1"]
- endpoints: ["leaf1-DC1:eth2", "leaf2-DC1:eth2"]
@@ -228,7 +224,27 @@ topology:
- endpoints: ["borderleaf1-DC1:eth2", "borderleaf2-DC1:eth2"]
# ==========================================
# DC2 - SPINE to LEAF Connections
# DC1 - LEAF to ACCESS Connections
# Access switches dual-homed to MLAG leaf pairs
# ==========================================
# access1-DC1 connects to leaf1-DC1 and leaf2-DC1 (MLAG)
- endpoints: ["leaf1-DC1:eth7", "access1-DC1:eth1"]
- endpoints: ["leaf2-DC1:eth7", "access1-DC1:eth2"]
# access2-DC1 connects to leaf3-DC1 and leaf4-DC1 (MLAG)
- endpoints: ["leaf3-DC1:eth7", "access2-DC1:eth1"]
- endpoints: ["leaf4-DC1:eth7", "access2-DC1:eth2"]
# ==========================================
# DC1 - ACCESS to HOST Connections
# Hosts connect to their local access switch
# ==========================================
- endpoints: ["access1-DC1:eth10", "host1-DC1:eth1"]
- endpoints: ["access2-DC1:eth10", "host2-DC1:eth1"]
# ==========================================
# DC2 - SPINE to LEAF Connections (Underlay)
# ==========================================
# Spine1-DC2 to leafs
@@ -256,7 +272,7 @@ topology:
- endpoints: ["spine3-DC2:eth7", "borderleaf2-DC2:eth5"]
# ==========================================
# DC2 - MLAG Peer Links
# DC2 - MLAG Peer Links (Leaf Layer)
# ==========================================
- endpoints: ["leaf1-DC2:eth1", "leaf2-DC2:eth1"]
- endpoints: ["leaf1-DC2:eth2", "leaf2-DC2:eth2"]
@@ -267,30 +283,30 @@ topology:
- endpoints: ["borderleaf1-DC2:eth1", "borderleaf2-DC2:eth1"]
- endpoints: ["borderleaf1-DC2:eth2", "borderleaf2-DC2:eth2"]
# ==========================================
# DC2 - LEAF to ACCESS Connections
# Access switches dual-homed to MLAG leaf pairs
# ==========================================
# access1-DC2 connects to leaf1-DC2 and leaf2-DC2 (MLAG)
- endpoints: ["leaf1-DC2:eth7", "access1-DC2:eth1"]
- endpoints: ["leaf2-DC2:eth7", "access1-DC2:eth2"]
# access2-DC2 connects to leaf3-DC2 and leaf4-DC2 (MLAG)
- endpoints: ["leaf3-DC2:eth7", "access2-DC2:eth1"]
- endpoints: ["leaf4-DC2:eth7", "access2-DC2:eth2"]
# ==========================================
# DC2 - ACCESS to HOST Connections
# Hosts connect to their local access switch
# ==========================================
- endpoints: ["access1-DC2:eth10", "host1-DC2:eth1"]
- endpoints: ["access2-DC2:eth10", "host2-DC2:eth1"]
# ==========================================
# DCI Links (Border Leaf to DCI)
# ==========================================
- endpoints: ["borderleaf1-DC1:eth12", "DCI:eth1"]
- endpoints: ["borderleaf2-DC1:eth12", "DCI:eth2"]
- endpoints: ["borderleaf1-DC2:eth12", "DCI:eth3"]
- endpoints: ["borderleaf2-DC2:eth12", "DCI:eth4"]
# ==========================================
# Host Connections (MLAG dual-homed)
# ==========================================
# Host1-DC1 to leaf1-DC1 and leaf2-DC1
- endpoints: ["leaf1-DC1:eth7", "host1-DC1:eth1"]
- endpoints: ["leaf2-DC1:eth7", "host1-DC1:eth2"]
# Host2-DC1 to leaf3-DC1 and leaf4-DC1
- endpoints: ["leaf3-DC1:eth7", "host2-DC1:eth1"]
- endpoints: ["leaf4-DC1:eth7", "host2-DC1:eth2"]
# Host1-DC2 to leaf1-DC2 and leaf2-DC2
- endpoints: ["leaf1-DC2:eth7", "host1-DC2:eth1"]
- endpoints: ["leaf2-DC2:eth7", "host1-DC2:eth2"]
# Host2-DC2 to leaf3-DC2 and leaf4-DC2
- endpoints: ["leaf3-DC2:eth7", "host2-DC2:eth1"]
- endpoints: ["leaf4-DC2:eth7", "host2-DC2:eth2"]
- endpoints: ["borderleaf2-DC2:eth12", "DCI:eth4"]