. Configure the following on the vswitch:
<Switch> system-view
[Switch] vlan 10
[Switch-vlan10] quit
[Switch] interface vlan 10
[Switch-vlanif 10] ip address 192.168.1.2 24 // ensure that the IP address of the router is in the same network segment
[Switch-vlanif 10] quit
[Switch] interface ethernet 0/0/1
[Switch-interface ethernet 0/0/1] port hybrid untagged vlan 10 // Add vlan10 to the untag Mode
[Switch-interface, ethernet 0/0/1] quit
// After completing the preceding configuration, ping 192.168.1.1 and 192.168.1.2 on the vro and vswitch.
3. Configure the telnet logon command on the vswitch:
[Switch] aaa
[Switch-aaa] local-user admin password simple admin // The two admin accounts are account passwords, which can be customized.
[Switch-aaa] local-user admin privilege level 3 // Set account level, 3 is the highest level
[Switch-aaa] local-user service-type telnet // set the service type of the local account to telnet
[Switch-aaa] quit
[Switch] user-interface vty 0 4
[Switch-user-vty0-4] authentication-mode aaa // set the login user authentication method to aaa, set the account password in the account just set
[Switch-user-vty0-4] protocol bind all // bind user protocol to all, including telnet/ftp/ssh. These methods use this user interface to log on to the vswitch.
[Switch-user-vty0-4] quit
This article from the "Liu rate" blog, please be sure to keep this source http://liushuai.blog.51cto.com/3038219/1272934