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.

N7k-1(config)# vrf context vrf-customer1<br />

N7k-1(config-vrf)# address-family ipv4 unicast<br />

N7k-1(config-vrf-af-ipv4)# route-target import 65000:200<br />

N7k-1(config-vrf-af-ipv4)# route-target export 65000:100<br />

N7k-1(config)# vrf context vrf-customer2<br />

N7k-1(config-vrf)# address-family ipv4 unicast<br />

N7k-1(config-vrf-af-ipv4)# route-target import 65000:100<br />

N7k-1(config-vrf-af-ipv4)# route-target export 65000:200<br />

N7k-1(config)# interface Loopback100<br />

N7k-1(config-if)# vrf member vrf-customer1<br />

% Deleted all L3 config on interface loopback100<br />

N7k-1(config-if)# ip address 192.168.100.1/32<br />

N7k-1(config)# interface Loopback200<br />

N7k-1(config-if)# vrf member vrf-customer2<br />

% Deleted all L3 config on interface loopback200<br />

N7k-1(config-if)# ip address 192.168.200.1/32<br />

N7k-1(config-if)# router bgp 65000<br />

N7k-1(config-router)# vrf vrf-customer1<br />

N7k-1(config-router-vrf)# router-id 192.168.100.1<br />

N7k-1(config-router-vrf)# address-family ipv4 unicast<br />

N7k-1(config-router-vrf-af)# network 192.168.100.1/32<br />

N7k-1(config-router-vrf-af)# vrf vrf-customer2<br />

N7k-1(config-router-vrf)# router-id 192.168.200.1<br />

N7k-1(config-router-vrf)# address-family ipv4 unicast<br />

N7k-1(config-router-vrf-af)# network 192.168.200.1/32<br />

Example 12-11 shows the verification of the configuration. Route 192.168.100.1 was<br />

exported using 65000:100 from VRF vrf-customer1. VRF vrf-customer2 imported this route<br />

using the 65000:100 extended community. Conversely, route 192.168.200.1 was exported<br />

using the 65000:200 extended community from VRF vrf-customer2. VRF vrf-customer1<br />

imported this route using 65000:200.<br />

Example 12-11. VRF-Lite Route Import/Export Verification<br />

Click here to view code image<br />

N7k-1# show ip bgp vrf vrf-customer1 192.168.200.1<br />

BGP routing table information for VRF vrf-customer1,<br />

address family IPv4 Unicast<br />

BGP routing table entry for 192.168.200.1/32, version 5

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

Saved successfully!

Ooh no, something went wrong!