cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
358
Views
1
Helpful
4
Replies

unable to add vrf into a interface

kousik.dutta
Level 1
Level 1

Hi Team,

 

vrf already created, however I am not able to add a interface in a specific VRF.

Model: C1101-4P

 

Getting below error:

 

router(config-if)#vrf ?
% Unrecognized command
router(config-if)#ip vrf ?
% Unrecognized command
router(config-if)#ip vrf

 

Can you please help to share the command that will work.

4 Replies 4

balaji.bandi
Hall of Fame
Hall of Fame

what is the IOS XE code running, what interface you try to allocate the VRF ?

Built-in GE LAN ports (GigabitEthernet0/1/0 to 0/1/3) function as a Layer 2 switch by default. You cannot apply VRFs directly to these ports. Instead, you can use the dedicated WAN port (GigabitEthernet0/0/0

or you can create a SVI and allocate VRF.

Command syntax as below :

 

Interface GigabitEthernet0/0/0
vrf forwarding VRF-MYoffice

or as below for sub interface.

interface GigabitEthernet0/0/0.10 (for VLAN) encapsulation dot1Q
100 vrf forwarding VRF-MYoffice ip address 192.168.10.1 255.255.255.0

 

BB

=====Preenayamo Vasudevam=====

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

Current ver - c1100-universalk9.17.09.05f.SPA.bin

 

Im geting below error 

 

#int GigabitEthernet 0/1/2.150
^
% Invalid input detected at '^' marker.

 

Unable to create sub interface as well.

#int GigabitEthernet 0/1/2.150

Read my reply on the above post, you can only do sub-interface on Layer 3 router ports not the Layer 2 ports.

 

BB

=====Preenayamo Vasudevam=====

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

Vrf is L3 not L2 and cannot work in L2 port 

You need to assign vlan to L2 port and then add L3 SVI for vlan and add vrf under this SVI

MHM