IBGP and EBGP peer relationships

1.5.a BGP peering (not on blueprint)

General information on “BGP peering”:

“BGP Peering” CLI configuration commands:

## Configuring a BGP neighbor
Router(config)# router bgp <asn>
Router(config-router)# neighbor <ip> remote-as <asn>

## Configuring BGP authentication on a per-neighbor basis
Router(config-router)# neighbor <ip> password <key>

## Enabling MP-BGP
Router(config-router)# no bgp default ipv4-unicast

## Configuring MP-BGP
Router(config-router)# neighbor <ip> remote-as <asn>
Router(config-router)# neighbor <ip> password <key>
Router(config-router)# address-family [ipv4 | ipv6 | vpnv4 | ...]
Router(config-router-af)# neighbor <ip> activate

## Configuring an eBGP multi-hop neighbor
Router(config-router)# neighbor <ip> ebgp-multihop <ttl>

Router(config-router)# neighbor <ip> ttl-security <ttl>

## Additional configuration when configuring an eBGP neighbor using loopback interfaces
Router(config-router)# neighbor <ip> disable-connected-check

“BGP Peering” CLI show commands:

## Showing the BGP table for a specific address family
Router# show bgp [ipv4 | ipv6 | vpnv4 | vpnv6] unicast

## Showing the BGP neighbor status for a specific address family
Router# show bgp [vpnv4 | vpnv6 | ipv4 | ipv6] unicast summary

## Verifying that BGP authentication is enabled and working
Router# show tcp brief
Router# show tcp tcb <tcb-value>

1.5.a i Peer-group/update-group, template

Peer-group/update-group

General information on “BGP Peer-group/Update-group”:

“BGP Peer-group/update-group” CLI configuration commands

## Configuring a BGP peer group:
Router(config)# router bgp <asn>
Router(config-router)# neighbor [NAME] peer-group
Router(config-router)# neighbor [NAME] remote-as <asn>
Router(config-router)# neighbor [NAME] [command]

## Adding a BGP neighbor to a peer group
Router(config-router)# neighbor <ip> peer-group [NAME]

Template

General information on “BGP Template”:

“BGP Template” CLI configuration commands:

## Configuring a BGP template
Router(config)# router bgp <asn>
Router(config-router)# template [peer-policy | peer-session] [NAME]
Router(config-router-*tmp)# [command]

## Inheriting a BGP peer-session template
Router(config-router)# neighbor [IP | peer-group] inherit peer-session [NAME]

## Inheriting a BGP peer-policy template
Router(config-router)# address-family [ipv4 | ipv6 | vpnv4 | ...]
Router(config-router-af)# neighbor [IP | peer-group] inherit peer-policy [NAME]

1.5.a ii Active, passive

General information about “BGP Active, passive”:

“BGP Active, passive” CLI configuration commands:

## Configuring if the local router should be passive/active for a given BGP neighbor
Router(config)# router bgp <asn>
Router(config-router)# neighbor <ip> transport connection-mode [active | passive]

1.5.a iii Timers

General information on “Timers”:

“BGP Timers” CLI configuration commands:

## Modifying the BGP timers globally
Router(config)# router bgp <asn>
Router(config-router)# timers bgp <keepalive> <hold>

## Modifying the BGP timers on a per-neighbor basis
Router(config)# router bgp <asn>
Router(config-router)# neighbor <ip> timers <keepalive> <hold>

1.5.a iv Dynamic neighbors

General information on “BGP Dynamic neighbors”:

“BGP Dynamic neighbors” CLI configuration commands:

## Configuring BGP dynamic neighbors function:
Router(config-router)# neighbor [NAME] peer-group

Router(config-router)# bgp listen range <subnet/mask> peer-group <peer-group>
Router(config-router)# bgp listen limit <value>

Router(config-router)# neighbor <peer-group> remote-as <asn> alternate-as <asn, asn, ...>

Router(config-router)# address-family [ipv4 | ipv6 | vpnv4 | ...]
Router(config-router-af)# neighbor <peer-group> activate

1.5.a Public AS (not on blueprint)

General information on “BGP Public AS”:

BGP ASN ranges:

1.5.a v 4-byte AS numbers

General information on “BGP 4-byte AS numbers”:

Ways of 4-byte ASN notation:

1.5.a vi Private AS

General information on “BGP Private AS”: