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.

feature bgp<br />

router bgp 65000.65088<br />

In IOS, it was preferred to configure a router ID, whereas in NX-OS it is a requirement that<br />

BGP obtain an IP address to use as a router ID or one must be configured, as demonstrated<br />

in Example 3-81.<br />

Example 3-81. Configuring the BGP Router ID<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)# router-id 192.168.1.1<br />

Congo# show run bgp<br />

!Comm<strong>and</strong>: show running-config bgp<br />

!Time: Wed Sep 30 19:17:36 2009<br />

version 4.2(2a)<br />

feature bgp<br />

router bgp 65000<br />

router-id 192.168.1.1<br />

With BGP configured as a feature <strong>and</strong> assigned a router ID, the next step is to configure<br />

address families, as demonstrated in Example 3-82. Address families are subcomponents of<br />

the global BGP configuration, <strong>and</strong> although not m<strong>and</strong>atory for basic BGP configurations,<br />

address families are required for use with advanced features such as route redistribution,<br />

load balancing, <strong>and</strong> route aggregation. As mentioned earlier in this chapter, NX-OS supports<br />

both IPv4 <strong>and</strong> IPv6 unicast <strong>and</strong> multicast address families.<br />

Example 3-82. Configuring BGP Address Families<br />

Click here to view code image<br />

Congo# config t<br />

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

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

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

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

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

Congo# sh run bgp<br />

!Comm<strong>and</strong>: show running-config bgp

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

Saved successfully!

Ooh no, something went wrong!