GNS3模拟cisco7200与实体系统联网、启动telnet、SSH2,具体操作留存

GNS3模拟cisco7200与实体系统联网、启动telnet、SSH2,具体操作留存


ubuntu下gns3实验5:7200启动ssh2

GNS3 Images: c7200-adventerprisek9_sna-mz.152-4.M8.image

cloud + C7200,7200插槽0为c7200-io-2fe

cloud config:
NIO Ethernet -> 选择vmnet1                   【vmware虚拟机的虚拟网卡】

7200 config:
conf t
inte f0/0
ip address 192.168.81.4 255.255.255.0
no shutdown
ip route 0.0.0.0 0.0.0.0 192.168.81.1
wr
ping 192.168.81.147  ok

添加telnet远程登录用户:
(config)#aaa new-model
(config)#username test privilege 15 password test
(config)#line vty 0 4
(config-line)#transport input ssh telnet
从虚拟机中telnet可以访问,OK

(config)#hostname test
(config)#ip domain-name 7200.com
(config)#crypto key generate rsa
(config)#ip ssh version 2
(config)#ip ssh pubkey-chian
(config-ssh-pubkey)#username test
(config-ssh-pubkey-user)#key-string
(config)#end
#wr

test#show ip ssh
SSH Enabled - version 2.0
Authentication timeout: 120 secs; Authentication retries: 3
Minimum expected Diffie Hellman key size : 1024 bits
IOS Keys in SECSH format(ssh-rsa, base64 encoded):
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAAAgQDLG2ZOB7sEoZdfEWjp/a4+BICOdDjg+mM0nz+mitea
juuoNBTts3wXSOopx6c1FIMu0NiczzJ/7egdvWSo8iiRdBM+B4ZRIGWLRuwYn6nv3BONncNQ34ZusA6H
9/n3jRpIUCfx9vjzpDUCZcHZjcq7GH4gDQ8e/JAqIM5LNe/t8w==

从虚拟机中SSH [email protected] OK

如果只想SSH连接:

(config)#line vty 0 4
(config-line)#transport input ssh

如果只想telnet连接:

(config)#line vty 0 4
(config-line)#transport input telnet





你可能感兴趣的:(ssh2,cisco)