版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1.交换机管理VIAN,地址,用户和密码
Switch>enable#进入特权模式
Switch#configureterminal#进入全局模式
Switch(config)#hostnameyyyy#命名yyyy
Switch(config)#enablepassword123#弱口令
Switch(config)#enablesecret123456#使能密玛
Switch(config)#interfacevlan1#默认VLAN
Switch(config-if)#noshoutdov/n#使VLAK处于运行中
Switch(config-if)#ipaddress192.168.3.254
Switch(config-if)#exit
Switch(config)ttlinevty02#开启TELNET登录,同时登录2人
Switch(config-line)#password123456
Switch(config-line)#login
telnet登录:同ip段登管理地址
2、建立vlan
Switch#config
Switch#configureter
Switchffconfigureterminal
Switch(config)#vlan80#建立80Wan,〃也可以不建vlan直接参加vlan,系
统自己创立
Switch#interfacevlan80#进入vlan
Switch(config-vlan)#exit
Switch(config)#interfacerangefO/1-5#进入到1-5端口
Switch(config-if-range)#switchportmodeaccess
Switch(config-if-range)#switchportaccessvlan80#1-5端口参加到vlan80中
Switch(config-if-range)#exit
Switch(config)#exit
2,双工模式
Switch(config)#interfacerangefO/1-5
Switch(config)#duplexfull
恢狂出厂设置:
Switch>en
Switch#erasestartup-configuer
Switch#reload
3.在特权模式下查看配置
Switch#showversion
Switch#showvlan
Switch#showrunning-configuer
Switch#showinterfacefastenther0/1
Switch#showmac-address-taole
Switch#showiproute
interfacePort-channel1〃进入虚拟的以太通道组1
switchporttrunkencapsulationdotlq〃给这个接口的trunk封装为802.1Q的帧格式switchportmode
trunk〃定义这个接口的工作模式为trunk
switchporttrunkallowedvlanall〃在这个trunk上允许所有的vlan通过
Interfacegigabitethernet0/1〃进入模块0上的吉比特以太口1
channel-group1modeon把这个接口放到快速以太通道组1中
port-channelload-balancesrc-dst-ip〃定义快速以太通道组的负载均衡方式(依*源和目的IP的方式)
4.删除VLAN
Switch(config-if)#noswitchportaccessvlan80#先删接口
switch(config)#nointvlan23#再删除配置接II
Switch(config)#novlan80#删除VLAN
4.查看端口信息
showipintbr
5、三层交换机实现不同vlan通信(和单臂路由差不多)
验六:使用三层交换机实现VLAN间通信
■实验目标:
■利用三层交换机的SVI实现不同VLAN间的通信
■实验设备:
已置过程
;对Cisco3560的配置
1、进入全局配置模式,开启三层交换机的路由横式
Switch>enable
Switch*configureterminal
Switch(config>#iprouting〃开启三层交换机的路由模式
2、创莫VLAN
Switch(config>#vlan2〃创隹VLAN2
Switchtconfig-vlan)#exit
Switch(config>#vlan3〃创建VLAN3
Switch!config-vlan)#exit
Switchconfig}#
3、设置trunk口
Switch(config^interfacefastethernet0/1
Switch(config-if)*switchporttrunkencapsulationdotlq//;S封IEEE802.IQ格•式
Switchlconfig-iD#switchportnodetrunk〃谀量单口的工作模式为trunk
Switchfconfig-in#exit
Switch!config^*
Switch(config-if)#switchporttrunkaIIowedvlana”/允许所有vlan通过f0/1端口
4、设置VLAN2、VLAN3的接口IP(VLAN2、VLAN3的网关)
Switch(config)#interfacevlan2
Swtich(config-if)#ipaddress192.168.1.1255.255.255.0
Switch(config-if)#noshutdown
Switch!coniexit
Switch(config)#interfacevlan3
Switch(conng-if)#ipaddress192.168.2.1255.255.255.0
Switch(config-if>#noshutdown
Switch(config-if>#end
5、保存设置
Switch#write
6.三层交机开启DHCP地址分配配置
ipdhcppoolvlan30pool
ipdhcppoolvlan60pool
ipdhcppoolvlan70pool
ipdhcppoolvlan80pool
ipdhcppoolvlan90pool
interfaceFastEthernetO/1
noswitchport
duplexauto
speedauto
interfaceFastEthernetO/3
switchportaccessvlan20
switchportmodeaccess
interfaceFastEthernetO/4
switchportaccessvlan20
switchportmodeaccess
I
interfaceFastEthernetO/5
switchportaccessvlan30
switchportmodeaccess
interfaceFastEthernetO/6
switchportaccessvlan30
switchportmodeaccess
I
interfaceFastEthernetO/7
switchportaccessvlan60
switchportmodeaccess
interfaceFastFthernetO/8
switchportaccessvlan60
switchportmodeaccess
!
interfaceFastEthernetO/9
switchportaccessvlan70
switchportmodeaccess
interfaceFastEthernetO/lO
switchportaccessvlan70
switchportmodeaccess
interfaceFastEthernetO/11
switchportaccessvlan70
switchportmodeaccess
interfaceFastEthernetO/12
switchportaccessvlan70
switchportmodeaccess
interfaceFastEthernetO/13
switchportaccessvlan70
switchportmodeaccess
interfaceFastEthernetO/14
switchportaccessvlan70
switchportmodeaccess
interfaceFastEthernetO/15
switchportaccessvlan70
switchportmodeaccess
interfaceFastEthernetO/16
switchportaccessvlan80
switchportmodeaccess
interfaceFastEthernetO/17
switchportaccessvlan80
switchportmodeaccess
interfaceFastEthernetO/18
switchportaccessvlan80
switchportmodeaccess
interfaceFastEthernetO/19
switchportaccessvlan90
switchportmodeaccess
interfaceFastEthemetO/2O
switchportaccessvlan90
switchportmodeaccess
interfaceVlan20
interfaceVlanBO
interfaceVlan60
interfaceVlan70
interfaceVlanSO
interfaceVlan90
ipclassless
iproute0.0.0.00.0.0.0172.18.10.1
原文:
7、在交换机上创立聚合端口,形成交换冗余但无环路
port-channel分为2类.一类为2层的port-channel.一类为3层的port-channel.2层的port-channel
只需要配physicalinterface就行(,可以是staticaccess,也可以使trunk,但是必须一样。不需要create
port-channeL
3层的port-channel要首先createport-channel,然后noswitchport把port-channel变成L3interface,
加上IP地址。再进入physicalinterface,必须noipaddress去掉physicalinterface的IP信息,然后直接
channel-group参力口EtherChannel就行了
2960-24TT
交换机0
example:
ForL2staticaccessEtherChannel:
Switch#configureterminal
Switch(config)#interfacerangegigabitethernetO/1-2
Switch(config-if-range)#switchportmodeaccess
Switch(config-if-range)#switchportaccessvlan1
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 云南省2025云南中医药大学公开招聘博士及高层次人才(31人)笔试历年参考题库典型考点附带答案详解
- 乐山市2025四川乐山市金口河区事业单位考试招聘5人笔试历年参考题库典型考点附带答案详解
- 临泉县2025年度安徽阜阳市临泉县事业单位公开招聘工作人员148名笔试历年参考题库典型考点附带答案详解
- 东营市2025年山东省黄河三角洲农业高新技术产业示范区事业单位招聘工作人员笔试历年参考题库典型考点附带答案详解
- 上海市2025年上海海关事业单位第二批公开招聘笔试历年参考题库典型考点附带答案详解
- 三明市2025福建三明市直事业单位招聘100人笔试历年参考题库典型考点附带答案详解
- 黔西南布依族苗族自治州2024贵州黔西南州普安县事业单位引进高层次人才和急需紧缺人才59人笔试历年参考题库典型考点附带答案详解
- 跳远运动会广播稿15篇
- 2026重庆外商服务有限公司招聘30人笔试历年典型考点题库附带答案详解
- 2026年肋骨骨折出院健康指导
- 高处作业培训考核试卷(含答案)
- 毛选介绍教学课件
- 成人住院患者跌倒风险评估及预防模板
- 2025年高频考点国企《人力资源管理岗》专业知识考试卷(含解析)及答案
- GB/T 26952-2025焊缝无损检测磁粉检测验收等级
- 化学安全和防护知识培训课件
- 工业产品批生产记录标准模板
- GJB1406A-2021产品质量保证大纲要求
- 兴文县竹纤维环保餐具生产项目环评报告
- 2024年淮北市濉溪县事业单位笔试真题(附答案)
- 动物疫病检疫培训课件
评论
0/150
提交评论