为管理接口分配 IP
switch(config)# interface ethernet 2/1
switch(config-if)# no switchport
switch(config-if)# ip address 192.0.2.1/8
switch(config-if)# copy running-config startup-config
还,
line vty 0 4
Router(config-line)#privilege level 15
Router(config-line)#login local
Router(config-line)#transport input telnet ssh
Router(config-line)#exit
并确保您生成一个 RSA 密钥,否则 SSH 不安全它只是 telnet =p 生成 RSA 然后指定密钥的长度 1024 或 2048 是好的
crypto key generate rsa
模数中有多少位 1024 2048
CustomerRouter(config)#exit
目前你没有路由发生,你有第二层,在你的 Vlan 上有一个管理 IP,你需要配置一个 RVI 或路由协议来让事情发生,因为你看到接口 0/1 上的配置中没有任何内容