Alcatel-Lucent 6850-48 网络指南

下载
页码 1162
Configuring Multiple VRF
Configuring VRF Instances
OmniSwitch AOS Release 6 Network Configuration Guide
September 2009
page 25-15
Assigning IP Interfaces to a VRF Instance
When a VRF instance is created or an existing instance is selected, any IP interface subsequently config-
ured is associated with that instance. For example, the following commands select the IpOne VRF 
instance and configure an IP interface for that instance:
-> vrf IpOne
IpOne: -> ip interface intf100 address 100.1.1.1/24 vlan 100
IpOne: ->
Once an IP interface is associated with a VRF instance, Layer 3 traffic on that interface is routed within 
the domain of the VRF instance. In other words, such traffic is only routed between other IP interfaces that 
are associated with the same VRF instance. Any additional routing protocol traffic configured for that 
same interface is also routed within the associated VRF domain.
Use the following guidelines when configuring IP interfaces for a VRF instance:
• A single IP interface as well as the VLAN associated with the interface, can only belong to one VRF 
instance at a time. 
• Once a VLAN is associated with a specific VRF instance, configuring an interface for that VLAN 
within the context of any other instance, is not allowed. For example, if the first IP interface config-
ured for VLAN 100 was associated with the VRF IpOne instance, then any subsequent IP interface 
configuration for VLAN 100 is only allowed within the context of the IpOne instance.
• A VRF instance can have multiple VLAN associations, even though a VLAN can only have one VRF 
association. 
Configuring Routing Protocols for a Specific VRF Instance
There are no additional CLI commands or parameters required to associate a routing protocol configura-
tion (for example, RIP, BGP, OSPF) with a specific VRF instance. Instead, the VRF CLI context is used 
to determine the association between a specific routing configuration and a VRF instance. For example, if 
a BGP routing instance is configured when VRF instance IpOne is the active CLI context, then the BGP 
routing instance is associated with IpOne. All traffic for the BGP instance is routed and forwarded on the 
interfaces associated with VRF IpOne.
For more information about the interaction of switch applications with VRF instances, see 
. To see examples of configuring routing protocol instances within 
the context of a VRF instance, refer to 
Removing a VRF Instance
To remove a VRF instance from the switch configuration, use the no form of the vrf command. For exam-
ple:
-> no vrf IpTwo
To view a list of VRF instances configured on the switch, use the 
 command. For more informa-
tion about this command, see the OmniSwitch CLI Reference Guide.