83-19
Catalyst 4500 Series Switch, Cisco IOS Software Configuration Guide - Cisco IOS XE 3.9.xE and IOS 15.2(5)Ex
Chapter 83 Configuring Easy Virtual Network
Configuration Examples for Configuring EVN
network 10.0.0.0 255.255.255.0 area
Example: Virtual Networks Using OSPF with ip ospf vnet area Command
This example differs from the prior example regarding the association between OSPF instances and a
particular interface. In this example, OSPF is running on all of the virtual networks of a trunk interface.
The
ip ospf vnet area
command associates the GigabitEthernet 0/0/0 interface with the three OSPF
instances.
vrf definition red
vnet tag 100
address-family ipv4
exit-address-family
!
vrf definition blue
vnet tag 200
address-family ipv4
exit-address-family
!
interface gigabitethernet 0/0/0
ip address 10.0.0.1 255.255.255.0
vnet trunk
ip ospf vnet area 0
vnet name red
ip ospf cost 100
vnet name blue
ip ospf 3 area 2
!
router ospf 1
log-adjacency-changes detail
router ospf 2 vrf red
log-adjacency-changes
router ospf 3 vrf blue
log-adjacency-changes
Example: Overriding Command Inheritance
In the following example, the OSPF cost of 30 for VRF blue overrides the OSPF cost of 20 for the other
VRFs on the interface:
interface gigabitethernet 2/0/0
vnet trunk
ip address 10.1.1.1 255.255.255.0
! Set OSPF cost for all VRFs on this interface to 20.
ip ospf cost 20
vnet name blue
description Subinterface for VRF NG blue
! Set OSPF cost for blue to 30.
ip ospf cost 30
The show derived command indicates the subinterface changed to a cost of 30:
Device(config-if-vnet)# do show derived | s interface GigabitEthernet2/0/0
interface GigabitEthernet2/0/0
vnet trunk
Summary of Contents for Catalyst 4500 Series
Page 2: ......
Page 4: ......
Page 2086: ...Index IN 46 Software Configuration Guide Release IOS XE 3 9 0E and IOS 15 2 5 E ...