| 1: Global best practices |
!
system mtu 9100
!
port-channel load-balance
vlan-src-dst-mixed-ip-port
ip cef load-sharing algorithm
include-ports
source destination protocol
!
ip tcp mss 8000
ip tcp window-size 262144
ip tcp path-mtu-discovery
!
|
!
system mtu 9100
!
port-channel load-balance
vlan-src-dst-mixed-ip-port
ip cef load-sharing algorithm
include-ports
source destination protocol
!
ip tcp mss 8000
ip tcp window-size 262144
ip tcp path-mtu-discovery
!
|
!
system mtu 9100
!
port-channel load-balance
vlan-src-dst-mixed-ip-port
ip cef load-sharing algorithm
include-ports
source destination protocol
!
ip tcp mss 8000
ip tcp window-size 262144
ip tcp path-mtu-discovery
!
|
| 2: Underlay interface configuration and best practices |
!
interface range
HundredGig1/0/49-50
description CONNECTED TO SPINE
ip ospf 100 area 0
ip ospf network point-to-point
ip pim sparse-mode
carrier-delay msec 0
hold-queue 4094 in
hold-queue 4094 out
evpn multihoming core-tracking
!
|
!
interface range
HundredGig1/0/1-4
description CONNECTED
TO CAMPUS CORE NETWORK
ip ospf 100 area 0
ip ospf network point-to-point
ip pim sparse-mode
carrier-delay msec 0
hold-queue 4094 in
hold-queue 4094 out
!
|
!
interface range
HundredGig1/0/49-50
description CONNECTED
TO SPINE
ip ospf 100 area 0
ip ospf network
point-to-point
ip pim sparse-mode
carrier-delay msec 0
hold-queue 4094 in
hold-queue 4094 out
!
|
| 3: OSPF routing configuration and best practices |
ES-1 and ES-2
!
router ospf 100
max-metric router-lsa
include-stub summary-lsa
external-lsa on-startup wait-for-bgp
nsf cisco
fast-reroute per-prefix enable
prefix-priority low
area 101 stub no-summary
passive-interface default
no passive-interface
Port-Channel 128
no passive-interface
HundredGig1/0/49
no passive-interface
HundredGig1/0/50
!
ES-3 and ES-4
!
router ospf 100
max-metric router-lsa include-stub
summary-lsa external-lsa
on-startup wait-for-bgp
nsf cisco
fast-reroute per-prefix enable
prefix-priority low
area 102 stub no-summary
passive-interface default
no passive-interface
Port-Channel 128
no passive-interface
HundredGig1/0/49
no passive-interface
HundredGig1/0/50
!
|
SPINE-1
!
router ospf 100
router-id 10.200.255.3
max-metric router-lsa include-stub
summary-lsa external-lsa on-startup
wait-for-bgp
nsf cisco
fast-reroute per-prefix enable
prefix-priority low
passive-interface default
no passive-interface HundredGig1/0/1
no passive-interface HundredGig1/0/2
no passive-interface HundredGig1/0/3
no passive-interface HundredGig1/0/4
!
SPINE-2
!
router ospf 100
router-id 10.200.255.4
max-metric router-lsa include-stub
summary-lsa external-lsa on-startup
wait-for-bgp
nsf cisco
fast-reroute per-prefix enable
prefix-priority low
passive-interface default
no passive-interface HundredGig1/0/1
no passive-interface HundredGig1/0/2
no passive-interface HundredGig1/0/3
no passive-interface HundredGig1/0/4
!
|
BORDER-1
!
router ospf 100
router-id 10.200.255.1
max-metric router-lsa include-stub
summary-lsa external-lsa on-startup
wait-for-bgp
nsf cisco
fast-reroute per-prefix enable
prefix-priority low
passive-interface default
no passive-interface HundredGig1/0/49
no passive-interface HundredGig1/0/50
!
BORDER-2
!
router ospf 100
router-id 10.200.255.2
max-metric router-lsa include-stub
summary-lsa external-lsa on-startup
wait-for-bgp
nsf cisco
fast-reroute per-prefix enable
prefix-priority low
passive-interface default
no passive-interface HundredGig1/0/49
no passive-interface HundredGig1/0/50
!
|
| 4: BGP routing configuration and best practices |
!
router bgp 65101
!
bgp router-id interface
Loopback0
bgp log-neighbor-changes
bgp graceful-restart
no bgp default ipv4-unicast
!
|
!
router bgp 65101
!
bgp router-id interface
Loopback0
bgp log-neighbor-changes
bgp graceful-restart
no bgp default ipv4-unicast
!
|
!
router bgp 65101
!
bgp router-id interface
Loopback0
bgp log-neighbor-changes
bgp graceful-restart
no bgp default ipv4-unicast
!
|
| 5: Peer-session and peer-policy templates and parameters for leaf switches |
!
template peer-session
EVPN-SPINE-PEER-SESSION-POLICY
remote-as 65101
description EVPN-SPINE-PEER
log-neighbor-changes
update-source Loopback0
fall-over host-route
!
template peer-policy
EVPN-SPINE-PEER-POLICY
send-community both
!
|
!
template peer-session
EVPN-LEAF-PEER-SESSION-POLICY
remote-as 65101
description EVPN-LEAF-PEER
log-neighbor-changes
update-source Loopback0
fall-over host-route
!
template peer-policy
EVPN-LEAF-PEER-POLICY
route-reflector-client
send-community both
!
|
|
| 6: Peer-session and policy templates and parameters for border switches |
|
!
template peer-session
EVPN-BORDER-PEER-SESSION-POLICY
remote-as 65101
description EVPN-BORDER-PEER
log-neighbor-changes
update-source Loopback0
fall-over host-route
!
template peer-policy
EVPN-BORDER-PEER-POLICY
route-reflector-client
send-community both
!
|
!
template peer-session
EVPN-SPINE-PEER-SESSION-POLICY
remote-as 65101
description EVPN-SPINE-PEER
log-neighbor-changes
update-source Loopback0
fall-over host-route
!
template peer-policy
EVPN-SPINE-PEER-POLICY
send-community both
!
|
| 7: Disable intra-cluster EVPN multihome leaf reflection |
|
!
no bgp client-to-client reflection
intra-cluster cluster-id any
!
! |
|
| 8: Border-spine iBGP peering |
|
!
neighbor 10.200.255.1 inherit
peer-session
EVPN-BORDER-PEER-SESSION-POLICY
!
neighbor 10.200.255.2
inherit peer-session
EVPN-BORDER-PEER-SESSION-POLICY
!
|
!
neighbor 10.200.255.3
inherit peer-session
EVPN-SPINE-PEER-SESSION-POLICY
!
neighbor 10.200.255.4
inherit peer-session
EVPN-SPINE-PEER-SESSION-POLICY
!
|
| 9: Leaf iBGP peering |
!
neighbor 10.200.255.3
inherit peer-session
EVPN-SPINE-PEER-SESSION-POLICY
!
neighbor 10.200.255.4
inherit peer-session
EVPN-SPINE-PEER-SESSION-POLICY
!
|
!
neighbor 10.200.255.101
inherit peer-session
EVPN-LEAF-PEER-SESSION-POLICY
neighbor 10.200.255.101
cluster-id 1.1.1.1
!
neighbor 10.200.255.102
inherit peer-session
EVPN-LEAF-PEER-SESSION-POLICY
neighbor 10.200.255.102
cluster-id 1.1.1.1
!
neighbor 10.200.255.103
inherit peer-session
EVPN-LEAF-PEER-SESSION-POLICY
neighbor 10.200.255.101
cluster-id 1.1.1.2
!
neighbor 10.200.255.104
inherit peer-session
EVPN-LEAF-PEER-SESSION-POLICY
neighbor 10.200.255.102
cluster-id 1.1.1.2
! |
|
| 10: Activate leaf and border iBGP peering under L2VPN EVPN address family |
!
address-family l2vpn evpn
bgp nexthop trigger
critical-delay 0
neighbor 10.200.255.3
activate
neighbor 10.200.255.3
send-community both
neighbor 10.200.255.3
inherit peer-policy
EVPN-SPINE-PEER-POLICY
neighbor 10.200.255.4
activate
neighbor 10.200.255.4
send-community both
neighbor 10.200.255.4
inherit peer-policy
EVPN-SPINE-PEER-POLICY
!
|
!
address-family l2vpn evpn
bgp nexthop trigger
critical-delay 0
neighbor 10.200.255.1
activate
neighbor 10.200.255.1
send-community both
neighbor 10.200.255.1
inherit peer-policy
EVPN-BORDER-PEER-POLICY
neighbor 10.200.255.2
activate
neighbor 10.200.255.2
send-community both
neighbor 10.200.255.2
inherit peer-policy
EVPN-BORDER-PEER-POLICY
!
neighbor 10.200.255.101
activate
neighbor 10.200.255.101
send-community both
neighbor 10.200.255.101
inherit peer-policy
EVPN-LEAF-PEER-POLICY
neighbor 10.200.255.102
activate
neighbor 10.200.255.102
send-community both
neighbor 10.200.255.102
inherit peer-policy
EVPN-LEAF-PEER-POLICY
!
neighbor 10.200.255.103
activate
neighbor 10.200.255.103
send-community both
neighbor 10.200.255.103
inherit peer-policy
EVPN-LEAF-PEER-POLICY
neighbor 10.200.255.104
activate
neighbor 10.200.255.104
send-community both
neighbor 10.200.255.104
inherit peer-policy
EVPN-LEAF-PEER-POLICY
!
|
!
address-family l2vpn evpn
bgp nexthop trigger
critical-delay 0
neighbor 10.200.255.3
activate
neighbor 10.200.255.3
send-community both
neighbor 10.200.255.3
inherit peer-policy
EVPN-SPINE-PEER-POLICY
neighbor 10.200.255.4
activate
neighbor 10.200.255.4
send-community both
neighbor 10.200.255.4
inherit peer-policy
EVPN-SPINE-PEER-POLICY
!
|