gpt-4.1-mini-2025-04-14· OpenAI
LMArena Human Preference 140K
now provide commands to configure bgp on cisco nexus 3548 switch
- User
now provide commands to configure bgp on cisco nexus 3548 switch
- Assistant
Certainly! Below is an example of how to configure BGP EVPN on a Cisco Nexus 3548 switch. This example aligns with the Arista config style I provided earlier, with:
- 1 Spine (Nexus 3548 acting as Spine)
- 1 Leaf (Nexus 3548 acting as Leaf)
Assumptions:
Device Hostname ASN Loopback0 IP VTEP IP (same as Loopback0) Spine Spine1 65000 10.0.0.1/32 N/A Leaf Leaf1 65101 10.0.0.2/32 10.0.0.2
Spine1 (Nexus 3548) BGP EVPN Configuration
configure terminal ! Configure Loopback0 interface interface loopback0 ip address 10.0.0.1/32 no shutdown ! Enable feature bgp and nv overlay feature bgp feature nv overlay ! Configure BGP router bgp 65000 router-id 10.0.0.1 no bgp default ipv4-unicast neighbor LEAF1 peer-group neighbor LEAF1 remote-as 65101 neighbor LEAF1 update-source loopback0 neighbor 10.0.0.2 peer-group LEAF1 address-family l2vpn evpn neighbor LEAF1 activate exit-address-family exit
Leaf1 (Nexus 3548) BGP EVPN + VXLAN Configuration
configure terminal ! Configure Loopback0 interface interface loopback0 ip address 10.0.0.2/32 no shutdown ! Enable features feature bgp feature nv overlay feature interface-vlan ! Configure VLANs and SVIs vlan 10 name VLAN10 vlan 20 name VLAN20 interface vlan10 ip address 192.168.10.1/24 no shutdown interface vlan20 ip address 192.168.20.1/24 no shutdown ! Configure NVE interface for VXLAN interface nve1 no shutdown source-interface loopback0 member vni 1010 ingress-replication protocol bgp member vni 1020 ingress-replication protocol bgp ! Map VLANs to VNIs vni 1010 vlan 10 vni 1020 vlan 20 ! Configure BGP router bgp 65101 router-id 10.0.0.2 no bgp default ipv4-unicast neighbor SPINE1 peer-group neighbor SPINE1 remote-as 65000 neighbor SPINE1 update-source loopback0 neighbor 10.0.0.1 peer-group SPINE1 address-family l2vpn evpn neighbor SPINE1 activate advertise-all-vni exit-address-family exit
Notes:
feature nv overlayenables VXLAN/NV overlay on Nexus 3548.interface nve1is the VXLAN Tunnel Endpoint interface.- BGP EVPN runs under the
l2vpn evpnaddress-family. ingress-replication protocol bgpenables BGP-based EVPN control plane for VXLAN.- VLAN to VNI mapping is done via
vni <vni-id>under VLAN config or underinterface nve1 member vni. - Make sure underlay routing (e.g., OSPF or static routes) is configured so loopbacks are reachable.
If you want, I can also provide underlay routing config or multi-leaf/multi-spine examples. Just ask!
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.