Below is an example of how you can configure BGP on a Cisco Nexus 3548x switch running NX-OS. In this example, we assume the following:
Your local AS number is 65001.
The BGP router ID is set to 192.168.1.1.
You have a BGP neighbor with IP 10.1.1.1 in remote AS 65002.
You are advertising IPv4 unicast routes.
Note: Adjust the AS numbers, IP addresses, and any other parameters to match your network requirements. If you are working within VRFs (Virtual Routing and Forwarding instances), the configuration nests under the VRF name.
Step-by-Step Configuration
Enter Global Configuration Mode
First, access the Nexus switch’s CLI and enter global configuration mode:
text
Switch# configure terminal
Configure the BGP Process
Define the local BGP autonomous system and set the router ID:
By default, BGP on NX-OS does not activate address families automatically. You need to explicitly configure the address family and activate the neighbor under it:
Additional BGP Attributes:
Depending on your network policies, you might want to configure other attributes like route maps, prefix lists, or other BGP policies. These can be added under the neighbor or address-family configuration as required.
This configuration provides a basic setup for BGP on a Cisco Nexus 3548x switch. Adjust the steps as needed based on your specific network environment and requirements.