Alcatel-Lucent 6850-48 ネットワークガイド

ページ / 1162
Multiple VRF Overview
Configuring Multiple VRF
page 25-8
OmniSwitch AOS Release 6 Network Configuration Guide
September 2009
Using the VRF Command Line Interface
The Multiple VRF feature uses a context-based command line interface (CLI). When the switch boots up, 
the default VRF instance is automatically created and active. Any commands subsequently entered apply 
to this default instance. If a different VRF instance is selected, then all subsequent commands apply to that 
instance. 
Note. Only those commands for features that are VRF aware are accepted within the context of a VRF 
instance. Default VRF applications are supported only in the default VRF instance. For more information 
about VRF supported applications, see 
The CLI command prompt indicates which instance is the active VRF context; the instance name is added 
as a prefix to the command prompt. For example, if VRF instance IpOne is the current context, then IpOne 
appears in the CLI command prompt. For example:
IpOne: ->
When the default VRF instance is the active context, no VRF name appears in the command prompt. For 
example, the following prompt indicates that the default VRF instance is the current context:
->
It is also possible to enter configuration commands for other non-default instances from within the default 
VRF CLI context. For more information about how to do this and additional examples of using the VRF 
context-based CLI, se
 and 
Note. All VRF instances are active in terms of routing and forwarding tasks whether or not the instance is 
the current CLI context. Selecting a VRF instance as the CLI context simply indicates the instance to 
which any configuration or show commands will apply.
ASCII-File-Only Syntax
When configuration commands for VRF-aware applications are configured and saved in an ASCII file 
(typically through the snapshot command) or the switch boot.cfg file, a prefix is added to these 
commands to indicate the name of the VRF instance to which the commands apply. For example:
! VRF
vrf vrfOne
! IP
vrf vrfOne ip interface intf100 address 100.1.1.1/24 vlan 100
vrf vrfOne ip interface intf101 address 101.1.1.1/24 vlan 101
vrf vrfOne ip router router-id 1.1.1.1
vrf vrfOne ip static route 192.100.1.0/24 gateway 100.1.1.10
! RIP
vrf vrfOne ip load rip
vrf vrfOne ip rip status enable
vrf vrfOne ip rip interface intf100 status enable
In this example, vrfOne is added to the beginning of the IP and RIP configuration command lines. This 
indicates that these commands apply to the vrfOne instance. If a command line does not contain an