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的認證模式為密碼認證,要輸入密碼才能登陸到交換機里。