關於華為交換機設備遠程配置
通常我們在配置華為交換機遠程配置只需做一下操作:
1、HTTP/HTTPS相關服務
#http secure-server enable
#http server enable
2、Telnet服務
#telnet server enable
3、SSH服務
#stelnet server enable
#ssh user admin authentication-type password
上面的配置在V200R019C10以及之前的版本都適用,只要用戶名、服務類型、等級對了、VTY允許就沒有任何問題,但是華為最近出了一款智選系列產品(還沒有華為Logo),華為的設備為新版本V200R20以及之后的版本需要注意。
在上面圖片中可以看到這個版本是V200R021版本,http的服務都是沒問題的,但打不開WEB,通過display tcp status一看,沒有偵聽對應的端口號;
#http server enable
Info:The HTTP server has been already started.
Warning: After configuring the source interface orsource address, the listening socket will be created.
#提示幫了很大的忙,說沒有指定源接口或者源地址,只有指定后設備才會listening(偵聽)
#http server-source all-interface
Warning:The operation will reboot the HTTP server. Continue? [Y/N]:y
Warning:It expandes the range of accessed Ip.
#指定后就可以訪問了。
#telnet server-source all
Warning:Telnet server source configuration will take effect in the next login. Continue?[Y/N]:y
Warning:It expandes the range of accessed Ip.
包括Telnet、以及SSH也是,默認情況下沒有指定任何接口,也就是不能從任何接口登錄設備,必須指定接口或者all才能訪問。