ICode9

精准搜索请尝试: 精确搜索
首页 > 其他分享> 文章详细

Cisco-配置telnet和enable密码

2022-04-21 08:31:06  阅读:207  来源: 互联网

标签:enable Cisco Fa0 Switch0 telnet RT1 192.168 config vlan


Cisco-单臂路由+telnet实验案例

image

背景说明:这是某司一部分网路拓扑,出于通信的考虑,各部门的计算机需要进行划分广播域。通过交换机对各部门划分VLAN,核心路由器由网络管理员通过console线,配置单臂路由实现各部门的通信。同时配置telnet实现网络管理员对核心路由的远程管理,配置特权(enable)密码对路由器进行设备安全加固。

IP地址接口规划表

本端设备 接口 IP地址或接口模式 对端设备 接口 IP地址或接口模式
RT1 Fa0/0 192.168.1.1/24 PC0 Fa0 192.168.1.,2/24
RT1 Se1/0 202.0.0.1/30 RT2 Se1/0 202.0.0.2/30
RT1 Fa0/1 Switch0 F0/1 Trunk
RT1 Fa0/1.2 192.168.20.1/24 Switch0 F0/1 Trunk
RT1 Fa0/1.2 192.168.30.1/24 Switch0 F0/1 Trunk
RT1 Fa0/1.2 192.168.40.1/24 Switch0 F0/1 Trunk
Switch0 Fa0/2 Access(VLAN 20) PC2 Fa0 192.168.20.10/24
Switch0 Fa0/3 Access(VLAN 30) PC3 Fa0 192.168.30.10/24
Switch0 Fa0/4 Access(VLAN 40) PC4 Fa0 192.168.40.10/24

项目实施:

一、配置各接口IP地址或所属VLAN

#交换机Switch0的配置

Switch#enable
Switch#configure terminal 
Enter configuration commands, one per line.  End with CNTL/Z.
!
Switch(config)#hostname Switch0
!
Switch0(config)#vlan 20
Switch0(config-vlan)#vlan 30
Switch0(config-vlan)#vlan 40
!
Switch0(config)#interface fastEthernet 0/1
Switch0(config-if)#switchport mode trunk
Switch0(config-if)#switchport trunk allowed vlan 20,30,40
!
Switch0(config)#interface fastEthernet 0/2
Switch0(config-if)#switchport mode access 
Switch0(config-if)#switchport access vlan 20
!
Switch0(config)#interface fastEthernet 0/3
Switch0(config-if)#switchport mode access
Switch0(config-if)#switchport access vlan 30
!
Switch0(config)#interface fastEthernet 0/4
Switch0(config-if)#switchport mode access
Switch0(config-if)#switchport access vlan 40

#路由器RT1的配置

Router>enable
Router#configure terminal 
Enter configuration commands, one per line.  End with CNTL/Z.
!
Router(config)#hostname RT1
!
RT1(config)#int fastEthernet 0/0
RT1(config-if)#ip address 192.168.1.1 255.255.255.0
RT1(config-if)#no shutdown
!
RT1(config)#int fastEthernet 0/1
RT1(config-if)#no shutdown
!
RT1(config)#int serial 1/0
RT1(config-if)#ip address 202.0.0.1 255.255.255.0
RT1(config-if)#no shutdown

#路由器RT2的配置

Router>enable
Router#configure terminal 
Enter configuration commands, one per line.  End with CNTL/Z.
!
Router(config)#hostname RT2
!
RT2(config)#int serial 1/0
RT2(config-if)#ip address 202.0.0.2 255.255.255.0
RT2(config-if)#no shutdown

二、单臂路由的配置

RT1(config)#int fastEthernet 0/1.2
RT1(config-subif)#encapsulation dot1Q 20                #配置端口封装类型为dot1Q,pvid为20
RT1(config-subif)#ip address 192.168.20.1 255.255.255.0
!
RT1(config)#int fastEthernet 0/1.3
RT1(config-subif)#encapsulation dot1Q 30                #配置端口封装类型为dot1Q,pvid为30
RT1(config-subif)#ip address 192.168.30.1 255.255.255.0
!
RT1(config)#int fastEthernet 0/1.4
RT1(config-subif)#encapsulation dot1Q 40                #配置端口封装类型为dot1Q,pvid为40
RT1(config-subif)#ip address 192.168.40.1 255.255.255.0

三、配置console和特权模式的密码

RT1(config)#line console 0
RT1(config-line)#password cisco@console
RT1(config-line)#login
!
RT1(config)#enable password cisco@enable

四、配置telnet

RT1(config)#line vty 0 4                #配置虚拟终端(0-4),同时允许5个虚拟连接
RT1(config-line)#password cisco@telnet
RT1(config-line)#login

项目验证

单臂路由项目验证:

image

console和enable的密码登录的验证:

image

telnet的验证:

image

标签:enable,Cisco,Fa0,Switch0,telnet,RT1,192.168,config,vlan
来源: https://www.cnblogs.com/wm-plengong/p/16172644.html

本站声明: 1. iCode9 技术分享网(下文简称本站)提供的所有内容,仅供技术学习、探讨和分享;
2. 关于本站的所有留言、评论、转载及引用,纯属内容发起人的个人观点,与本站观点和立场无关;
3. 关于本站的所有言论和文字,纯属内容发起人的个人观点,与本站观点和立场无关;
4. 本站文章均是网友提供,不完全保证技术分享内容的完整性、准确性、时效性、风险性和版权归属;如您发现该文章侵犯了您的权益,可联系我们第一时间进行删除;
5. 本站为非盈利性的个人网站,所有内容不会用来进行牟利,也不会利用任何形式的广告来间接获益,纯粹是为了广大技术爱好者提供技术内容和技术思想的分享性交流网站。

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有