Methods to access the switch CLI
This topic describes how to access the M4500 CLI by console, SSH port 22 or 1234, or Telnet port 1223.
You can access the switch CLI by any of the following methods:
- Console
- SSH using standard port 22
- SSH using special port 1234
- Telnet using special port 1223
Switch CLI access using a console
When a user logs in to the switch using serial console connection, the system automatically logs in to the switch Linux shell and prompts the user to log in to switch CLI, as shown in the following example:
Ubuntu 16.04 LTS M4500-48XF8C ttyS0
M4500-48XF8C login: admin (automatic login)
Last login: Tue Sep 17 05:38:06 UTC 2019 from 10.1.109.26
on pts/1
Welcome to Ubuntu 16.04 LTS (GNU/Linux 4.14.4 x86_64)
* Documentation: https://help.ubuntu.com/
Initializing console session. Press ^z to exit
Connecting to /dev/pts/0
DMA pool size: 33554432
PCI unit 0: Dev 0xb873, Rev 0x01, Chip BCM56873_A0, Driver
BCM56870_A0
SOC unit 0 attached to PCI device BCM56873_A0
UNIT0 CANCUN:
CIH: LOADED
Ver: 05.00.07
CMH: LOADED
Ver: 05.00.07
CCH: LOADED
Ver: 05.00.07
CEH: LOADED
Ver: 05.00.07
*** unit 0: ports capable of limited speed range cut-thru
*** unit 0: alpm level 2 loaded: 8 banks in combined-128
started!
Sep 17 05:42:26: %1-1-SIM: [0xe92bd554] sim_util.c(4227) 7
%% Switch was reset due to power disruption or unexpected
restart.
(Unit 1)>
Applying Global configuration, please wait ...
Applying Interface configuration, please wait ...
User:
Sep 17 05:42:36: %1-2-General: [0xf7800754] Boot!(0) 207 %%
Event(0xaaaaaaaa)
User:admin
Password:
If user authentication is successful, the system prompts the user to change the password, if the default password was used to log in to the switch CLI, as shown in the following example:
Default password authentication successful.
Change default password for NETWORK ‘admin’ user.
Password requires 8 or more characters.
New password:*********
Re-enter new password: *********
Password change is successful.
!!! For guest user access, change its default password
Login again using new password
User:admin
Password:*********
(M4500-48XF8C) #
Switch CLI access using SSH standard port 22
A user can log in to the switch by using an SSH connection over standard port 22 with the default user name admin and default password EndGame, as shown in the following example:
switch$ ssh admin@10.1.18.206
admin@10.1.18.206's password:
Welcome to Ubuntu 16.04 LTS (GNU/Linux 4.14.4 x86_64)
* Documentation: https://help.ubuntu.com/
Last login: Tue Sep 24 05:32:19 2019 from 10.1.51.30
Initializing console session. Press ^z to exit
Connecting to /dev/pts/0
User:
If the login is sucessful, the switch prompts the user to change the default Linux password, as shown in the following example:
switch$ ssh admin@10.1.18.206
admin@10.1.18.206's password:
Default password authentication successful.
Change default password for SYSTEM ‘admin’ user.
Password requires 8 or more characters.
New password:*********
Re-enter new password: *********
Password change is successful.
Login again using new password
After the new password is configured, the current session is terminated and the user is forced to log in again. When the user logs in again using SSH with the new password, the switch CLI is available.
For information about recovering access, see M4500 series Linux system and password recovery for SSH port 22.
Switch CLI access using SSH special port 1234
A user can log in to the switch by using an SSH connection over special port 1234 using default user name admin and default password (which is blank), as shown in the following example:
switch$ ssh admin@10.1.18.206 -p 1234
admin@10.1.18.206's password:
(M4500-48XF8C) #
If the login is sucessful, the switch prompts the user to change the default Linux password, as shown in the following example. After the new password is configured, the current session is terminated and the user is forced to log in again. When the user logs in again using SSH with the new password, the switch CLI is available.
Default password authentication successful.
Change default password for NETWORK user ‘admin’
Password requires 8 or more characters.
New password:*********
Re-enter new password: *********
Password change is successful.
!!! For guest user access, change its default password
Login again using new password
User:admin
Password:*********
(M4500-48XF8C) #
Switch CLI access using Telnet special port 1223
Access to the switch CLI using Telnet special port 1223 follows the same process as access to the switch CLI using SSH special port 1234.
Limitations for a guest user login
- A guest user cannot change the password. Only an admin user can change the password for a guest password.
-
A guest cannot log in using default password. Guest user access is denied until an admin user sets up the password for the guest user. If a guest attempts to log in using the default password, the following message is shown, after which the login prompt is displayed.
CODELogin using default password is not allowed. Please ask network admin to set new guest user password.
Limitations for SNMP login
- For SNMPv1 and SNMPv2, by default, no community strings such as private or public are configured.
- The SNMPv3 authentication protocol is MD5. SNMPv3 users and devicces cannot access the switch if the authentication protocol is None.