Create the CAN VRF
Aruba
switch#config
switch(config)#vrf CAN
Move interfaces into CAN VRF
Aruba
Aruba Primary Config
interface vlan 7
vsx-sync active-gateways
vrf attach CAN
description CAN
ip mtu 9198
ip address 128.55.176.2/23
active-gateway ip mac 12:00:00:00:6b:00
active-gateway ip 128.55.176.1
ip ospf 2 area 0.0.0.210
Aruba Secondary Config
interface vlan 7
vsx-sync active-gateways
vrf attach CAN
description CAN
ip mtu 9198
ip address 128.55.176.3/23
active-gateway ip mac 12:00:00:00:6b:00
active-gateway ip 128.55.176.1
ip ospf 2 area 0.0.0.210
Create BGP process in CAN VRF
Aruba Config
router bgp 65533
vrf CAN
maximum-paths 8
neighbor 128.55.176.3 remote-as 65533
neighbor 128.55.176.25 remote-as 65534
neighbor 128.55.176.25 passive
neighbor 128.55.176.26 remote-as 65534
neighbor 128.55.176.26 passive
neighbor 128.55.176.27 remote-as 65534
neighbor 128.55.176.27 passive
Setup Customer Edge Router
Arista LAG Config
interface Ethernet24/1
mtu 9214
flowcontrol send on
flowcontrol receive on
speed forced 100gfull
error-correction encoding reed-solomon
channel-group 1 mode on
interface Ethernet25/1
mtu 9214
flowcontrol send on
flowcontrol receive on
speed forced 100gfull
error-correction encoding reed-solomon
channel-group 1 mode on
interface Port-Channel1
mtu 9214
switchport access vlan 2
switchport trunk native vlan 2
switchport mode trunk
VLAN 2 config
interface Vlan2
ip address 10.101.10.1/24
Example HSN IP
ncn-w001:~ # ip a show hsn0
8: hsn0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 9000 qdisc mq state UP group default qlen 1000
link/ether 02:00:00:00:00:0d brd ff:ff:ff:ff:ff:ff
inet 10.101.10.10/24 scope global hsn0
valid_lft forever preferred_lft forever
inet6 fe80::ff:fe00:d/64 scope link
valid_lft forever preferred_lft forever
Arista BGP Config
ip prefix-list HSN seq 10 permit 10.101.10.0/24 ge 24
route-map HSN permit 5
match ip address prefix-list HSN
router bgp 65534
maximum-paths 32
neighbor 10.101.10.10 remote-as 65533
neighbor 10.101.10.10 transport connection-mode passive
neighbor 10.101.10.10 route-map HSN in
neighbor 10.101.10.11 remote-as 65533
neighbor 10.101.10.11 transport connection-mode passive
neighbor 10.101.10.11 route-map HSN in
neighbor 10.101.10.12 remote-as 65533
neighbor 10.101.10.12 transport connection-mode passive
neighbor 10.101.10.12 route-map HSN in
Configure MetalLB
apiVersion: v1
data:
config: |
peers:
- peer-address: 10.252.0.2
peer-asn: 65533
my-asn: 65533
- peer-address: 10.252.0.3
peer-asn: 65533
my-asn: 65533
- peer-address: 10.101.8.2
peer-asn: 65533
my-asn: 65536
- peer-address: 10.101.8.3
peer-asn: 65533
my-asn: 65536
- peer-address: 10.101.10.1
peer-asn: 65534
my-asn: 65533
address-pools:
- name: customer-access
protocol: bgp
addresses:
- 10.101.8.128/25
- name: customer-access-static
protocol: bgp
addresses:
- 10.101.8.112/28
- name: customer-high-speed
protocol: bgp
addresses:
- 10.101.10.128/25
- name: customer-high-speed-static
protocol: bgp
addresses:
- 10.101.10.112/28
- name: hardware-management
protocol: bgp
addresses:
- 10.94.100.0/24
- name: node-management
protocol: bgp
addresses:
- 10.92.100.0/24
Verify BGP and Routes
Arista Edge Router
sw-edge01(config-router-bgp)#show ip bgp summary
BGP summary information for VRF default
Router identifier 192.168.50.50, local AS number 65534
Neighbor Status Codes: m - Under maintenance
Neighbor V AS MsgRcvd MsgSent InQ OutQ Up/Down State PfxRcd PfxAcc
10.101.10.10 4 65533 23 12 0 0 00:03:49 Estab 14 14
10.101.10.11 4 65533 25 11 0 0 00:03:49 Estab 16 16
10.101.10.12 4 65533 23 11 0 0 00:03:49 Estab 14 14
sw-edge01(config)#show ip route
B E 10.101.8.113/32 [200/0] via 10.101.10.10, Vlan2
via 10.101.10.11, Vlan2
via 10.101.10.12, Vlan2
B E 10.101.8.128/32 [200/0] via 10.101.10.10, Vlan2
via 10.101.10.11, Vlan2
via 10.101.10.12, Vlan2
B E 10.101.8.129/32 [200/0] via 10.101.10.10, Vlan2
via 10.101.10.11, Vlan2
via 10.101.10.12, Vlan2
B E 10.101.8.130/32 [200/0] via 10.101.10.10, Vlan2
via 10.101.10.11, Vlan2
via 10.101.10.12, Vlan2
O 10.101.8.0/24 [110/20] via 192.168.75.3, Ethernet1/1
via 192.168.75.1, Ethernet2/1
Example of how BGP routes would look like in the switch located in Highspeed network.
sw-spine-001 [standalone: master] # show ip bgp vrf CAN summary
VRF name : CAN
BGP router identifier : 192.168.75.1
local AS number : 65533
BGP table version : 665
Main routing table version: 665
IPV4 Prefixes : 44
IPV6 Prefixes : 0
L2VPN EVPN Prefixes : 0
------------------------------------------------------------------------------------------------------------------
Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd
------------------------------------------------------------------------------------------------------------------
10.101.8.8 4 65536 24725 27717 665 0 0 0:11:52:43 ESTABLISHED/14
10.101.8.9 4 65536 24836 27692 665 0 0 0:08:44:20 ESTABLISHED/16
10.101.8.10 4 65536 24704 27741 665 0 0 0:08:44:18 ESTABLISHED/14
Configure default routes on Workers
ip route replace default via 10.101.10.1 dev hsn0
mv /etc/sysconfig/network/ifroute-bond0.cmn0 /etc/sysconfig/network/ifroute-bond0.cmn0.old
echo “default 10.101.10.1 - -” > /etc/sysconfig/network/ifroute-hsn0
ip route
default via 10.101.10.1 dev hsn0
ping 8.8.8.8 -c 1
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_seq=1 ttl=110 time=13.6 ms
Verify External Connectivity
NCN-m001 ~ % traceroute 10.101.8.113
traceroute to 10.101.8.113 (10.101.8.113), 64 hops max, 52 byte packets
1 172.30.252.234 (172.30.252.234) 37.652 ms 37.930 ms 36.574 ms
2 10.103.255.228 (10.103.255.228) 37.684 ms 37.180 ms 36.765 ms
3 10.103.255.249 (10.103.255.249) 36.531 ms 38.350 ms 39.593 ms
4 172.30.254.219 (172.30.254.219) 38.543 ms 38.699 ms 40.811 ms
5 172.30.254.212 (172.30.254.212) 37.931 ms 37.347 ms 40.404 ms
6 172.30.254.243 (172.30.254.243) 47.029 ms 39.014 ms 38.292 ms
7 172.30.254.134 (172.30.254.134) 42.197 ms 37.267 ms 38.522 ms
8 172.30.254.130 (172.30.254.130) 39.562 ms 38.094 ms 39.500 ms
9 10.101.15.254 (10.101.15.254) 37.616 ms 37.741 ms 37.529 ms
10 10.101.15.178 (10.101.15.178) 39.465 ms 37.052 ms 36.734 ms
11 10.101.8.113 (10.101.8.113) 39.937 ms 38.565 ms 36.524 ms
nodes=$(kubectl get nodes| awk '{print $1}' | grep ncn-w | awk -vORS=, '{print $1}'); pdsh -w ${nodes} "tcpdump -envli hsn0 icmp"
ncn-w002: tcpdump: listening on hsn0, link-type EN10MB (Ethernet), capture size 262144 bytes
ncn-w003: tcpdump: listening on hsn0, link-type EN10MB (Ethernet), capture size 262144 bytes
ncn-w001: tcpdump: listening on hsn0, link-type EN10MB (Ethernet), capture size 262144 bytes
ncn-w003: 04:59:35.826691 98:5d:82:71:ba:2d > 02:00:00:00:00:1e, ethertype IPv4 (0x0800), length 98: (tos 0x0, ttl 54, id 951, offset 0, flags [none], proto ICMP (1), length 84)
ncn-w003: 172.25.64.129 > 10.101.8.113: ICMP echo request, id 37368, seq 0, length 64
ncn-w003: 04:59:36.825591 98:5d:82:71:ba:2d > 02:00:00:00:00:1e, ethertype IPv4 (0x0800), length 98: (tos 0x0, ttl 54, id 33996, offset 0, flags [none], proto ICMP (1), length 84)