cisco — Enabling BGP Routing

Enabling BGP Routing To enable BGP routing, perform the following procedure: Procedure Configuring BGP Enabling BGP Routing Command or Action Purpose Step 1 enable Example: Device> enable Enables privileged EXEC mode. Enter your password if prompted. Step 2 configure terminal Example: Device# configure terminal Enters global configuration mode. Step 3 ip routing Example: Device(config)# ip routing Enables IP routing. Step 4 router bgp autonomous-system Example: Device(config)# router bgp 45000 Enables a BGP routing process, assign it an AS number, and enter router configuration mode. The AS number can be from 1 to 65535, with 64512 to 65535 designated as private autonomous numbers.

Step 5 network network-number [mask network-mask] [route-map route-map-name] Example: Device(config-router)# network 10.108.0.0 Configures a network as local to this AS, and enter it in the BGP table. Step 6 neighbor {ip-address | peer-group-name} remote-as number Example: Device(config-router)# neighbor 10.108.1.2 remote-as 65200 Adds an entry to the BGP neighbor table specifying that the neighbor that is identified by the IP address belongs to the specified AS. For EBGP, neighbors are usually directly connected, and the IP address is the address of the interface at the other end of the connection. For IBGP, the IP address can be the address of any of the router interfaces.

Step 7 neighbor {ip-address | peer-group-name} remove-private-as Example: (Optional) Removes private AS numbers from the AS-path in outbound routing updates. Configuring BGP 16