Reference Guide

Table Of Contents
Configure peer templates
OS10(config)# router bgp 300
OS10(config-router-bgp-300)# template ebgppg
OS10(config-router-template)# remote-as 100
OS10(config-router-template)# description peer_template_1_abcd
OS10(config-router-template)# exit
OS10(config-router-bgp-300)# neighbor 3.1.1.1
OS10(config-router-neighbor)# inherit template ebgppg
OS10(config-router-neighbor)# no shutdown
View peer group status
OS10(config-router-neighbor)# do show ip bgp peer-group ebgppg
Peer-group ebgppg, remote AS 100
BGP version 4
Minimum time between advertisement runs is 30 seconds
Description: peer_template_1_abcd
For address family: Unicast
BGP neighbor is ebgppg, peer-group external
Update packing has 4_OCTET_AS support enabled
Number of peers in this group 1
Peer-group members:
View running configuration
OS10(config-router-neighbor)# do show running-configuration bgp
!
router bgp 300
!
neighbor 3.1.1.1
inherit template ebgppg
no shutdown
!
template ebgppg
remote-as 100
description peer_template_1_abcd
Peer templates for a non-default VRF instance
You can create peer templates to add multiple neighbors at a time to the non-default VRF instance that you create.
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. Enter the CONFIG-ROUTER-VRF mode to create a peer template for the non-default VRF instance that you create.
vrf vrf-name
3. Create a peer template by assigning a neighborhood name to it in CONFIG-ROUTER-VRF mode.
template template-name
4. 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
5. Add a remote neighbor, and enter the AS number in ROUTER-TEMPLATE mode.
remote-as as-number
To add an EBGP neighbor, configure the as-number parameter with a number different from the BGP as-number
configured in the router bgp as-number command.
290
Layer 3