HCDA-6-配置telnet远程管理

1、设备的远程管理线路是哪个?

  vty线路

2、vty线路和console线路有什么不同?

  vty线路可以同时允许多个用户登录,二console允许一个用户同时访问

3、远程管理的方式有哪些?

  Telnet协议和SSH协议

4、Telnet和SSH有何不同?

  Telnet是明文协议,所有的数据都是以明文的方式发送的,不安全

  SSH是密文协议,数据经过加密后再发送,安全性更高

              使用telnet远程登录设备

[R1]interface GigabitEthernet 0/0/0
[R1-GigabitEthernet0/0/0]ip add    
[R1-GigabitEthernet0/0/0]ip address 12.1.1.1 24
Oct 22 2018 14:04:39-08:00 R1 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP 
on the interface GigabitEthernet0/0/0 has entered the UP state. 
[R1-GigabitEthernet0/0/0]quit
[R1]disp    
[R1]display ip ?
  accounting           <Group> accounting command group
  as-path-filter       Specify regular expression access list number
  community-filter     Add a community-filter entry
  extcommunity-filter  Match BGP/VPN extended community filter
  ha                   Display information of socket HA
  host                 Host table(s)
  interface            Show information of interfaces
  ip-prefix            Specify an address prefix-list
  ipv6-prefix          Specify an IPv6 address prefix-list
  netstream            <Group> netstream command group
  policy-based-route   Display policy based routing information
  pool                 <Group> pool command group
  prefix-limit         Prefix limit
  rd-filter            Route-distinguisher filter
  routing-table        Routing table
  socket               <Group> socket command group
  source               Source 
  statistics           Display statistics information of datagram
  vpn-instance         <Group> vpn-instance command group
[R1]display ip int    
[R1]display ip interface ?
  Cellular         Cellular interface
  GigabitEthernet  GigabitEthernet interface
  NULL             NULL interface
  brief            Brief summary of IP status and configuration
  description      Interface description
  |                Matching output
  <cr>             Please press ENTER to execute command 
[R1]display ip interface br    
[R1]display ip interface brief 
*down: administratively down
^down: standby
(l): loopback
(s): spoofing
The number of interface that is UP in Physical is 2
The number of interface that is DOWN in Physical is 2
The number of interface that is UP in Protocol is 2
The number of interface that is DOWN in Protocol is 2

Interface                         IP Address/Mask      Physical   Protocol  
GigabitEthernet0/0/0              12.1.1.1/24          up         up        
GigabitEthernet0/0/1              unassigned           down       down      
GigabitEthernet0/0/2              unassigned           down       down      
NULL0                             unassigned           up         up(s)     
[R1]SYS    
[R1]sysname R2
[R2]us    
[R2]user-int    
[R2]user-interface ?
  INTEGER<0,129-149>   The first user terminal interface to be configured
  console              Primary user terminal interface
  current              The current user terminal interface
  maximum-vty          The maximum number of VTY users, the default value is 5
  tty                  The asynchronous serial user terminal interface 
  vty                  The virtual user terminal interface 
[R2]user-interface vt    
[R2]user-interface vty 0 4
[R2-ui-vty0-4]au    
[R2-ui-vty0-4]authentication-mode aaa
[R2-ui-vty0-4]quit
[R2]lo    
[R2]loc    
[R2]sys    
[R2]aaa
[R2-aaa]loc    
[R2-aaa]local-user user-r1 pa    
[R2-aaa]local-user user-r1 password cip    
[R2-aaa]local-user user-r1 password cipher huawei123
Info: Add a new user.
[R2-aaa]loc    
[R2-aaa]local-user us    
[R2-aaa]local-user user-r1 pr    
[R2-aaa]local-user user-r1 privilege le    
[R2-aaa]local-user user-r1 privilege level 2
[R2-aaa]loc    
[R2-aaa]local-user us    
[R2-aaa]local-user user-r1 ser    
[R2-aaa]local-user user-r1 service-type te    
[R2-aaa]local-user user-r1 service-type telnet
[R2-aaa]quit
[R2]quit
<R2>
<R2>quit

  Configuration console exit, please press any key to log on
<R1>telnet 12.1.1.1
  Press CTRL_] to quit telnet mode
  Trying 12.1.1.1 ...
  Connected to 12.1.1.1 ...

Login authentication


Username:user-r1
Password:

猜你喜欢

转载自www.cnblogs.com/1218-mzc/p/9829837.html