admin管理员组

文章数量:1532363

Console登录

接好 PC 机和交换机各自的电源线,在关机状态下,把 PC 机的串口 1(COMl)通过 控制台电缆与交换机的 Console 端口相连,即完成设备的连接工作。 交换机 Console 端口的默认参数如下: · 端口速率:9600bps · 数据位:8 · 奇偶校验:无 · 停止位:1 · 流控:无 在配置 PC 机的超级终端时只需保证端口属性的配置参数与上述参数相匹配即可。

思科配置

1.0配置Telnet远程访问(远程登录到交换机)

Switch(config)#int vlan 1

Switch(config-if)#ip add 192.168.1.1 255.255.255.0

Switch(config-if)#no shut

Switch(config-if)#line vty 0 4

Switch(config-line)#password 123 //设置等录密码

Switch(config)#enable secret 321 //设置特权模式密码

  1. 本地登录

Switch(config)#username RTA secret 123 //创建用户名和密码
Switch(config)#line vty 0 4
Switch(config-line)#login local  //开启本地登录

SHH登录

Router(config)#host RT2

RT2(config)#ip domain-name RTA

RT2(config)#crypto key generate rsa

How many bits in the modulus [512]: 1024

RT2(config)#line vty 0 4

RT2(config-line)#login local

RT2(config-line)#transport input ssh

RT2(config-line)#exit

RT2(config)#username RTA privilege 15 secret 123

登录RT1#ssh -l RTA 192.168.1.1

本文标签: 网络设备多种方式