Reference Guide
Congure BGP
OS10# configure terminal
OS10(config)# router bgp 100
OS10(config-router-bgp-100)# vrf blue
OS10(config-router-vrf)# neighbor 5.1.1.1
OS10(config-router-neighbor)# remote-as 1
OS10(config-router-neighbor)# description n1_abcd
OS10(config-router-neighbor)# exit
OS10(config-router-vrf)# template t1
OS10(config-router-template)# description peer_template_1_abcd
Congure Dual Stack
OS10 supports dual stack for BGPv4 and BGPv6. Dual stack BGP allows simultaneous exchange of same IPv4 or IPv6 prexes through
dierent IPv4 and IPv6 peers. You can enable dual stack using the activate command in the corresponding address-family mode. By
default, activate command is enabled for the IPv4 address family for all the neighbors.
If a BGP-v4 neighbor wants to carry ipv6 prex information, it activates the IPv6 address-family. For a BGP-v6 neighbor to carry ipv4
prex, it activates the IPv4 address-family.
1 Enable support for the IPv6 unicast family in CONFIG-ROUTER-BGP mode.
address family ipv6 unicast
2 Enable IPv6 unicast support on a BGP neighbor/template in CONFIG-ROUTER-BGP-AF mode.
activate
Peer templates
To congure multiple BGP neighbors at one time, create and populate a BGP peer template. An advantage of conguring peer templates is
that members of a peer template inherit the conguration 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 conguring 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, congure the as-number parameter with a number dierent from the BGP as-number congured in
the
router bgp as-number command.
Layer 3
305