实验拓扑
实验需求
完成PC及交换机的配置,使得PC能够通过SSH的方式登录到交换机。
实验步骤及配置
-
交换机完成基础配置
[SW] interface Vlanif 1
[SW-Vlanif1] ip address 192.168.1.100 24
简单起见,我们就直接使用VLAN1与PC对接,因此将交换机的IP地址配置在Vlanif1
-
交换机完成SSH服务的配置
首先在交换机上生成本地密钥对:
[SW] rsa local-key-pair create
The key name will be: SW_Host
The range of public key size is (512 ~ 2048).
NOTES: If the key modulus is greater than 512,
it will take a few minutes.
Input the bits in the modulus[default = 512]:
Generating keys...
...++++++++++++
.++++++++++++
..................++++++++
......++++++++