路由器 telnet配置
生活随笔
收集整理的這篇文章主要介紹了
路由器 telnet配置
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
路由器 telnet配置
基于password 的遠程登錄
R1
<R1>system-view [R1]interface GigabitEthernet 0/0/0 [R1-GigabitEthernet0/0/0]ip address 10.0.12.1 24 [R1-GigabitEthernet0/0/0]q [R1]telnet server enable # 開啟telnet Info: The Telnet server has been enabled. [R1]user-interface vty 0 4 # 進入用戶虛擬模板 [R1-ui-vty0-4]authentication-mode password # 配置認證方式 [R1-ui-vty0-4]set authentication password cipher 123456 # 配置密碼為密文傳輸 [R1-ui-vty0-4]user privilege level 3 # 定義用戶權限級別為3級 [R1-ui-vty0-4]protocol inbound telnet # 使用telnet 協議遠程登錄訪問# 這里可以配置為 ssh 或 telnet 或者all(ssh and telnet)R2
在 R2 上主要是驗證 telnet 遠程連接
<R2>system-view [R2]interface GigabitEthernet 0/0/0 [R2-GigabitEthernet0/0/0]ip address 10.0.12.2 24 [R2-GigabitEthernet0/0/0]q [R2]q # 要退出到用戶視圖才能使用 telnet 遠程登錄到其它設備 <R2>telnet 10.0.12.1 Trying 10.0.12.1 ... Press CTRL+K to abort Connected to 10.0.12.1 ...Login authenticationPassword: Info: The max number of VTY users is 10, and the numberof current VTY users on line is 1.The current login time is 2021-05-13 14:10:51. <R1>基于aaa 的遠程登錄
R3
<Huawei>system-view [Huawei]sysname R3 [R3] [R3]interface GigabitEthernet 0/0/0 [R3-GigabitEthernet0/0/0]ip address 10.0.34.3 24 [R3-GigabitEthernet0/0/0]q [R3] [R3]telnet server enable [R3]user-interface vty 0 4 [R3-ui-vty0-4]authentication-mode aaa # 配置認證方式為aaa 認證 [R3-ui-vty0-4]protocol inbound telnet [R3-ui-vty0-4]q [R3] [R3]aaa # 進入 aaa 視圖 [R3-aaa]local-user test password cipher 123456 [R3-aaa]local-user test service-type telnet [R3-aaa]q [R3]R4
在R4 上面驗證 telnet aaa 驗證方式是否成功。
<Huawei>system-view [Huawei]sysname R4 [R4] [R4]interface GigabitEthernet 0/0/0 [R4-GigabitEthernet0/0/0]ip address 10.0.34.4 24 [R4-GigabitEthernet0/0/0]ping 10.0.34.3 # 連通性測試PING 10.0.34.3: 56 data bytes, press CTRL_C to breakReply from 10.0.34.3: bytes=56 Sequence=1 ttl=255 time=30 ms May 13 2021 14:19:02-08:00 R4 DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5.25. 191.3.1 configurations have been changed. The current change number is 2, the ch ange loop count is 0, and the maximum number of records is 4095.Reply from 10.0.34.3: bytes=56 Sequence=2 ttl=255 time=10 msReply from 10.0.34.3: bytes=56 Sequence=3 ttl=255 time=50 msReply from 10.0.34.3: bytes=56 Sequence=4 ttl=255 time=30 msReply from 10.0.34.3: bytes=56 Sequence=5 ttl=255 time=30 ms--- 10.0.34.3 ping statistics ---5 packet(s) transmitted5 packet(s) received0.00% packet lossround-trip min/avg/max = 10/30/50 ms[R4-GigabitEthernet0/0/0]q [R4]q <R4> <R4>telnet 10.0.34.3 Trying 10.0.34.3 ... Press CTRL+K to abort Connected to 10.0.34.3 ...Login authenticationUsername:test Password: Info: The max number of VTY users is 10, and the numberof current VTY users on line is 1.The current login time is 2021-05-13 14:29:06. <R3> <R3> <R3> <R3> <R3>q <R4>總結
以上是生活随笔為你收集整理的路由器 telnet配置的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 不会比这更详细的前端工程化的入门教程了
- 下一篇: IDEA搭建Go语言开发环境