The third day learning exchange routing: router set up SSH remote login authentication

Huawei routers establish remote management

1 "Router Configuration
<Huawei> system-view // The system view
[Huawei] sysname HW-R1 // Set the name of the system-Rl HW
[HW-Rl] interface g0 / 0/1 // Configure g0 / 0/1 Interface
[HW-R1-GigabitEthernet0 / 0 /1] ip address 10.1.11.1 24 // configure the IP address
[HW-R1-GigabitEthernet0 / 0 /1] display this // check the current configuration
[V200R003C00]
#
interface the GigabitEthernet0 / 0 /. 1
address 10.1.11.1 255.255.255.0 ip
#
return

2 "Switch Configuration
<Huawei> system-view // The system view
[Huawei] sysname HW-SW1 // Set the name of the system-SWl HW
[HW-SWl] // Configure interface. 1 Vlanif g0 / 0/1 Interface
[HW- SW1-Vlanif1] ip address 10.1.11.2 24 // configured IP address
[HW-SW1-Vlanif1] display this // view the current configuration
#
interface Vlanif1
ip address 10.1.11.2 255.255.255.0
#
return

验证:
[HW-SW1]ping 10.1.11.1
PING 10.1.11.1: 56 data bytes, press CTRL_C to break
Reply from 10.1.11.1: bytes=56 Sequence=1 ttl=255 time=80 ms
Reply from 10.1.11.1: bytes=56 Sequence=2 ttl=255 time=40 ms
Reply from 10.1.11.1: bytes=56 Sequence=3 ttl=255 time=30 ms
Reply from 10.1.11.1: bytes=56 Sequence=4 ttl=255 time=30 ms
Reply from 10.1.11.1: bytes=56 Sequence=5 ttl=255 time=40 ms

[HW-R1]ping 10.1.11.2
PING 10.1.11.2: 56 data bytes, press CTRL_C to break
Reply from 10.1.11.2: bytes=56 Sequence=1 ttl=255 time=20 ms
Reply from 10.1.11.2: bytes=56 Sequence=2 ttl=255 time=30 ms
Reply from 10.1.11.2: bytes=56 Sequence=3 ttl=255 time=30 ms
Reply from 10.1.11.2: bytes=56 Sequence=4 ttl=255 time=20 ms
Reply from 10.1.11.2: bytes=56 Sequence=5 ttl=255 time=10 ms

3 "to configure the router for remote management
[HW-R1] user-interface vty 0 4 // configure virtual terminal, support for up to five-way
[HW-R1-ui-vty0-4 ] set authentication password cipher 123456 // Set the authentication password hidden * **
[Rl-HW-UI-vty0-4] // user privilege Level 15 disposed VTY user rights 15

Verify:
<HW-SWl> // 10.1.11.1 Telnet on the Telnet HW-Rl SWl
the Trying 10.1.11.1 ...
Press ABORT to the CTRL + K
Connected to 10.1.11.1 ...
the Login authentication
Password:
<HW-Rl> the system sys // view
the enter system view, view User return the Z with the Ctrl +.
[HW-Rl] // the system may have the appropriate permissions view illustrating
[HW-Rl] Users DIS
the User-Intf the Type the Network Delay AuthorcmdFlag the Address AuthenStatus
0 CON 0 00:00:00 pass Username: Unspecified

  • 129 VTY 0 00:00:00 TEL 10.1.11.2 pass Username : Unspecified
    [HW-R1]

Windfall:
[HW-R1] // enable telnet Server virtual machine enabled by default, real machine need to open the telnet service

Guess you like

Origin blog.51cto.com/63736/2424563