Sunday, May 19, 2013

Converting IP VRF To VRF Defination Using IOS



Earlier
=====


R1#sh run | s vrf
ip vrf ABC
 rd 1:1
 route-target export 1:1
 route-target import 1:1
####################

R1(config)#vrf upgrade-cli multi-af-mode ?
  common-policies      IPv4 VRF policies are moved to common VRF policies
  non-common-policies  IPv4 VRF policies are not moved to common VRF
                       policies,but kept as ipv4 only VRF policies.


R1(config)#vrf upgrade-cli multi-af-mode common-policies
You are about to upgrade to the multi-AF VRF syntax commands.
You will lose any IPv6 address configured on interfaces
belonging to upgraded VRFs.

Are you sure ? [yes]: yes
Number of VRFs upgraded: 1


Later
====
R1#sh run | s vrf
vrf definition ABC
 rd 1:1
 route-target export 1:1
 route-target import 1:1
 !
 address-family ipv4
 exit-address-family

The prime reason you would want to do this possibly IPv6 introduction for PE-CE (6PE or 6VPE) since traditional " ip vrf " syntax doesn't natively support IPv6.


HTH...
Deepak Arora
Evil CCIE



No comments: