Connectivity Guide

Table Of Contents
100.5.1.1 64802 376 325 04:28:25 1251
100.6.1.1 64802 376 327 04:26:17 1251
View running conguration
OS10# show running-configuration bgp
!
router bgp 64601
bestpath as-path multipath-relax
bestpath med missing-as-worst
non-deterministic-med
router-id 100.0.0.8
!
template leaf_v4
description peer_template_1_abcd !
address-family ipv4 unicast
distribute-list leaf_v4_in in
distribute-list leaf_v4_out out
route-map set_aspath_prepend in
!
neighbor 100.5.1.1
description leaf_connected_ebgp_neighbor
bfd
inherit template leaf_v4
remote-as 64802
no shutdown
!
neighbor 100.6.1.1
description leaf_connected_ebgp_neighbor
bfd
inherit template leaf_v4
remote-as 64802
no shutdown
!
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, 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.
6 (Optional) Add a text description for the template in ROUTER-TEMPLATE mode.
description text
7 Assign a peer-template with a peer-group name from which to inherit to the neighbor in ROUTER-NEIGHBOR mode.
inherit template template-name
336
Layer 3