Command syntax for Layer 2 switching

To globally disable Layer 2 switching on a Layer 3 switch, enter commands such as the following.

(config)# route-only
(config)# exit
device# write memory
device# reload

To re-enable Layer 2 switching on a Layer 3 switch, enter the following commands.

device(config)# no route-only
device(config)# exit
device# write memory
device# reload

To disable Layer 2 switching only on a specific interface, go to the interface configuration level for that interface, and then disable the feature. The following commands show how to disable Layer 2 switching on port 2.

device(config)# interface ethernet 2
device(config-if-e1000-2)# route-only