配置路由器名称,接口ip地址

Router(config)#hostname ***(改路由器名字)

在路由器配置telnet_telnet

Router(config-if)#ip address 172.28.15.21 172.28.15.254(配置接口ip地址)

Router(config-if)#no shutdown (开启该端口)

Router(config-if)#sh ip int b(查看端口的状态是否为up,地址等)

在路由器配置telnet_地址_02

配置telnet

RouterA(config)#enable password ruijie(配置路由器的特权密码)

RouterA(config)#line vty 0 4(进入线程配置模式)
RouterA(config-line)password 密码 (这个密码是telnet密码)
RouterA(config-line)login(设置telnet登录时身份研制)

通过线路连接路由器和控制主机,在主机上该 IP为所设的IP,在ping,若通信则线路成功连接,实验完成