Pcornel
H3 · Practical network exams · Cisco IOS / IOS XE

MP-BGP (IPv4/IPv6) · Finals

Configuration first, verification second, theory third. Reference templates require task-specific adaptation.

Content version 1.1-draft

Keyboard shortcuts

/ Finals search · Ctrl K global command palette · Alt E Exam Mode · Alt G Golden Scripts · Alt T Exam Topics · Alt V Verify · Esc close dialog.

Case Skills Exam

Quick explanation

Multiprotocol BGP exchanges routes using address families. eBGP connects different autonomous systems; iBGP connects peers within one AS.

Configuration

Replace highlighted placeholders. Configure only the variants required by the task.

Prerequisites and dependency links
  • Ensure TCP reachability to peers.
  • Advertised network statements must match an existing route exactly.
  • Use correct remote AS and activate the intended address family.
IPv4 eBGP address family Recommended / essential starting point
Start in privileged EXEC; block enters and exits configuration mode. Section link

Alternative group: mp-bgp-method. Select the applicable method; do not apply mutually exclusive variants in sequence.

enable
configure terminal
router bgp [LOCAL-AS]
 bgp router-id [ROUTER-ID]
 no bgp default ipv4-unicast
 neighbor [NEIGHBOR-IP] remote-as [REMOTE-AS]
 address-family ipv4 unicast
  neighbor [NEIGHBOR-IP] activate
  network [NETWORK] mask [SUBNET-MASK]
 exit-address-family
 exit
end
Command parameters
[LOCAL-AS]
Local BGP autonomous system number.
[ROUTER-ID]
Unique 32-bit routing protocol router ID in dotted decimal notation.
[NEIGHBOR-IP]
Remote IPv4 peer address.
[REMOTE-AS]
BGP autonomous system number of the remote peer.
[NETWORK]
IPv4 destination or matching network address.
[SUBNET-MASK]
IPv4 dotted-decimal subnet mask.
Peer configuration — BGP peer

Peer blocks use the peer's own local interfaces and identifiers. Shared values must agree; other placeholders are interpreted from that device's perspective.

  • Use this from the other peer's perspective; peer network advertisements and loopback IDs are local to that peer.
enable
configure terminal
router bgp [REMOTE-AS]
 bgp router-id [PEER-ROUTER-ID]
 no bgp default ipv4-unicast
 neighbor [LOCAL-PEER-IP] remote-as [LOCAL-AS]
 address-family ipv4 unicast
  neighbor [LOCAL-PEER-IP] activate
  network [PEER-NETWORK] mask [PEER-SUBNET-MASK]
 exit-address-family
 exit
end
IPv6 eBGP address family Task-specific configuration — essential if selected
Start in privileged EXEC; block enters and exits configuration mode. Section link

Alternative group: mp-bgp-method. Select the applicable method; do not apply mutually exclusive variants in sequence.

enable
configure terminal
router bgp [LOCAL-AS]
 bgp router-id [ROUTER-ID]
 no bgp default ipv4-unicast
 neighbor [NEIGHBOR-IPV6] remote-as [REMOTE-AS]
 address-family ipv6 unicast
  neighbor [NEIGHBOR-IPV6] activate
  network [IPV6-PREFIX]/[PREFIX-LENGTH]
 exit-address-family
 exit
end
Command parameters
[LOCAL-AS]
Local BGP autonomous system number.
[ROUTER-ID]
Unique 32-bit routing protocol router ID in dotted decimal notation.
[NEIGHBOR-IPV6]
Remote IPv6 peer address.
[REMOTE-AS]
BGP autonomous system number of the remote peer.
[IPV6-PREFIX]
IPv6 destination network prefix without slash length.
[PREFIX-LENGTH]
IPv6 prefix length without slash.
Peer configuration — BGP peer

Peer blocks use the peer's own local interfaces and identifiers. Shared values must agree; other placeholders are interpreted from that device's perspective.

  • Use this from the other peer's perspective; peer network advertisements and loopback IDs are local to that peer.
enable
configure terminal
router bgp [REMOTE-AS]
 bgp router-id [PEER-ROUTER-ID]
 no bgp default ipv4-unicast
 neighbor [LOCAL-PEER-IPV6] remote-as [LOCAL-AS]
 address-family ipv6 unicast
  neighbor [LOCAL-PEER-IPV6] activate
  network [PEER-IPV6-PREFIX]/[PEER-PREFIX-LENGTH]
 exit-address-family
 exit
end
IPv4 iBGP using loopback Task-specific configuration — essential if selected
Start in privileged EXEC; block enters and exits configuration mode. Section link

Alternative group: mp-bgp-method. Select the applicable method; do not apply mutually exclusive variants in sequence.

  • Loopbacks need reachability before the session can establish. Use next-hop-self where needed.
enable
configure terminal
router bgp [LOCAL-AS]
 bgp router-id [ROUTER-ID]
 neighbor [NEIGHBOR-IP] remote-as [LOCAL-AS]
 neighbor [NEIGHBOR-IP] update-source loopback [LOOPBACK-ID]
 address-family ipv4 unicast
  neighbor [NEIGHBOR-IP] activate
  neighbor [NEIGHBOR-IP] next-hop-self
 exit-address-family
 exit
end
Command parameters
[LOCAL-AS]
Local BGP autonomous system number.
[ROUTER-ID]
Unique 32-bit routing protocol router ID in dotted decimal notation.
[NEIGHBOR-IP]
Remote IPv4 peer address.
[LOOPBACK-ID]
Local loopback interface number.
Peer configuration — BGP peer

