The console0 disable command disables the console port login function.
The undo console0 disable command enables the console port login function.
By default, the console port login function is enabled.
Application Scenario
By default, the administrator can log in to a switch through the console port. If the console port login function is not required, you can run the console0 disable command to disable this function. If this function is required, you can run the undo console0 disable command to enable this function.
Precautions
After the console0 disable command is run, this command does not take effect for users who have logged in to the device through the console port and takes effect for the users only after they exit from the console port using the quit command.
For devices that have the PNP button, you can press and hold the PNP button to enable the function of logging in through the console port.