
interface gigabitethernet 0/0/10 //GE0/0/10 is the physical interface used for logging in to the switch through the web system on a PC. interface vlanif 10 //Configure VLANIF 10 as the management interface. Configure the management IP address and Telnet.local-user admin1234 service-type terminal //Set the access type to terminal, that is, console user. local-user admin1234 password irreversible-cipher //Create a local user named admin1234 and set its password to local-user admin1234 privilege level 15 //Set the user level to 15. authentication-mode aaa //Set the authentication mode of the user to AAA. # Set the authentication mode of the console interface to AAA, and create a local user. The method of changing the authentication mode is similar and is not provided here.) In V200R020 and later versions, the default authentication mode for the console user interface is password authentication. (From V200R010 to V200R019, the default authentication mode for the console user interface is AAA authentication. Configure an authentication mode for the console user interface.sysname Switch //Set the switch name to Switch. Before setting the current time, check the time zone and set a correct time zone offset to ensure the correct local time. clock datetime 10:10:00 //Set the current date and time. clock timezone BJ add 08:00:00 // BJ is the name of the time zone, and 08:00:00 indicates that the local time is 8 plus the system default UTC time zone. The following information is only for reference. Set the time zone based on the site requirements. The time zone varies depending on the location of a switch.
