思科路由器、交换机的远程登录配置

路由器

#进入特权模式(特权模式–查看用户等级、退出、切换测试等)
Router>en(或者enable)
#退出
Router#exit(或者end)
#进入全局模式
Router#configure terminal
#进入0/0端口
Router(config)#interface gigabitEthernet 0/0
#配置IP地址
Router(config-if)#ip address 192.168.1.3 255.255.255.0
#开启端口
Router(config-if)#no shutdown
#查询全部接口信息
Router#show interface brief
#修改名字:Hacker
Router#conf terminal
Router(config)#hostname Hacker
#查询所有配置(特权模式下)
Router#show running-config
#进入全局模式
Router#config t
#设置密码
Router(config)#enable password 123456
#取消密码
Router(config)#no enable password
#查看密码
show running

交换机

#进入特殊模式
Switch>enable
#进入全局模式
Switch#configure terminal
#设置主机名:Hello
Switch(config)#hostname Hello
#设置远程登录最大数量
Hello(config)#line vty 0 5
#设置登录模式为:认证模式(no login:无认证模式)
Hello(config-line)#login
#设置远程登录密码:666666
Hello(config-line)#password 666666
#返回上一个模式
Hello(config-line)#exit
#设置特权模式密码
Hello(config)#enable secret 666666
#进入VLAN 1模式
Hello(config)#interface vlan 1
#配置IP地址
Hello(config-if)#ip address 192.168.1.5 255.255.255.0
#启用接口(思科默认所有接口关闭)
Hello(config-if)#no shutdown
#退出到特殊模式
Hello(config-if)#end
#保存配置
Hello#wr

用xshell连接到交换机上进行远程登录

在这里插入图片描述

在这里插入图片描述

在这里插入图片描述

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值