Configure the Maximum Number of VRFs

Perform this procedure to change the maximum number of VRFs and Layer 3 VSNs that the switch supports. Increasing the number of VRFs or Layer 3 VSNs can be useful in a WAN scenario or other large network.

The maximum number of supported VRFs and Layer 3 VSNs differs depending on the hardware platform. For more information about maximum scaling numbers, see VOSS Release Notes.

About this task

Important

Important

If you enable this boot config flag, and the switch operates in SPBM mode (default configuration), the switch reduces the number of configurable VLANs. In such a configuration, the switch reserves VLANs 3500 to 3998 for internal use. You cannot use these VLANs as either platform VLANs or B-VLANs. You can still use the reserved VLAN range for customer VLANs (C-VLAN) on Flex UNI and B-VLANs on FE-VID.

Enabling the boot config flag to use more than 24 VRFs on VSP 8600 Series requires a license.

Before you begin

  • If the switch operates in SPBM mode, before you enable the boot config flag, perform the following actions:

    • Check in-VLAN filters. If a filter references a VLAN in the 3500 to 3998 range, you must delete the filter or the filter configuration fails when you restart the switch.

    • Delete VLANs in the 3500 to 3998 range.

  • Before you disable the boot config flag on VSP 8600 Series, delete additional VRFs if more than 24 exist.

Procedure

  1. Enter Global Configuration mode:

    enable

    configure terminal

  2. Increase the maximum number of VRFs and Layer 3 VSNs:

    boot config flag vrf-scaling

  3. Verify the configuration:

    show boot config flags

  4. Save the configuration:

    save config

  5. Restart the switch for the change to take effect:

    reset

Examples

Enable the boot config flag to increase the maximum number of VRFs and Layer 3 VSNs. In the following example, the switch operates in SPBM mode and reserves the VLAN ID range of 3500 to 3999. If the switch does not operate in SPBM mode, the system does not display the VLAN warning message when you enable VRF scaling.

Switch:1>en
Switch:1#configure terminal
Enter configuration commands, one per line.  End with CNTL/Z.
Switch:1(config)#boot config flag vrf-scaling
Warning: Vlan 3500 to 3999 will be reserved for internal use.

Warning: Please save the configuration and reboot the switch
         for this configuration to take effect.
Note

Note

Flag support can vary across hardware models.

Switch:1#show boot config flags
flags advanced-feature-bandwidth-reservation low
flags block-snmp false
flags debug-config false
flags debugmode false
flags dvr-leaf-mode false
flags enhancedsecure-mode false
flags factorydefaults false
flags flow-control-mode true
flags ftpd true
flags hsecure false
flags ipv6-egress-filter true
flags ipv6-mode false
flags linerate-directed-broadcast false
flags logging true
flags nni-mstp false
flags reboot true
flags spanning-tree-mode mstp
flags spbm-config-mode true
flags sshd true
flags syslog-rfc5424-format true
flags telnetd true
flags tftpd true
flags trace-logging false
flags urpf-mode true
flags verify-config true
flags vrf-scaling true
flags vxlan-gw-full-interworking-mode false

The following example shows the message that the system displays it if you try to enable the boot config flag and configured VLANs use IDs between 3500 and 3999.

Switch:1>en
Switch:1#configure terminal
Enter configuration commands, one per line.  End with CNTL/Z.
Switch:1(config)#boot config flag vrf-scaling

Error: Delete all configured platform vlans between 3500 and 3999 to enable vrf-scaling.