Wednesday, June 17, 2015

VIRTUALIZATION LAYER 3 NX-OS & IOS

Cisco IOS CLI Cisco NX-OS CLI
Creating a VRF Instance
ip cef

ip vrf vrf-1


New Syntax:


vrf definition vrf-1

address-family ipv4

vrf context vrf-1


Assigning an Interface to a VRF
interface Ethernet2/1

ip vrf forwarding vrf-1

ip address 192.168.10.1 255.255.255.0

interface Ethernet2/1

vrf member vrf-1

ip address 192.168.10.1/24

Enabling BGP in a VRF
router bgp 10

address-family ipv4 vrf vrf-1

neighbor 192.168.10.2 remote-as 20

neighbor 192.168.10.2 activate

network 192.168.1.1 mask 255.255.255.255

exit-address-family

router bgp 10

vrf vrf-1

address-family ipv4 unicast

network 192.168.1.1/32

neighbor 192.168.10.2 remote-as 20

address-family ipv4 unicast

Enabling EIGRP in a VRF
interface Ethernet2/1

ip vrf forwarding vrf-1

ip address 192.168.10.1 255.255.255.0


router eigrp 10

address-family ipv4 vrf vrf-1

autonomous-system 10

network 192.168.10.0

no auto-summary

interface Ethernet2/1

vrf member vrf-1

ip address 192.168.10.1/24

ip router eigrp 10


router eigrp 10

vrf vrf-1

Enabling ISIS in a VRF
interface Ethernet2/1

ip vrf forwarding vrf-1

ip address 192.168.10.1 255.255.255.0

ip router isis 10


router isis 10

vrf vrf-1

net 49.0001.0000.0001.00

interface Ethernet2/1

vrf member vrf-1

ip address 192.168.10.1/24

ip router isis 10


router isis 10

vrf vrf-1

net 49.0001.0000.0001.00

Enabling OSPF in a VRF
interface Ethernet2/1

ip vrf forwarding vrf-1

ip address 192.168.10.1 255.255.255.0


router ospf 10 vrf vrf-1

network 192.168.10.0 0.0.0.255 area 0

interface Ethernet2/1

vrf member vrf-1

ip address 192.168.10.1/24

ip router ospf 10 area 0


router ospf 10

vrf vrf-1

Enabling RIPv2 in a VRF
interface Ethernet2/1

ip vrf forwarding vrf-1

ip address 192.168.10.1 255.255.255.0


router rip

address-family ipv4 vrf vrf-1

network 192.168.10.0

version 2

exit-address-family

interface Ethernet2/1

vrf member vrf-1

ip address 192.168.10.1/24

ip router rip 10


router rip 10

vrf vrf-1

Configuring Static Routes in a VRF
ip route vrf vrf-1 192.168.2.0 255.255.255.0 192.168.10.2 vrf context vrf-1

ip route 192.168.2.0/24 192.168.10.2



Verification Command Comparison

The following table compares some useful show commands for verifying and troubleshooting VRF instances.


Cisco NX-OS VRF Cisco IOS Software VRF Command Description
show vrf show ip vrf Displays a list of all configured VRF instances
show vrf <name> show ip vrf <name> Displays a specific VRF instance
show vrf <name> detail show ip vrf detail <name> Displays details for a specific VRF instance
show vrf <name> interface - Displays the interface assignment for a specific VRF instance
show vrf default - Displays a summary of the default VRF instance
show vrf detail show ip vrf detail Displays details for all VRF instances
show vrf interface show ip vrf interfaces Displays VRF interface assignments for all VRF instances
show vrf management - Displays a summary of the management VRF instance
- - -
show ip route vrf all - Displays routes for all VRF instances
show ip route vrf default - Displays routes for the default VRF instance
show ip route vrf management - Displays routes for the management VRF instance
show ip route vrf <name> show ip route vrf <name> Displays routes for a specific VRF instance (multiple sub-options)
- - -
show ip arp vrf <name> show ip arp vrf <name> Displays Address Resolution Protocol (ARP) entries for a specific VRF instance
- - -
show ip bgp vrf <name> show ip bgp vpnv4 vrf <name> Displays BGP commands for a specific VRF instance
show ip eigrp vrf <name> show ip eigrp vrf <name> Displays EIGRP information for specific VRF instance
show ip isis vrf <name> show isis <#> Displays ISIS commands for a specific VRF instance
show ip ospf vrf <name> show ip ospf <#> Displays OSPF information for a specific VRF instance
show ip rip vrf <name> show ip rip database vrf <name> Displays RIP information for a specific VRF instance
show ip static-route vrf <name> - Displays static routes for a specific VRF instance
- - -
show forwarding vrf <name> show ip cef vrf <name> Displays FIB information for a specific VRF (multiple sub-options)
- - -
show routing vrf - Displays a subset of the show vrf commands
show routing-context - Displays the current routing context

No comments:

Post a Comment