思科交换机telnet配置

本文详细描述了如何配置两个交换机Switch3和Switch4,包括进入不同配置模式,设置VLAN1的IP地址,启用Telnet服务,创建远程登录的用户名和密码,以及配置Trunk端口允许VLAN1的通信。最后,通过`enablepassword`设置特权模式密码并保存配置。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

拓扑图

.Switch3配置

.Switch>enable-----从用户模式进入特权模式

Switch#configure terminal-----从特权模式进入全局配置模式

Switch(config)#line vty 0 4------指定vty线路并且进入线路配置模式

Switch(config-line)#login local-----指定在登录时检查密码

Switch(config-line)#transport input  telnet-----开启Telnet服务

Switch(config)#username admin password 123.com-----创建远程登录的用户名和密码

Switch(config)#int vlan 1-----进入vlan 1配置模式

Switch(config-if)#ip address 192.168.10.1 255.255.255.0-----配置vlan1IP地址和子网掩码

Switch(config-if)#no shutdown-----启用接口

Switch(config)#interface fastEthernet 0/1-----进入接口配置模式

Switch(config-if)#switchport mode trunk-----配置vlan 访问模式

Switch(config-if)#switchport trunk allowed vlan 1---设置端口可以访问VLAN 1

Switch(config-if)#no shutdown-----启用端口

Switch(config)#enable password 123.com-----设置特权模式密码

Switch#write

Building configuration...

[OK]-----保存配置命令

.Switch4配置

.Switch>enable-----从用户模式进入特权模式

Switch#configure terminal-----从特权模式进入全局配置模式

Switch(config)#line vty 0 4------指定vty线路并且进入线路配置模式

Switch(config-line)#login local-----指定在登录时检查密码

Switch(config-line)#transport input  telnet-----开启Telnet服务

Switch(config)#username admin password 123.com-----创建远程登录的用户名和密码

Switch(config)#int vlan 1-----进入vlan 1配置模式

Switch(config-if)#ip address 192.168.10.2 255.255.255.0-----配置vlan1IP地址和子网掩码

Switch(config-if)#no shutdown-----启用接口

Switch(config)#interface fastEthernet 0/1-----进入接口配置模式

Switch(config-if)#switchport mode trunk-----配置vlan 访问模式

Switch(config-if)#switchport trunk allowed vlan 1---设置端口可以访问VLAN 1

Switch(config-if)#no shutdown-----启用端口

Switch(config)#enable password 123.com-----设置特权模式密码

Switch#write

Building configuration...

[OK]-----保存配置命令

Telnet远程登录交换机验证

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

爱学习的小任

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值