




已阅读5页,还剩2页未读, 继续免费阅读
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
虚拟局域网VLAN划分背景介绍:下图是模拟某学校网络拓扑结构。在该学校网络接入层采用S2126,接入层交换机划分了办公网VLAN2和学生网VLAN4,VLAN2和VLAN4通过汇聚层交换机S3550与路由器A相连,另3550上有一个VLAN3存放一台网管机。路由器A与B通过路由协议获取路由信息后,办公网可以访问B路由器后的FTPserver 。为了防止学生网内的主机访问重要的FTPserver,A路由器采用了访问控制列表的技术作为控制手段。实验要求:1、 根据拓朴图分别在S2126和S3550创建相应VLAN,并在S2126上将F0/10-15加入VLAN2,将F0/16-20加入VLAN4,在S3550上将F0/10-12加入VLAN3,两台交换机通过F0/5和F0/6相连。 2、 在两台交换机之间配置实现冗余链路,同时能够提高链路带宽,解决环路问题3、 S3550通过VLAN1中的F0/20和RA互连4、 S3550配置实现VLAN间互连5、 RA和RB之间采用PPP链路,采用PAP方式进行验证提高链路的安全性。6、 配置静态路由实现全网互通。7、 通过访问列表控制所有人可以正常访问服务器,只有VLAN4不可以访问FTP服务。8、 通过相关命令显示相关配置结果,并进行验证实验拓朴:F0/0S0/0S0/0F0/0ABF0/5F0/20F0/5VLAN2VLAN4S2126S3550RA: S0=/24 F0=/24;RB: S0=/30 F0=/24S3550 :VLAN2=54/24VLAN354/24VLAN4=54/24FTPserverFTP server=/24VLAN3networkadmin=/24F0/6F0/6注意:具体ip设置看命令代码中在Cisco packet tracer模拟器上的拓补图:注意事项:1. RB为DCE端,需要配时钟频率,RA为DTE端,端口使用S0/0/02. 连线,同种设备直连线,不同种设备虚连线3. 路由默认是没有s0/0端口,要添加模块的4. 整个实验在Cisco packet tracer模拟器上完成。配置如下:一、在二层交换机上划分vlan并分配端口,配置冗余链路、trunk:SwitchenSwitch#confSwitch#configure tSwitch#configure terminal Switch(config)#vlan 2Switch(config-vlan)#naSwitch(config-vlan)#name teacherSwitch(config-vlan)#exitSwitch(config)#vlan 4Switch(config-vlan)#name studentSwitch(config-vlan)#exitSwitch(config)#interface range fastEthernet 0/10-15Switch(config-if-range)#switchport access vlan 2Switch(config-if-range)#exitSwitch(config)#interface range fastEthernet 0/16-20Switch(config-if-range)#switchport access vlan 4Switch(config-if-range)#exit在二层交换机上配置冗余链路(端口聚合f0/5 f0/6):Switch(config)#interface range fastEthernet 0/5-6Switch(config-if-range)#channel-protocol lacp Switch(config-if-range)#channel-group 1 mode activeSwitch(config-if-range)#Creating a port-channel interface Port-channel 1Switch#show etherchannel summary /查看配置情况Flags: D - down P - in port-channel I - stand-alone s - suspended H - Hot-standby (LACP only) R - Layer3 S - Layer2 U - in use f - failed to allocate aggregator u - unsuitable for bundling w - waiting to be aggregated d - default portNumber of channel-groups in use: 1Number of aggregators: 1Group Port-channel Protocol Ports-+-+-+-1 Po1(SD) LACP Fa0/5(I) Fa0/6(I)在二层交换机上配置trunk(trunk能可以跑多个vlan):Switch#configure terminal Switch(config)#interface port-channel 1Switch(config-if)#switchport mode trunkSwitch(config-if)#exit二、在三层交换机上划分vlan并分配端口,配置冗余链路、trunk:SwitchenSwitch#configure terminal Switch(config)#vlan 3Switch(config-vlan)#exitSwitch(config)#interface range fastEthernet 0/10-12Switch(config-if-range)#switchport access vlan 3Switch(config-if-range)#exitSwitch(config)#vlan 2Switch(config-vlan)#exitSwitch(config)#vlan 4Switch(config-vlan)#exit在三层交换机上配置冗余链路:Switch(config)#interface range f0/5-6Switch(config-if-range)#channel-protocol lacp Switch(config-if-range)#channel-group 1 mode activeSwitch(config-if-range)#exitSwitch(config)#exitSwitch#show etherchannel summary /查看配置聚合情况Flags: D - down P - in port-channel I - stand-alone s - suspended H - Hot-standby (LACP only) R - Layer3 S - Layer2 U - in use f - failed to allocate aggregator u - unsuitable for bundling w - waiting to be aggregated d - default portNumber of channel-groups in use: 1Number of aggregators: 1Group Port-channel Protocol Ports-+-+-+-1 Po1(SU) LACP Fa0/5(P) Fa0/6(P)在三层交换机上配置trunk模式:Switch#configure terminal Switch(config)#interface port-channel 1Switch(config-if)#switchport trunk encapsulation dot1q /三层交换机先封装Switch(config-if)#switchport mode trunk Switch(config-if)#exit电脑1设置ip地址/24 默认网关54电脑2设置ip地址/24 默认网关54网管机3设置ip地址/24 默认网关 54服务器4设置ip地址 /24 默认网关在三层交换机上给vlan配置ip地址:Switch(config)#int vlan 2Switch(config-if)#ip address 54 Switch(config-if)#exit /不需要no shutdownSwitch(config)#int vlan 4Switch(config-if)#ip address 54 Switch(config-if)#exitSwitch(config)#int vlan 3Switch(config-if)#ip address 54 Switch(config-if)#exitSwitch#show ip interface brief /查看配置情况Switch(config)#ip routing /最后不要忘记开启三层交换机的路由交换功能:至此vlan2、vlan3、vlan4能够相互ping通!但是过不了路由R1 验证一下三、配置路由RA、RB1.配置路由RA端口ip地址:RouterenRouter#configure terminal Router(config)#hostname RARA(config)#int f0/0RA(config-if)#ip address RA(config-if)#no shutdown2、在三层交换机上,配置与路由RA相连端口ip:Switch(config)#interface fastEthernet 0/20Switch(config-if)#no switchport /把二层端口变为三层端口Switch(config-if)#ip address Switch(config-if)#no shutdown Switch(config-if)#exit3、在路由RA下配置ppp,使用papRA(config)#int s0/0/0RA(config-if)#ip address RA(config-if)#no shutdown RA(config-if)#encapsulation ppp /封装成ppp协议RA(config-if)#ppp authentication pap /使用pap认证方式RA(config-if)#ppp pap sent-username ccna password cisco123RA(config-if)#exit4、在路由RB下配置ppp,使用papRouterenRouter#configure tRouter(config)#hostname RBRB(config)#int s0/0/0 RB(config-if)#clock rate 64000 /RB是DCE端RB(config-if)#ip add RB(config-if)#no shutdownRB(config-if)#encapsulation ppp /配置ppp,使用papRB(config-if)#ppp authentication pap RB(config-if)#ppp pap sent-username ccnp password cisco /配置用户名密码RB(config-if)#exitRB(config)#username ccna password cisco123 /在数据库中添加RB(config-if)#exit RA(config)#username ccnp password cisco/至此ppp协议配置完成5.在RB上配置f0/0端口ip地址RB(config)#int f0/0RB(config-if)#RB(config-if)#ip addRB(config-if)#ip address RB(config-if)#no shuRB(config-if)#no shutdownRB(config-if)#exit6.在三层交换机和RA、RB上配置动态路由:在RB上配置rip协议:RB(config)#router rip RB(config-router)#version 2RB(config-router)#no auto-summary RB(config-router)#network 在RA上配置rip协议:RA(config)#router rip RA(config-router)#version 2RA(config-router)#network RA(config-router)#exit在三层交换机上配置rip协议:Switc
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 公司新春福利活动方案
- 公司活动室建立策划方案
- 公司日常游戏活动方案
- 公司羽毛球运动活动方案
- 公司游艺类拓展活动方案
- 公司整顿活动方案
- 公司聚餐温馨活动方案
- 公司登高节活动方案
- 公司晚会活动策划方案
- 公司环境日活动方案
- 湖南省娄底市涟源市2023-2024学年六年级下学期6月期末英语试题
- 上海市徐汇区市级名校2025届物理高一第二学期期末考试模拟试题含解析
- 天一大联盟2024届高一数学第二学期期末统考试题含解析
- (高清版)JTG 3370.1-2018 公路隧道设计规范 第一册 土建工程
- 【语文】西安外国语大学附属小学(雁塔区)小学五年级下册期末试卷(含答案)
- 新编旅游职业道德 课件 谭为跃 第3-5章 旅行社从业人员道德素养、酒店从业者道德素养、景区点从业人员道德素养
- 小学数学“组题”设计分析 论文
- 附件16:地下室灯带临时照明系统方案
- 中央空调维护保养服务投标方案(技术标)
- 服务认证培训课件
- 风电场反事故措施
评论
0/150
提交评论