22.05.2017 Views

nx.os.and.cisco.nexus.switching.2nd.edition.1587143046

Nexus Switching 2nd Edition

Nexus Switching 2nd Edition

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

The BGP password must match on both BGP peers to establish a session. This is<br />

particularly important when peering with external organizations, such as an ISP in<br />

which the peering router might not be under your direct control.<br />

Configuring BGP authentication simply requires the password to be enabled on the<br />

neighbor, as shown in Example 3-87.<br />

Example 3-87. Configuring BGP Authentication<br />

Click here to view code image<br />

Congo# config t<br />

Enter configuration comm<strong>and</strong>s, one per line. End with<br />

CNTL/Z.<br />

Congo(config)# router bgp 65000<br />

Congo(config-router)# neighbor 192.168.1.38<br />

Congo(config-router-neighbor)# password bgppassword<br />

Congo(config-router-neighbor)# end<br />

You can verify the authentication on the peer session by using the show ip bgp neighbor<br />

comm<strong>and</strong>, as demonstrated in Example 3-88.<br />

Example 3-88. Verification of BGP Authentication<br />

Click here to view code image<br />

Congo# show ip bgp neighbor 192.168.1.38<br />

BGP neighbor is 192.168.1.38, remote AS 65001, ebgp<br />

link, Peer index 2<br />

Description: Libya<br />

BGP version 4, remote router ID 192.168.1.3<br />

BGP state = Established, up for 00:05:16<br />

Peer is directly attached, interface Ethernet1/18<br />

TCP MD5 authentication is enabled<br />

Last read 00:00:14, hold time = 180, keepalive interval<br />

is 60 seconds<br />

Last written 00:00:15, keepalive timer expiry due<br />

00:00:44<br />

Received 31 messages, 0 notifications, 0 bytes in queue<br />

Sent 37 messages, 1 notifications, 0 bytes in queue<br />

Connections established 2, dropped 1<br />

Last reset by us 00:05:36, due to holdtimer expired<br />

error<br />

Last reset by peer never, due to process restart

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!