tft每日頭條

 > 生活

 > 華為交換機console口設置密碼

華為交換機console口設置密碼

生活 更新时间:2024-07-26 15:19:06
配置通過Console口首次登錄設備後進行基本配置的示例

組網需求

通過Console口首次登錄設備後,對設備進行基本配置并配置通過Telnet遠程登錄的0~4号用戶的級别為15級,認證方式為AAA認證。PC2與設備之間路由可達。

圖1 通過Console口首次登錄設備後進行基本配置組網圖

華為交換機console口設置密碼(華為交換機配置通過Console口首次登錄設備後進行基本配置的示例)1

配置思路

  1. 通過Console口登錄設備。
  2. 對設備進行基本配置。

操作步驟

  1. PC1通過設備Console口登錄設備,具體操作請參見通過Console口首次登錄設備
  2. 對設備進行基本配置
  3. # 設置系統的日期、時間和時區。

<HUAWEI> clock timezone BJ add 08:00:00 <HUAWEI> clock datetime 20:10:00 2012-07-26

  1. 說明: 在配置設備的當前時間和日期前,需要執行clock timezone命令配置時區。如果不配置時區,執行clock datetime命令配置的是UTC時間。
  2. # 設置設備名稱和管理IP地址。

<HUAWEI> system-view [HUAWEI] sysname Server [Server] interface ethernet 0/0/0 [Server-Ethernet0/0/0] ip address 10.137.217.177 24 [Server-Ethernet0/0/0] quit

  1. # 假如設備的網關是10.137.217.1,配置設備的缺省路由。

[Server] ip route-static 0.0.0.0 0 10.137.217.1

  1. # 設置Telnet用戶的級别和認證方式。

[Server] telnet server enable [Server] user-interface vty 0 4 [Server-ui-vty0-4] protocol inbound telnet [Server-ui-vty0-4] user privilege level 15 [Server-ui-vty0-4] authentication-mode aaa [Server-ui-vty0-4] quit [Server] aaa [Server-aaa] local-user admin1234 password irreversible-cipher Helloworld@6789 [Server-aaa] local-user admin1234 privilege level 15 [Server-aaa] local-user admin1234 service-type telnet [Server-aaa] quit

  1. 驗證配置結果
  2. 完成以上配置後,可以從PC2以Telnet方式遠程登錄設備。
  3. # 進入Windows的命令行提示符,并執行以下命令,通過Telnet方式登錄設備。

C:\Documents and Settings\Administrator> telnet 10.137.217.177

  1. 按“Enter”鍵後,在登錄窗口輸入用戶名和密碼,驗證通過後,出現用戶視圖的命令行提示符。(以下顯示信息僅為示意)

Login authentication Username:admin1234 Password: Info: The max number of VTY users is 20, and the number of current VTY users on line is 1. The current login time is 2012-07-26 20:10:05 08:00. <Server>

配置文件

Switch的配置文件

# sysname Server # telnet server enable # clock timezone BJ add 08:00:00 # aaa local-user admin1234 password irreversible-cipher %#%#aVW8S=aP=B<OWi1Bu'^R[=_!~oR*85r_nNY kA(I}[TiLiVGR-i/'DFGAI-O%#%# local-user admin1234 privilege level 15 local-user admin1234 service-type telnet # interface Ethernet0/0/0 ip address 10.137.217.177 255.255.255.0 # ip route-static 0.0.0.0 0.0.0.0 10.137.217.1 # user-interface vty 0 4 authentication-mode aaa user privilege level 15 protocol inbound telnet # return

備注:來自華為官網!

,

更多精彩资讯请关注tft每日頭條,我们将持续为您更新最新资讯!

查看全部

相关生活资讯推荐

热门生活资讯推荐

网友关注

Copyright 2023-2024 - www.tftnews.com All Rights Reserved