Peer blocks use the peer's own local interfaces and identifiers. Shared values must agree; other placeholders are interpreted from that device's perspective.

  • Use this from the other peer's perspective; peer network advertisements and loopback IDs are local to that peer.
enable
configure terminal
router bgp [LOCAL-AS]
 bgp router-id [PEER-ROUTER-ID]
 neighbor [LOCAL-PEER-IP] remote-as [LOCAL-AS]
 neighbor [LOCAL-PEER-IP] update-source loopback [LOOPBACK-ID]
 address-family ipv4 unicast
  neighbor [LOCAL-PEER-IP] activate
  neighbor [LOCAL-PEER-IP] next-hop-self
 exit-address-family
 exit
end
IPv6 iBGP using loopback Task-specific configuration — essential if selected
Start in privileged EXEC; block enters and exits configuration mode. Section link

Alternative group: mp-bgp-method. Select the applicable method; do not apply mutually exclusive variants in sequence.

  • Loopbacks need IPv6 reachability.
enable
configure terminal
router bgp [LOCAL-AS]
 bgp router-id [ROUTER-ID]
 no bgp default ipv4-unicast
 neighbor [NEIGHBOR-IPV6] remote-as [LOCAL-AS]
 neighbor [NEIGHBOR-IPV6] update-source loopback [LOOPBACK-ID]
 address-family ipv6 unicast
  neighbor [NEIGHBOR-IPV6] activate
  neighbor [NEIGHBOR-IPV6] next-hop-self
 exit-address-family
 exit
end
Command parameters
[LOCAL-AS]
Local BGP autonomous system number.
[ROUTER-ID]
Unique 32-bit routing protocol router ID in dotted decimal notation.
[NEIGHBOR-IPV6]
Remote IPv6 peer address.
[LOOPBACK-ID]
Local loopback interface number.
Peer configuration — BGP peer

Peer blocks use the peer's own local interfaces and identifiers. Shared values must agree; other placeholders are interpreted from that device's perspective.

  • Use this from the other peer's perspective; peer network advertisements and loopback IDs are local to that peer.
enable
configure terminal
router bgp [LOCAL-AS]
 bgp router-id [PEER-ROUTER-ID]
 no bgp default ipv4-unicast
 neighbor [LOCAL-PEER-IPV6] remote-as [LOCAL-AS]
 neighbor [LOCAL-PEER-IPV6] update-source loopback [LOOPBACK-ID]
 address-family ipv6 unicast
  neighbor [LOCAL-PEER-IPV6] activate
  neighbor [LOCAL-PEER-IPV6] next-hop-self
 exit-address-family
 exit
end

Show / Verify

Primary verification Section link
show bgp ipv4 unicast summary
Example output
Neighbor     V  AS     ... State/PfxRcd
192.0.2.2    4  65002  ... 3

A numeric received-prefix count indicates an established peer.

Detailed verification Section link
show bgp ipv6 unicast summary
Example output
2001:DB8::2  4  65002  ... 3

Inspect IPv6 peer state and prefixes.

Detailed verification Section link
show bgp ipv4 unicast
Example output
*> 198.51.100.0/24  192.0.2.2

The valid/best flags identify a selected path.

Detailed verification Section link
show bgp ipv6 unicast
Example output
*> 2001:DB8:2::/64  2001:DB8::2

Check received IPv6 prefixes and next hop.

Connectivity verification

IPv4 reachability

Check success rate; use source or VRF context if required.

ping [DESTINATION-IP]
IPv6 reachability

Check IPv6 path and return routing.

ping ipv6 [DESTINATION-IPV6]
Source-specific IPv4

Verify from the intended source network.

ping [DESTINATION-IP] source [SOURCE-IP]
IPv4 path

Inspect hop sequence; missing responses alone do not prove forwarding failure.

traceroute [DESTINATION-IP]
IPv6 path

Inspect IPv6 hop sequence.

traceroute ipv6 [DESTINATION-IPV6]

Common mistakes

  • Wrong remote AS.
  • AF neighbor not activated.
  • Network statement does not match RIB.
  • Unreachable next hop or loopback.

Quick reference and default values

Administrative distance
SourceDefault distance
Connected0
Static1
eBGP20
Internal EIGRP90
OSPF110
RIP120
External EIGRP170
iBGP200
Routing table codes
CodeMeaning
CConnected
LLocal host route
SStatic
OOSPF
O IAOSPF inter-area
O E1 / E2OSPF external
BBGP
*Candidate default
BGP session states
StateMeaning
IdleNo established session
Connect / ActiveTCP connection attempt
OpenSent / OpenConfirmBGP negotiation
EstablishedRoute exchange; numeric prefix count in summary

Configuration comparison

iBGP vs eBGP — Same AS vs different AS; next-hop and loopback reachability must be considered.

Remove configuration — separate, potentially disruptive actions

Deactivate IPv4 AF neighbor

Stops IPv4 route exchange with the peer.

enable
configure terminal
router bgp [LOCAL-AS]
 address-family ipv4 unicast
  no neighbor [NEIGHBOR-IP] activate
 exit-address-family
 exit
end

Remove neighbor

Removes the configured peer session.

enable
configure terminal
router bgp [LOCAL-AS]
 no neighbor [NEIGHBOR-IP] remote-as [REMOTE-AS]
 exit
end

Related reference

Networking technical reference · Interface types · Connectivity verification
Documentation references consulted

Reset checklist?

Command block

Back to Top

Confirmation

Confirm action

Continue?