Step 1 |
enable
|
Enables privileged EXEC mode.
|
Step 2 |
configure
terminal
Router# configure terminal
|
Enters global configuration mode.
|
Step 3 |
vrf
definition
vrf-name
Router(config)# vrf definition red
|
Configures a VRF routing table instance and enters VRF configuration mode.
|
Step 4 |
vnet
tag
number
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
Router(config-vrf)# description guest access
|
(Optional) Describes a VRF to help a network administrator review the configuration files.
|
Step 6 |
address-family
ipv4
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
Router(config-vrf-af)# exit-address-family
|
Exits address family configuration mode.
|
Step 8 |
exit
|
Exits to global configuration mode.
|
Step 9 |
vrf
definition
vrf-name
Router(config)# vrf definition blue
|
Configures a VRF routing table instance and enters VRF configuration mode.
|
Step 10 |
vnet
tag
number
Router(config-vrf)# vnet tag 200
|
Specifies the global numeric tag for the VRF.
|
Step 11 |
description
string
Router(config-vrf) description Finance
|
(Optional) Describes a VRF to help a network administrator review configuration files.
|
Step 12 |
address-family
ipv4
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
Router(config-vrf-af) exit-address-family
|
Exits address family configuration mode.
|
Step 14 |
exit
|
Exits to global configuration mode.
|
Step 15 |
interface
type number
Router(config)# interface gigabitethernet 1/1/1
|
Configures an interface type and enters interface configuration mode.
|
Step 16 |
ip
address
ip-address mask
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]
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
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
Router(config-if-vnet) exit-if-vnet
|
Exits VRF interface configuration mode and enters interface configuration mode.
|
Step 20 |
no
shutdown
Router(config-if) no shutdown
|
|
Step 21 |
exit
|
Exits to global configuration mode.
|
Step 22 |
router
ospf process-id
Router(config)# router ospf 1
|
Configures an Open Shortest Path First (OSPF) routing process and associates it with a VRF.
|
Step 23 |
network
ip-address wildcard area area-id
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
Router(config-router) exit
|
Exits to global configuration mode.
|
Step 25 |
router
ospf
process-id vrf vrf-name
Router(config)# router ospf 2 vrf red
|
Configures an OSPF routing process and associates it with a VRF.
|
Step 26 |
network
ip-address wildcard area
area-id
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
Router(config-router) exit
|
Exits to global configuration mode.
|
Step 28 |
router
ospf
process-id
vrf
vrf-name
Router(config)# router ospf 3 vrf blue
|
Configures an OSPF routing process and associates it with a VRF.
|
Step 29 |
network
ip-address
wildcard
area
area-id
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
|
Ends the configuration session and returns to privileged EXEC mode.
|