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.

N7k-1(config)# int mgmt0<br />

N7k-1(config-if)# ip address 10.91.86.180/25<br />

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

N7k-1(config-vrf)# ip route 0.0.0.0/0 10.91.86.129<br />

N7k-1(config)# end<br />

Example 12-4. NX-OS Default <strong>and</strong> Management VRF Routing Table Isolation<br />

Click here to view code image<br />

N7k-1# show ip route<br />

IP Route Table for VRF "default"<br />

'*' denotes best ucast next-hop<br />

'**' denotes best mcast next-hop<br />

'[x/y]' denotes [preference/metric]<br />

172.17.22.0/24, ubest/mbest: 1/0, attached<br />

*via 172.17.22.2, Vlan50, [0/0], 12w4d, direct<br />

172.17.22.1/32, ubest/mbest: 1/0<br />

*via 172.17.22.1, Vlan50, [0/0], 5w0d, hsrp<br />

172.17.22.2/32, ubest/mbest: 1/0, attached<br />

*via 172.17.22.2, Vlan50, [0/0], 12w4d, local<br />

172.17.23.0/24, ubest/mbest: 1/0, attached<br />

N7k-1# show ip route vrf management<br />

IP Route Table for VRF "management"<br />

'*' denotes best ucast next-hop<br />

'**' denotes best mcast next-hop<br />

'[x/y]' denotes [preference/metric]<br />

0.0.0.0/0, ubest/mbest: 1/0<br />

*via 10.91.86.129, [1/0], 12w4d, static<br />

10.91.86.128/25, ubest/mbest: 1/0, attached<br />

*via 10.91.86.180, mgmt0, [0/0], 12w4d, direct<br />

10.91.86.180/32, ubest/mbest: 1/0, attached<br />

*via 10.91.86.180, mgmt0, [0/0], 12w4d, local<br />

VRF Operational Comm<strong>and</strong>s<br />

Because NX-OS was built from the ground up with VRF support in mind, operational<br />

comm<strong>and</strong>s have a specific, consistent placement of a keyword at the end of a comm<strong>and</strong> to<br />

specify a VRF. As mentioned earlier, the default VRF is used when no VRF is specified in<br />

a particular comm<strong>and</strong>. To continue to provide the network engineer with a more streamlined<br />

configuration approach, NX-OS also supports a routing-context mode, which sets the scope

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

Saved successfully!

Ooh no, something went wrong!