CCNP-GNS3中telnet、ssh和https的详细配置步骤和测试

实验拓扑图:
实验需求:

1.利用putty,ssh -l 192.168.3.254登陆R1

2.利用cmd.exe,telnet 192.168.3.254登陆R1

3.利用浏览器https://192.168.3.254登陆R1

配置步骤:

1.配置交换机


2.配置“云”--自己的笔记本物理机

3.配置R1

R1(config)#inter vlan 1

R1(config-if)#ip add 192.168.3.254 255.255.255.0

R1(config-if)#no sh

R1(config-if)#inter f0/0

R1(config-if)#no sh

R1(config)#username cisco password cisco

R1(config)#ip domain-name sshcisco

R1(config)#crypto key generate ?

rsa Generate RSA keys

R1(config)#crypto key generate rsa

The name for the keys will be: R1.sshcisco

Choose the size of the key modulus in the range of 360 to 2048 for your

  General Purpose Keys. Choosing a key modulus greater than 512 may take

  a few minutes.

How many bits in the modulus [512]: 1024

% Generating 1024 bit RSA keys, keys will be non-exportable...[OK]

R1(config)#line vty 0 4

R1(config-line)#login local

R1(config-line)#transport input ssh telnet

R1(config)#aaa new-model

R1(config)#username ccnp password ccnp

R1(config)#ip http secure-server

% Generating 1024 bit RSA keys, keys will be non-exportable...[OK]


R1(config)#enable password ccnpcisco

R1(config)#ip http authentication local

//测试之后,我们会发现需要权限等级15,所以配置控制台console密码时要用下面的命令

R1(config)#username ccnp privilege 15 password ccnp

R1(config)#do wr

Building configuration...

[OK]

4.实验测试

ping测试

telnet测试


username是ccnp password是ccnp 

(对应R1(config)#username ccnp password ccnp和R1(config)#username cisco password cisco

ssh测试

用户名是cisco 密码 cisco(对应R1(config)#username cisco password cisco

http测试

感谢node!

你可能感兴趣的:(思科网络实践)