Connectivity Guide

Table Of Contents
IPv4:
OS10(config-router-bgp-100)# address-family ipv4 unicast
OS10(configure-router-bgpv4-af)#
IPv6:
OS10(config-router-bgp-100)# address-family ipv6 unicast
OS10(configure-router-bgpv6-af)#
3 Change the administrative distance for BGP.
IPv4:
OS10(configure-router-bgpv4-af)# distance bgp 21 200 200
IPv6:
OS10(configure-router-bgpv6-af)# distance bgp 21 201 250
The example below provides the conguration for non-default VRF.
OS10(config-router-bgp-100)# vrf blue
OS10(config-router-bgp-100-vrf)# address-family ipv4 unicast
OS10(configure-router-bgpv4-vrf-af)# distance bgp 21 200 200
OS10(config-router-bgp-100-vrf)# address-family ipv6 unicast
OS10(configure-router-bgpv6-vrf-af)# distance bgp 21 201 250
Peer templates
To congure multiple BGP neighbors at one time, create and populate a BGP peer template. An advantage of conguring peer templates is
that members of a peer template inherit the conguration properties of the template and share update policy. Always create a peer
template and assign a name to it before adding members to the peer template. Create a peer template before conguring any route policies
for the template.
1 Enable BGP and assign the AS number to the local BGP speaker in CONFIGURATION mode, from 1 to 65535 for 2 byte, 1 to
4294967295 | 0.1 to 65535.65535 for 4 byte, or 0.1 to 65535.65535 in dotted format.
router bgp as-number
2 Create a peer template by assigning a neighborhood name to it in ROUTER-BGP mode.
template template-name
3 (Optional) Add a text description for the template in ROUTER-TEMPLATE mode.
description text
4 Enter Address Family mode in ROUTER-NEIGHBOR mode.
address-family {[ipv4 | ipv6] [unicast]}
5 Filter networks in routing updates, create a route-map and assign a ltering criteria in ROUTER-BGP-NEIGHBOR-AF mode.
distribute-list prefix-list-name {in | out}
route-map map-name {in | out}
6 Add a neighbor as a remote AS in ROUTER-TEMPLATE mode, from 1 to 65535 for 2 byte, 1 to 4294967295 | 0.1 to 65535.65535 for
4 byte, or 0.1 to 65535.65535 in dotted format.
neighbor ip-address
7 Add a remote neighbor, and enter the AS number in ROUTER-TEMPLATE mode.
remote-as as-number
To add an EBGP neighbor, congure the as-number parameter with a number dierent from the BGP as-number congured in
the
router bgp as-number command.
To add an IBGP neighbor, congure the as-number parameter with the same BGP as-number congured in the router bgp
as-number command.
334
Layer 3