Cisco(思科)远程登录路由器

本文介绍了如何在Cisco路由器上进行远程登录。首先展示了拓扑图,然后详细阐述了配置步骤,包括在模拟器中配置路由器接口f0/0,并使用IP地址为192.168.1.2的电脑通过命令提示符远程连接到路由器。同时提供了远程登录交换机的相关链接。

Cisco(思科)远程登录路由器

一、拓扑图

二、实验步骤

1.先配置好路由器,配置如下:

先进入配置电脑的终端进行配置操作

Cisco在模拟器中路由器有两个接口interface f0/0 、interface f0/1

小编在这里只实现配置一个接口interface f0/0,所以远程登录的电脑也应该连接这个接口

Router>
Router>               //这个是用户模式
Router>enable         // enable用来进入特权模式Router#
Router#conf t         // conf t用来进入配置模式Router(config)#
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)#enable pass
Router(config)#enable password 123          //给进入特权模式设置密码
Router(config)#interface f0/0               //进入interface f0/0接口
Router(config-if)#ip address 192.168.1.1 255.255.255.0        //给这个接口配置一个ip
Router(config-if)#no shutdown                                 //激活接口

Router(config-if)#
%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up
Router(config-if)#exit          //退出的命令
Router(config)#line vty 0 15    //进入接口 设置可远程登录
Router(config-line)#pass
Router(config-line)#password aaa//给远程登录路由器设置一个密码
Router(config-line)#login       //激活可远程登录
Router(config-line)#

 2.使用一台电脑(事先配置好ip:192.168.1.2 255.255.255.0)利用命令提示符远程登录路由器,具体如下:

Packet Tracer PC Command Line 1.0
PC>ping 192.168.1.1              //ping命令用于检测两个设备能否互通

Pinging 192.168.1.1 with 32 bytes of data:

Reply from 192.168.1.1: bytes=32 time=9ms TTL=255
Reply from 192.168.1.1: bytes=32 time=7ms TTL=255
Reply from 192.168.1.1: bytes=32 time=6ms TTL=255
Reply from 192.168.1.1: bytes=32 time=6ms TTL=255

Ping statistics for 192.168.1.1:
    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
    Minimum = 6ms, Maximum = 9ms, Average = 7ms

PC>telnet 192.168.1.1      //远程登录路由器
Trying 192.168.1.1 ...Open


User Access Verification

Password: 
Password: 
Router>enable

远程登录交换机可点击:https://blog.csdn.net/hanhanT/article/details/111029757

喜欢的小可爱可以点赞关注哦,谢谢啦! 

评论 6
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值