R1(telnet server)----------------SW1------------------------R2(telnet client) R1:123.123.123.123/24 R2:123.123.123.133
----------------------------------------- R1(Telnet server) ----------------------------------------- <Huawei> <Huawei>cl <Huawei>clo <Huawei>clock d <Huawei>clock datetime15:00:00 2017-03-19 (设置时间日期) <Huawei>sy <Huawei>system-view Enter system view, return user viewwith Ctrl+Z. [Huawei]sy [Huawei]sysname R1 [R1] [R1]int [R1]interface g [R1]interface GigabitEthernet 0/0/1 [R1-GigabitEthernet0/0/1]ip add [R1-GigabitEthernet0/0/1]ip address10.1.1.1 24 [R1-GigabitEthernet0/0/1] [R1-GigabitEthernet0/0/1]un [R1-GigabitEthernet0/0/1]undo sh [R1-GigabitEthernet0/0/1]undoshutdown Info: Interface GigabitEthernet0/0/1is not shutdown. [R1-GigabitEthernet0/0/1]q [R1] [R1]us [R1]user-i [R1]user-interface v [R1]user-interface vty 0 4 [R1-ui-vty0-4]auth [R1-ui-vty0-4]authentication-mode p [R1-ui-vty0-4]authentication-mode password Please configure the login password (maximum length 16):123456 [R1-ui-vty0-4]set auth [R1-ui-vty0-4]set authentication p [R1-ui-vty0-4]set authentication password c [R1-ui-vty0-4]set authentication password cipher 123456 [R1-ui-vty0-4]us [R1-ui-vty0-4]user pr [R1-ui-vty0-4]user privilege l [R1-ui-vty0-4]user privilege level 3 [R1-ui-vty0-4]pro [R1-ui-vty0-4]protocol inb [R1-ui-vty0-4]protocol inbound t [R1-ui-vty0-4]protocol inbound telnet [R1-ui-vty0-4]dis [R1-ui-vty0-4]display this [V200R003C00] # user-interface con 0 authentication-mode password user-interface vty 0 4 authentication-mode password user privilege level 3 set authentication password cipher%$%$/e+B,Dj_[9d1=&Cwa#9>,"%n6K#Q3PHX&WQM-[=a ksv5"%q,%$%$ user-interface vty 16 20 # return [R1-ui-vty0-4] [R1-ui-vty0-4] [R1-ui-vty0-4]quit [R1] [R1] <R1>save (保存配置 选“Y”)
------------------------------------------------------------------------- R2(Telnet client) --------------------------------------------------------------------------
<Huawei>sy <Huawei>system-view Enter system view, return user viewwith Ctrl+Z. [Huawei] [Huawei]sy [Huawei]sysname R2 [R2] [R2]int [R2]interface g [R2]interface GigabitEthernet0/0/2 [R2-GigabitEthernet0/0/2]ip add [R2-GigabitEthernet0/0/2]ip address10.1.1.2 24 [R2-GigabitEthernet0/0/2]un [R2-GigabitEthernet0/0/2]undo sh [R2-GigabitEthernet0/0/2]undoshutdown Info: Interface GigabitEthernet0/0/2is not shutdown. [R2-GigabitEthernet0/0/2] [R2-GigabitEthernet0/0/2]quit [R2] [R2]quit <R2> <R2>tel <R2>telnet 10.1.1.1(远程telnet登录telnet_server_R2) Trying 10.1.1.1... Press CTRL+K toabort Connected to10.1.1.1 ... Loginauthentication Password: (此处输入Telnet_Server_R1上设置的远程登录密码123456) <R1> -------此处说明已远程登陆进telnet_Server_R1,可以进行配置) <R1> ------- <R1>quit (退出telnet远程登录) Configuration console exit, please retry tolog on Info: Theconnection was closed by the remote host. <R2>此处说明已经返回Telnet_Client_R2 <R2>save (保存配置 选“Y”)
|