Cisco – Can not create sub-interface like `interface gigabitEthernet 2/1.100`

ciscointerfacepacket-tracer

I follow a tutorial, there shows the method of create sub-interface:

but in my actual situation, I can not do this:

Router(config)#interface gigabitEthernet 2/1.100
                                           ^
% Invalid input detected at '^' marker.

my router is CGR 1240 in Cisco Packet Tracer.

Best Answer

The GCR routers do not support the sub-interface in Packet tracer, you can change your router to a high-level router, such as ISR4321, then you can create easily for experiment:

RT1(config)#interface gigabitEthernet 0/0/0.100 
RT1(config-subif)#
%LINK-5-CHANGED: Interface GigabitEthernet0/0/0.100, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/0/0.100, changed state to up