Device# configure terminal
Device(config)# line vty 10 20
% Bad line number - VTY line number is not contiguous.
• You can delete lines which are contiguous and at the end of the list. In the controller mode, you can
delete one line at a time. You cannot delete lines in bulk. In autonomous mode, you can delete lines in
bulk.
Device# show run | sec line
no line auto-consolidation
line con 0
stopbits 1
line vty 0 4
transport input ssh
line vty 5 20
transport input all
Device# configure terminal
Device(config)# no line vty 5 20
Device(config)# end
Device#show run | sec line
line con 0
stopbits 1
line vty 0 4
transport input ssh
• You can't delete lines which are not contiguous and at the end of the list. You can't delete a line that will
result in a non-contiguous range when it is deleted. This will generate an error stating the line cannot be
deleted.
Device# show run | sec line
no line auto-consolidation
line con 0
stopbits 1
line vty 0 4
transport input ssh
line vty 5 9
transport input none
line vty 10 20
transport input all
Device# configure terminal
Device(config)# no line vty 5 9
% Cannot delete the 9 line number as it is not the last VTY line number
• You can't delete lines that are in use or are default lines.
Device#show run | sec line
no line auto-consolidation
line con 0
stopbits 1
line vty 0 4
transport input ssh
line vty 5 20
transport input ssh
Device#configure terminal
Router(config)#no line vty 15
% Can't delete last 16 VTY lines, lines in use, statbit: 0x10C40, tiptop: 590
% process name: SSH Process
• You can modify subranges in autonomous mode. This will cause the lines to split which will cause a
reverse sync of the configuration. You can’t modify subranges in the controller mode. This is a behavioural
change between the controller and autonomous modes. In the controller mode, any modification of
subranges is rejected to avoid discrepancy with the configuration pushed from a controller.
System Management Configuration Guide, Cisco IOS XE Bengaluru 17.4.x (Catalyst 9400 Switches)
436
Line Auto Consolidation
Line Auto Consolidation