vrf attach
Syntax
vrf attach <VRF-NAME>
no vrf attach <VRF-NAME>
Description
Assigns the GRE tunnel to a VRF. By default, all tunnels are automatically assigned to the default VRF.
The
no
form of this command assigns the GRE tunnel to the default VRF (default
).
Command context
config-gre-if
Parameters
<VRF-NAME>
Specifies the VRF name to which to assign the GRE tunnel.
Authority
Administrators
Examples
This example assigns GRE tunnel 27 to vrf1.
switch(config)# interface tunnel 27 mode gre ipv4 switch(config-gre-if)# vrf attach vrf1
This example assigns GRE tunnel 27 to the default VRF.
switch(config)# interface tunnel 27 switch(config-gre-if)# no vrf attach vrf1