已阅读5页,还剩3页未读, 继续免费阅读
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
实验一一 实验拓扑图二 实验要求1、在两台2950交换机上创立VLAN10、VLAN20、VLAN30和VLAN40。2、把两个交换机上的interface f0/21 分配给VLAN10,interface f0/22 分配给VLAN20,interface f0/23 分配给VLAN30,interface f0/24 分配给VLAN40。3、每台交换机的interface f0/5 配置为两台交换机的中继端口,实现VLAN数据传输。4、配置两台交换机的interface f0/1 ,interface f0/2 的端口做以太通道中继线路。三网络接口 2950A接口1-2950B接口1 2950A接口2-2950B接口2 2950A接口5en /进入特权模式Switch#config t /进入全局配置模式Switch(config)#hostname 2950A /设置主机名为2950A2950A(config)#no ip do lo /关闭域名解析功能2950A(config)#line con 0 /进入控制线02950A(config-line)#logg syn /光标同步2950A(config-line)#exec-time 0 0 /对Console口进行空闲超时时间的配置2950A(config-line)#exit / 返回全局配置模式2950A(config)#end /返回特权模式2950A#vlan database /进入VLAN数据库2950A(vlan)#vlan 10 /创建VLAN10VLAN 10 added: Name: VLAN00102950A(vlan)#vlan 20 /创建VLAN20VLAN 20 added: Name: VLAN00202950A(vlan)#vlan 30 /创建VLAN30VLAN 30 added: Name: VLAN00302950A(vlan)#vlan 40 /创建VLAN40VLAN 40 added: Name: VLAN00402950A(vlan)#exit /退出APPLY completed.Exiting./将端口划分到vlan里2950A#conf t /进入端口配置模式2950A(config)#int fa0/21 /进入fa0/21接口2950A(config-if)#switchport mode access /配置接口模式为access2950A(config-if)#switchport access vlan 10 /把fa0/21加入VLAN102950A(config-if)#no shutdown /开启接口2950A(config-if)#exit /退出2950A(config)#int fa0/22 /进入fa0/22接口2950A(config-if)#switchport mode access /配置接口模式为access2950A(config-if)#switchport access vlan 20 /把fa0/22加入VLAN202950A(config-if)#no shutdown /开启接口2950A(config-if)#exit /退出2950A(config)#int fa0/23 /进入fa0/23接口2950A(config-if)#switchport mode access /配置接口模式为access2950A(config-if)#switchport access vlan 30 /把fa0/23加入VLAN302950A(config-if)#no shutdown /开启接口2950A(config-if)#exit /退出2950A(config)#int fa0/24 /进入fa0/24接口2950A(config-if)#switchport mode access /配置接口模式为access2950A(config-if)#switchport access vlan 40 /把fa0/24加入VLAN402950A(config-if)#no shutdown /开启接口2950A(config-if)#exit /退出 /做干道2950A(config)#int fa0/5 / 进入fa0/5接口2950A(config-if)#switchport mode trunk /配置接口模式为trunk2950A(config-if)#switchport trunk encapsulation dot1q /配置封装协议2950A(config-if)#no shutdown /开启接口2950A(config-if)#exit /退出 /做以太通道中继线路2950A(config)#int range fa0/1 2 /进入fa0/1 和fa0/ 2接口2950A(config-if-range)#channel-group 1 mode on / 配置二层的端口汇聚Creating a port-channel interface Port-channel1/创建以太通道的接口2950A(config-if-range)#no shutdown /开启接口2950A(config-if-range)#exit /返回全局配置模式2950A(config)#end /退出2950A#show running-config /查看配置情况Building configuration.Current configuration : 1079 bytes!version 12.4service timestamps debug datetime msecservice timestamps log datetime msecno service password-encryption!hostname 2950A!boot-start-markerboot-end-marker!no aaa new-modelmemory-size iomem 5!ip cef!no ip domain lookup! !interface Port-channel1!interface FastEthernet0/0!interface FastEthernet0/1 channel-group 1 mode on!interface FastEthernet0/2 channel-group 1 mode on!interface FastEthernet0/3!interface FastEthernet0/4!interface FastEthernet0/5 switchport mode trunk!interface FastEthernet0/6! 2950A#show running-config Building configuration.Current configuration : 1079 bytes!version 12.4service timestamps debug datetime msecservice timestamps log datetime msecno service password-encryption!hostname 2950A!boot-start-markerboot-end-marker!no aaa new-modelmemory-size iomem 5!ip cef!no ip domain lookup! !interface Port-channel12950B交换机的配置:Switchen /进入特权模式Switch#conf t /进入全局配置模式Switch(config)#hostname 2950B /设置主机名为2950B2950B(config)#no ip do lo /关闭域名解析功能2950B(config)#line con 0 /进入控制线02950B(config-line)#logg syn /光标同步2950B(config-line)#exec-time 0 0 /对Console口进行空闲超时时间的配置2950B(config-line)#exit /返回特权模式2950B(config)#end / 返回全局配置模式/创建vlan2950B#vlan database /进入VLAN数据库2950B(vlan)#vlan 10 /创建VLAN10VLAN 10 added: Name: VLAN00102950B(vlan)#vlan 20 /创建VLAN20VLAN 20 added: Name: VLAN00202950B(vlan)#vlan 30 /创建VLAN30VLAN 30 added: Name: VLAN00302950B(vlan)#vlan 40 /创建VLAN40VLAN 40 added: Name: VLAN00402950B(vlan)#exit /退出APPLY completed.Exiting./把端口划分到vlan里2950B#conf t /进入端口配置模式2950B(config)#int fa0/21 /进入fa0/21接口2950B(config-if)#switchport mode access /配置接口模式为access2950B(config-if)#switchport access vlan 10 /把fa0/21加入VLAN102950B(config-if)#no shutdown /开启接口2950B(config-if)#exit /退出2950B(config)#int fa0/22 /进入fa0/22接口2950B(config-if)#switchport mode access /配置接口模式为access2950B(config-if)#switchport access vlan 20 /把fa0/22加入VLAN202950B(config-if)#no shutdown /开启接口2950B(config-if)#exit /退出2950B(config)#int fa0/23 /进入fa0/23接口2950B(config-if)#switchport mode access /配置接口模式为access 2950B(config-if)#switchport access vlan 30 /把fa0/22加入VLAN302950B(config-if)#no shutdown /开启接口2950B(config-if)#exit /退出2950B(config)#int fa0/24 /进入fa0/24接口2950B(config-if)#switchport mode access /配置接口模式为access2950B(config-if)#switchport access vlan 40 /把fa0/22加入VLAN402950B(config-if)#no shutdown /开启接口2950B(config-if)#exit /退出/做干道2950B(config)#int fa0/5 / 进入fa0/5接口2950B(config-if)#switchport mode trunk /配置接口模式为trunk2950B(config-if)#switchport trunk encapsulation dot1q /配置封装协议2950B(config-if)#no shutdown /开启接口2950B(config-if)#exit /退出/做以太通道中继线路2950B(config)#int range fa0/1 2 /进入fa0/1 和fa0/ 2接口2950B(config-if-range)#channel-group 1 mode on / 配置二层的端口汇聚Creating a port-channel interface Port-channel1 /创建以太通道的接口2950B(config-if-range)#no shutdown /开启接口 2950B(config-if-range)#exit /返回特权模式2950B(config)#end /退出2950B#show running-config /查看配置情况Building configuration.Current configuration : 1079 bytes!version 12.4service timestamps debug datetime msecservice timestamps log datetime msecno service password-encryption!hostname 2950B!boot-start-markerboot-end-marker!no aaa new-modelmemory-size iomem 5!ip cef!no ip domain lookup! !interface Port-channel1!interface FastEthernet0/0!interface FastEthernet0/1 channel-group 1 mode on!interface FastEthernet0/2 c
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 社会学理论与实践研究报告
- 生产计划员工作计划及生产调度方案
- 深度学习在各个领域的应用及发展前景分析
- 2025年吉安市青原区全域旅游发展集团有限公司及下属子公司面向社会公开招聘考试笔试参考题库及答案解析
- 2025湖北武汉武昌实验中学沙湖学校招聘小学英语教师1人笔试考试参考题库及答案解析
- 2025北京积水潭医院贵州医院简化考试程序招聘博士配偶人员2人笔试考试参考试题及答案解析
- 2025广西广投资本管理集团有限公司社会招聘17人笔试考试参考试题及答案解析
- 2026年徐州工业职业技术学院单招职业技能测试题库及答案详解一套
- 2026年济宁职业技术学院单招职业倾向性测试题库带答案详解
- 2026年辽宁省盘锦市单招职业适应性考试题库及答案详解一套
- GB 4806.1-2016食品安全国家标准食品接触材料及制品通用安全要求
- 上下班交通安全知识考试试卷
- 食堂消毒表格
- 装载机电气系统常见故障与排除
- 高考文科综合历史《比较类》主观题解题模版含答案解析
- 人教版八年级上册科学知识点汇总
- 快消品年度工作计划
- 【精品主题班会】教学及备考策略 (共47张PPT)
- DB64-T 1147-2022 宁夏工业单位产品能源消耗限额
- 一年级30以内加减混合口算题
- 玉米栽培技术(培训)
评论
0/150
提交评论