Users Guide

Table Of Contents
Prevent configuration changes
You can prevent configuration changes that are made on the switch in sessions other than the current CLI session using the
lock command. To prevent and allow configuration changes in other sessions, use the lock and unlock commands in EXEC
mode.
When you enter the lock command, users in other active CLI sessions cannot make configuration changes. When you close the
CLI session in which you entered the lock command, configuration changes are automatically allowed in all other sessions.
OS10# lock
OS10# unlock
Conflicting interface ranges
After you apply one or more VLANs to an interface using the switchport trunk allowed vlan command, and try to
delete some of the VLANs from the candidate configuration, the system displays an error message. For example, the following is
a configuration without conflicts:
OS10# start transaction
OS10# configure terminal
OS10(config)# interface range vlan 2-3
OS10(conf-range-vl-2-3)# exit
OS10(config)# interface range vlan 40-45
OS10(conf-range-vl-40-45)# exit
OS10(config)#
OS10(config)# interface range port-channel 2-3
OS10(conf-range-po-2-3)# switchport mode trunk
OS10(conf-range-po-2-3)# switchport trunk allowed vlan 2-3
OS10(conf-range-po-2-3)# switchport trunk allowed vlan 40-45
OS10(conf-range-po-2-3)# exit
OS10(config)# no interface range vlan 20-30
OS10(config)# do commit
The system already contains the following configuration:
OS10(config)# do show running-configuration interface port-channel
!
interface port-channel3
no shutdown
switchport mode trunk
switchport access vlan 1
switchport trunk allowed vlan 2-3,40-45
OS10(config)#
OS10(config)# do show running-configuration interface vlan
!
interface vlan1
no shutdown
!
interface vlan2
no shutdown
!
interface vlan3
no shutdown
!
interface vlan4
no shutdown
!
interface vlan5
no shutdown
The following depicts a conflicting configuration wherein a few VLANs are created and applied to an interface and then a subset
of VLANs are removed from the candidate configuration:
OS10(config)# do start transaction
OS10(config)# interface range port-channel 3
60
CLI Basics