09-19-2025 04:06 AM
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.
09-19-2025 04:23 AM - edited 09-19-2025 04:25 AM
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
=====Preenayamo Vasudevam=====
***** Rate All Helpful Responses *****
09-19-2025 04:57 AM
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.
09-21-2025 06:24 AM
#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.
=====Preenayamo Vasudevam=====
***** Rate All Helpful Responses *****
09-21-2025 06:28 AM
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
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide