Configuration commands
Use these M4500 CLI commands to create a VRF instance, set its description and maximum routes, and assign interfaces to the VRF.
ip vrf
Use this command to create a virtual router with a specified name and enters VRF configuration mode. Alternatively, you can use no ip vrf command to delete the virtual router with the specified name.
| Default | No VRs are defined |
| Format |
|
| Mode | Global Config |
| Fields | Definition |
|---|---|
| vrf-name | The name of the virtual router. The name is a string of up to 64 characters from an ASCII set. |
maximum routes
Use this command to reserve the number of routes allowed and sets the maximum limit on the number of routes for a virtual router instance in the total routing table space for the router, provided there is enough free space in the router’s total routing table. Alternatively, you can use no maximum routes command to remove any reservation for the number of routes allowed in the virtual router instance and clears the warning threshold value.
| Default | Limited by the number of free routes available |
| Format |
|
| Mode | Virtual Router Config |
| Fields | Definition |
|---|---|
| limit | The number of routes for a virtual router instance in the total routing table space for the router. The limit ranges from 1 to 4294967295. If the limit value is greater than the total router table size, it is limited to the total size. |
| Warn threshold | The threshold value ranges from 1 to 100 and indicates the percent of the limit value at which a warning message is to be generated. If no limit value is given the platform maximum is taken as the limit value. |
description
Use this command to configure a descriptive text for a virtual router. Alternatively, you can use no description command to remove the descriptive text configuration for a virtual router.
| Default | None |
| Format |
|
| Mode | Virtual Router Config |
| Fields | Definition |
|---|---|
| text | The descriptive text for the virtual router. A set of ASCII characters up to 512 characters in length. |
ip vrf forwarding
Use this command to associate a routing interface with a virtual router. Alternatively, you can use no ip vrf command to disassociate a routing interface from the configured virtual router and associates it back to the default virtual router.
| Default | Default virtual router |
| Format |
|
| Mode | Interface Config |
| Fields | Definition |
|---|---|
| vrf-name | The name of the virtual router. |