Step 1 |
enable
Example:
|
Enables privileged EXEC mode.
- Enter your password if prompted.
|
Step 2 |
configure
terminal
Example:
Router# configure terminal
|
Enters global configuration mode.
|
Step 3 |
vrf
definition
vrf-name
Example:
Router(config)# vrf definition red
|
Configures a VRF routing table instance and enters VRF configuration mode.
|
Step 4 |
vnet
tag
number
Example:
Router(config-vrf)# vnet tag 100
|
Specifies the global numeric tag for the VRF.
- The same tag number must be configured for the same virtual network on each edge and trunk interface.
- When configuring EVN on a Cisco Catalyst 6500 family networking device, we recommend you assign a vnet tag number in the range 2 to 1000.
|
Step 5 |
description
string
Example:
Router(config-vrf)# description guest access
|
(Optional) Describes a VRF to help a network administrator review the configuration files.
|
Step 6 |
address-family
ipv4
Example:
Router(config-vrf)# address-family ipv4
|
Enters address family configuration mode to configure a routing session using standard IP version 4 address prefixes.
|
Step 7 |
exit-address-family
Example:
Router(config-vrf-af)# exit-address-family
|
Exits address family configuration mode.
|
Step 8 |
exit
Example:
|
Exits to global configuration mode.
|
Step 9 |
vrf
definition
vrf-name
Example:
Router(config)# vrf definition blue
|
Configures a VRF routing table instance and enters VRF configuration mode.
|
Step 10 |
vnet
tag
number
Example:
Router(config-vrf)# vnet tag 200
|
Specifies the global numeric tag for the VRF.
- The same tag number must be configured for the same VRF on each edge and trunk interface.
|
Step 11 |
description
string
Example:
Router(config-vrf) description Finance
|
(Optional) Describes a VRF to help a network administrator review configuration files.
|
Step 12 |
address-family
ipv4
Example:
Router(config-vrf) address-family ipv4
|
Enters address family configuration mode to configure a routing session using standard IPv4 address prefixes.
|
Step 13 |
exit-address-family
Example:
Router(config-vrf-af) exit-address-family
|
Exits address family configuration mode.
|
Step 14 |
exit
Example:
|
Exits to global configuration mode.
|
Step 15 |
interface
type number
Example:
Router(config)# interface gigabitethernet 1/1/1
|
Configures an interface type and enters interface configuration mode.
|
Step 16 |
ip
address
ip-address mask
Example:
Router(config-if)# ip address 10.1.1.1 255.255.255.0
|
Sets a primary IP address for the interface.
|
Step 17 |
vnet
trunk
[list vrf-list-name]
Example:
Router(config-if)# vnet trunk
|
Defines a trunk interface.
- By default, all VRFs defined with the
vrf
definition command run on all trunk interfaces on the router. Therefore, VRF red and VRF blue are now running on this interface.
- Use the
list vrf-list-name command elements to restrict VRFs running on a trunk interface.
|
Step 18 |
vnet
name
vrf-name
Example:
Router(config-if)# vnet name red
|
(Optional) Enters virtual network interface mode to configure features that apply to a specified VRF to override global VRF values.
- This step is not necessary if the global settings are acceptable for all of the VRFs on the interface.
- After this step, you configure one or more eligible commands, such as
ip
ospf
cost. (Not shown in this task.) For the list of commands that are used to override global VRF values, see Overview of Easy Virtual Network module, Table 2.
|
Step 19 |
exit-if-vnet
Example:
Router(config-if-vnet) exit-if-vnet
|
Exits VRF interface configuration mode and enters interface configuration mode.
|
Step 20 |
no
shutdown
Example:
Router(config-if) no shutdown
|
Restarts an interface.
|
Step 21 |
exit
Example:
|
Exits to global configuration mode.
|
Step 22 |
router
ospf process-id
Example:
Router(config)# router ospf 1
|
Configures an Open Shortest Path First (OSPF) routing process and associates it with a VRF.
- This OSPF instance has no VRF, so it is
vnet
global.
|
Step 23 |
network
ip-address wildcard area area-id
Example:
Router(config-router) network 10.0.0.0 255.255.255.0 area 0
|
Defines the interfaces and associated area IDs on which OSPF runs.
|
Step 24 |
exit
Example:
Router(config-router) exit
|
Exits to global configuration mode.
|
Step 25 |
router
ospf
process-id vrf vrf-name
Example:
Router(config)# router ospf 2 vrf red
|
Configures an OSPF routing process and associates it with a VRF.
- Specifies a different
process-id for each VRF because they each need their own OSPF instance.
|
Step 26 |
network
ip-address wildcard area
area-id
Example:
Router(config-router) network 10.0.0.0 255.255.255.0 area 0
|
Defines the interfaces and associated area IDs on which OSPF runs and the area ID for those interfaces.
|
Step 27 |
exit
Example:
Router(config-router) exit
|
Exits to global configuration mode.
|
Step 28 |
router
ospf
process-id
vrf
vrf-name
Example:
Router(config)# router ospf 3 vrf blue
|
Configures an OSPF routing process and associates it with a VRF.
- Specifies a different
process-id for each VRF because they each need their own OSPF instance.
|
Step 29 |
network
ip-address
wildcard
area
area-id
Example:
Router(config-router) network 10.0.0.0 255.255.255.0 area 2
|
Defines the interfaces and associated area IDs on which OSPF runs and the area ID for those interfaces.
|
Step 30 |
end
Example:
|
Ends the configuration session and returns to privileged EXEC mode.
|