Below is a basic example of how to configure BGP on a Cisco Nexus 3548 switch. This example includes configuration for:
- 1 Spine switch (Nexus 3548)
- 1 Leaf switch (another Nexus or any BGP capable device)
This setup assumes:
- iBGP is used between spine and leaf.
- Loopback interfaces are used for BGP peering.
Spine Configuration (Nexus 3548)
!
feature bgp
!
interface loopback0
description BGP Router ID
ip address 10.0.0.1/32
!
router bgp 65000
router-id 10.0.0.1
log-neighbor-changes
address-family ipv4 unicast
neighbor 10.0.0.2
remote-as 65000
update-source loopback0
address-family ipv4 unicast
disable-peer-as-check
!
Leaf Configuration (assuming another Nexus or any BGP capable device)
!
feature bgp
!
interface loopback0
description BGP Router ID
ip address 10.0.0.2/32
!
router bgp 65000
router-id 10.0.0.2
log-neighbor-changes
address-family ipv4 unicast
neighbor 10.0.0.1
remote-as 65000
update-source loopback0
address-family ipv4 unicast
disable-peer-as-check
!
Configuring BGP EVPN on Nexus 3548 (if supported)
The Nexus 3548 is primarily a Layer 2/Layer 3 switch with some limitations compared to the Nexus 9000 series. As of my last update, the Nexus 3548 does not natively support VXLAN or EVPN as it's more focused on low-latency trading applications. However, for a more modern Nexus platform like the Nexus 9000, you can configure BGP EVPN as follows:
Example on a Nexus 9000 (for EVPN)
!
feature bgp
feature vn-segment-vlan-based
feature nv overlay
feature vn-segment
!
interface nve1
no shutdown
source-interface loopback0
host-reachability protocol bgp
!
vlan 10
vn-segment 1010
!
vlan 20
vn-segment 1020
!
interface Vlan10
no shutdown
vrf member vrf1
ip address 192.168.10.1/24
fabric forwarding mode anycast-gateway
!
interface Vlan20
no shutdown
vrf member vrf1
ip address 192.168.20.1/24
fabric forwarding mode anycast-gateway
!
router bgp 65000
router-id 10.0.0.2
log-neighbor-changes
neighbor 10.0.0.1
remote-as 65000
update-source loopback0
address-family l2vpn evpn
send-community
send-community extended
!
vrf vrf1
address-family ipv4 unicast
advertise l2vpn evpn
!
address-family l2vpn evpn
neighbor 10.0.0.1
send-community
send-community extended
!
Notes
- The Nexus 3548 is not typically used for complex routing or EVPN configurations. For EVPN, consider using a Nexus 9000 or a similar platform that supports VXLAN and EVPN.
- Ensure that the underlay routing is properly configured for reachability between the BGP peers.
- The examples provided are simplified and might need adjustments based on your specific network design and requirements.
Let me know if you need further assistance or have specific questions about the configuration.