How is an interface on an NE router switched between Layer 2 and Layer 3 modes

By default, an Ethernet interface of a Layer 3 device, such as a router, usually works in Layer 3 mode. To add the interface to a VLAN or perform other Layer 2 interface configurations, you must run the portswitch command to switch the Layer 3 interface to the Layer 2 mode. To switch the Layer 2 mode back to the Layer 3 mode, run the undo portswitch command. To switch Ethernet interfaces from the Layer 3 mode to the Layer 2 mode in batches, run the portswitch batch command. To switch Ethernet interfaces from the Layer 2 mode to the Layer 3 mode in batches, run the undo portswitch batch command.

Scroll to top