Update campus host attachment pattern to single-attached access
This commit is contained in:
@@ -267,33 +267,19 @@ topology:
|
||||
mgmt-ipv4: 172.16.0.62
|
||||
startup-config: configs/campus-access2.cfg
|
||||
|
||||
# Campus Hosts - dual-homed with LACP bonding
|
||||
# Campus Hosts - single-attached to access switch (enterprise user endpoint pattern)
|
||||
campus-host1:
|
||||
kind: linux
|
||||
mgmt-ipv4: 172.16.0.105
|
||||
image: ghcr.io/hellt/network-multitool
|
||||
cap-add:
|
||||
- NET_ADMIN
|
||||
binds:
|
||||
- hosts/campus-host1_interfaces:/etc/network/interfaces
|
||||
exec:
|
||||
- ip link add bond0 type bond mode 802.3ad
|
||||
- ip link set dev bond0 type bond xmit_hash_policy layer3+4
|
||||
- ip link set dev eth1 down
|
||||
- ip link set dev eth2 down
|
||||
- ip link set eth1 master bond0
|
||||
- ip link set eth2 master bond0
|
||||
- ip link set dev eth1 up
|
||||
- ip link set dev eth2 up
|
||||
- ip link set dev bond0 type bond lacp_rate fast
|
||||
- ip link set dev bond0 up
|
||||
- ip link add link bond0 name bond0.50 type vlan id 50
|
||||
- ip link set bond0.50 up
|
||||
- ip addr add 10.50.50.101/24 dev bond0.50
|
||||
- ip link add link bond0 name bond0.60 type vlan id 60
|
||||
- ip link set bond0.60 up
|
||||
- ip addr add 10.60.60.101/24 dev bond0.60
|
||||
- ip route add 10.60.70.0/24 via 10.60.60.1
|
||||
- ip route add 10.34.34.0/24 via 10.60.60.1
|
||||
- ip route add 10.78.78.0/24 via 10.60.60.1
|
||||
- ip addr add 10.60.60.101/24 dev eth1
|
||||
- ip route add default via 10.60.60.1
|
||||
|
||||
campus-host2:
|
||||
kind: linux
|
||||
@@ -301,26 +287,12 @@ topology:
|
||||
image: ghcr.io/hellt/network-multitool
|
||||
cap-add:
|
||||
- NET_ADMIN
|
||||
binds:
|
||||
- hosts/campus-host2_interfaces:/etc/network/interfaces
|
||||
exec:
|
||||
- ip link add bond0 type bond mode 802.3ad
|
||||
- ip link set dev bond0 type bond xmit_hash_policy layer3+4
|
||||
- ip link set dev eth1 down
|
||||
- ip link set dev eth2 down
|
||||
- ip link set eth1 master bond0
|
||||
- ip link set eth2 master bond0
|
||||
- ip link set dev eth1 up
|
||||
- ip link set dev eth2 up
|
||||
- ip link set dev bond0 type bond lacp_rate fast
|
||||
- ip link set dev bond0 up
|
||||
- ip link add link bond0 name bond0.50 type vlan id 50
|
||||
- ip link set bond0.50 up
|
||||
- ip addr add 10.50.50.102/24 dev bond0.50
|
||||
- ip link add link bond0 name bond0.70 type vlan id 70
|
||||
- ip link set bond0.70 up
|
||||
- ip addr add 10.60.70.102/24 dev bond0.70
|
||||
- ip route add 10.60.60.0/24 via 10.60.70.1
|
||||
- ip route add 10.34.34.0/24 via 10.60.70.1
|
||||
- ip route add 10.78.78.0/24 via 10.60.70.1
|
||||
- ip addr add 10.60.70.102/24 dev eth1
|
||||
- ip route add default via 10.60.70.1
|
||||
|
||||
links:
|
||||
# =====================================================
|
||||
@@ -428,8 +400,6 @@ topology:
|
||||
- endpoints: ["campus-leaf3:eth1", "campus-access2:eth1"]
|
||||
- endpoints: ["campus-leaf4:eth1", "campus-access2:eth2"]
|
||||
|
||||
# Campus Host connections to access switches (dual-homed via LACP)
|
||||
# Campus Host connections to access switches (single link, enterprise user endpoint)
|
||||
- endpoints: ["campus-access1:eth3", "campus-host1:eth1"]
|
||||
- endpoints: ["campus-access1:eth4", "campus-host1:eth2"]
|
||||
- endpoints: ["campus-access2:eth3", "campus-host2:eth1"]
|
||||
- endpoints: ["campus-access2:eth4", "campus-host2:eth2"]
|
||||
|
||||
Reference in New Issue
Block a user