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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Note<br />

You can find a full listing of template options on Cisco.com:<br />

http://tinyurl.com/a96dcbg.<br />

Example 3-89. Configuring BGP Peer Templates<br />

Click here to view code image<br />

Egypt# config t<br />

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

CNTL/Z.<br />

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

Egypt(config-router)# template peer iBGP-Peers<br />

Egypt(config-router-neighbor)# remote-as 65000<br />

Egypt(config-router-neighbor)# password 3<br />

cd87a249cfe3fb9aefc4f7f321a18044<br />

Egypt(config-router-neighbor)# update-source loopback0<br />

Egypt(config-router-neighbor)# timers 45 120<br />

Egypt(config-router-neighbor)# neighbor 192.168.1.1<br />

Egypt(config-router-neighbor)# inherit peer iBGP-Peers<br />

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

You can verify the peer using the peer template, as demonstrated in Example 3-90.<br />

Example 3-90. Verification of BGP Peer Using the Peer Template<br />

Click here to view code image<br />

Egypt# show ip bgp neighbor 192.168.1.1<br />

BGP neighbor is 192.168.1.1, remote AS 65000, ibgp<br />

link, Peer index 1<br />

Inherits peer configuration from peer-template iBGP-<br />

Peers<br />

Description: Congo<br />

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

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

Using loopback0 as update source for this peer<br />

TCP MD5 authentication is enabled<br />

Last read 00:00:04, hold time = 120, keepalive interval<br />

is 45 seconds<br />

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

00:00:10<br />

Received 6672 messages, 1 notifications, 0 bytes in

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

Saved successfully!

Ooh no, something went wrong!