Information Technology Reference
In-Depth Information
unsuppress-map
weight
Many of the commands are not applicable across address families. For example, a prefix
list assigned to IPv4 sessions does not apply to an IPv6 session.
Peer templates provide inheritance capabilities to maximize template reusability. You
can build a general template containing the basic attributes, and then you can build more-
specific templates containing only additional information. Example 3-7 defines a general
session template. The attributes configured are true for all peers, both internal and external.
The internal-session template and external-session template are built using the base-session
template as a foundation.
Session Inheritance Configuration
Example 3-7
router bgp 100
...
neighbor 10.1.1.1 inherit peer-session internal-session
...
template peer-session base-session
password cisco
version 4
exit-peer-session
!
template peer-session internal-session
inherit base-session
update-source loopback0
remote-as 100
exit-peer-session
!
template peer-session external-session
inherit base-session
password customer
remote-as 65001
exit-peer-session
!
In the base-session template, the password is defined as cisco, but in the external-session it
is changed to customer. When processing a template, any inherited templates are processed
first, and then the configuration specific to that template occurs. In this case, the password
setting of cisco is overwritten for the external-session with the password customer.
Templates are applied to BGP peering sessions using the inheritance concept. A neighbor
has its default settings as its “base” configuration. The neighbor is configured to inherit a
peer template, which modifies those settings. In the example, the BGP session 10.1.1.1
inherits the internal session template. Any configuration settings at the neighbor level take
precedence over peer template settings.
Search WWH ::




Custom Search