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.

0 sent paths<br />

Third-party Nexthop will not be computed.<br />

Local h<strong>os</strong>t: 192.168.1.1, Local port: 58042<br />

Foreign h<strong>os</strong>t: 192.168.1.2, Foreign port: 179<br />

fd = 37<br />

Establishing an external BGP (eBGP) session is similar to an internal BGP (iBGP) session<br />

with the primary difference being the remote-as number used. For an iBGP session, the AS<br />

number is the same as the AS number used on the BGP process, whereas with eBGP it is a<br />

different AS number. Example 3-85 demonstrates the configuration of an eBGP session.<br />

Example 3-85. Configuring an IPv4 eBGP Neighbor<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)#<br />

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

65001<br />

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

Congo(config-router-neighbor)# address-family ipv4 unicast<br />

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

You can verify the peering session by looking at the output from show ip bgp neighbor<br />

192.168.1.38, as demonstrated in Example 3-86.<br />

Example 3-86. Verification of an IPv4 eBGP Neighbor<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:01:13<br />

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

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

is 60 seconds<br />

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

00:00:47

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

Saved successfully!

Ooh no, something went wrong!