Cisco: BGP Create Instance

From OnnoWiki
Jump to navigation Jump to search

Creating a BGP Instance

You can create a BGP instance and assign a router ID to the BGP instance. See the “BGP Router Identifier” section. Cisco NX-OS supports 2-byte or 4-byte autonomous system (AS) numbers in plain-text notation or as.dot notation. See the “4-Byte AS Number Support” section for more information. BEFORE YOU BEGIN

Ensure that you have enabled the BGP feature (see the “Enabling the BGP Feature” section).

BGP must be able to obtain a router ID (for example, a configured loopback address).

SUMMARY STEPS

configure terminal
router bgp autonomous-system-number
(Optional) router-id ip-address
address-family ipv4 { unicast | multicast }
(Optional) network ip-prefix [ route-map map-name ]
(Optional) show bgp all
(Optional) copy running-config startup-config



Restarting a BGP Instance

You can restart a BGP instance and clear all peer sessions for the instance.

To restart a BGP instance and remove all associated peers, use the following command:


Command

Purpose

restart bgp instance-tag


Example:

switch(config)# restart bgp 201


Restarts the BGP instance and resets or reestablishes all peering sessions. Shutting Down BGP

You can shut down the BGP protocol and gracefully disable BGP and retain the configuration.

To shut down BGP, use the following command in router configuration mode:


Command

Purpose

shutdown


Example:

switch(config-router)# shutdown


Pranala Menarik