Cisco Cisco IOS Software Release 12.0(24)S
BGP Configuration Using Peer Templates
Information About BGP Configuration Using Peer Templates
6
Cisco IOS Release: Multiple Releases (see the Feature History table)
Another peer session template named SESSION-TEMPLATE-TWO is configured to inherit the
configuration from SESSION-TEMPLATE-ONE and apply the remote-as 2 command.
configuration from SESSION-TEMPLATE-ONE and apply the remote-as 2 command.
template peer-session SESSION-TEMPLATE-TWO
remote-as 2
inherit peer-session SESSION-TEMPLATE-ONE
exit peer-session
The template named “session-template-one” is indirectly inherited by the template named
“peer-session-two”, and the remote-as command is applied in each template but with a different
autonomous system number. The remote-as 1 command statement is evaluated first. But, since the
remote-as 2 command statement was directly applied in “session-template-two”, the command in
“session-template-two” will have priority over the command from “session-template-one”, and the
remote-as 2 command will be applied instead of the remote-as 1 command.
“peer-session-two”, and the remote-as command is applied in each template but with a different
autonomous system number. The remote-as 1 command statement is evaluated first. But, since the
remote-as 2 command statement was directly applied in “session-template-two”, the command in
“session-template-two” will have priority over the command from “session-template-one”, and the
remote-as 2 command will be applied instead of the remote-as 1 command.
Peer session templates support only general session commands. BGP policy configuration commands
that are configured only for a specific address family or NLRI configuration mode are configured with
peer policy templates.
that are configured only for a specific address family or NLRI configuration mode are configured with
peer policy templates.
Peer Policy Templates
Peer policy templates are used to group and apply the configuration of commands that are applied within
specific address-families and NLRI configuration mode. Peer policy templates are created and
configured in peer policy configuration mode. BGP policy commands that are configured for specific
address-families or NLRI configuration modes are configured in a peer policy template. The following
BGP policy commands are supported by peer policy templates:
specific address-families and NLRI configuration mode. Peer policy templates are created and
configured in peer policy configuration mode. BGP policy commands that are configured for specific
address-families or NLRI configuration modes are configured in a peer policy template. The following
BGP policy commands are supported by peer policy templates:
•
advertisement-interval
•
allowas-in
•
as-override
•
capability
•
default-originate
•
distribute-list
•
dmzlink-bw
•
exit-peer-policy
•
filter-list
•
inherit peer-policy
•
maximum-prefix
•
next-hop-self
•
next-hop-unchanged
•
prefix-list
•
remove-private-as
•
route-map
•
route-reflector-client
•
send-community
•
send-label