user-interface vty 0 4参数说明:
user-interface 是指用户界面。
vty ,全称为Virtual Teletype Terminal,指虚拟终端。不带vty的,就是实实在在的端口。
0 4 :0是初始值,4是结束值。表示可同时打开5个会话,进入交换机去配置命令,并且使用的配置都是一样的。
华为交换机中user interface 0和user-interface vty 0的区别为:渠道不同、认证模式不同、用户等级不同。
一、渠道不同
1、user interface 0:user interface 0是直接进入到交换机的端口中。
2、user-interface vty 0:user-interface vty 0是用telnet远程进入到交换机的端口中。
二、认证模式不同
1、user interface 0:user interface 0的认证模式为scheme模式,无需密码就能登陆到交换机里。
2、user-interface vty 0:user-interface vty 0的认证模式为密码认证,要输入密码才能登陆到交换机里。