




免费预览已结束,剩余1页可下载查看
下载本文档
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
配 置 实 例Show versionShow running-config概述:本例题建立三个VLAN,根据部门来建立vlan, MIS部门的vlan为misvlan。命名为srvvlan。ENG部门的vlan为engvlan。服务器单独一个vlan,为srvvlan,Misvlan与engvlan 互相不能进行访问,但是都可以访问srvvlan。指由一台具备三层交换功能的3750核心交换机接两台2950的支交换机(不一定具备三层交换能力)。我们假设核心交换机名称为:FOX;分支交换机分别为:MIS、ENG,分别通过Port 1的光线模块与核心交换机相连(如果没有就用网线连接千兆端口);并且假设VLAN名称分别为MISVLAN、ENGVLAN,SRVVLAN对应的VLAN4,VLAN3,VLAN2FOX交换机: ENG交换机: MIS交换机: 中继接口:FOX: GigabitEthernet2/1 GigabitEthernet2/2MIS: FastEthernet0/1ENG: FastEthernet0/2(一)3750交换机的配置中继接口:FOX: GigabitEthernet2/1 GigabitEthernet2/2一、建立堆叠:Switch# show switchSwitch/Stack Mac Address : 001d.a242.7180 H/W CurrentSwitch# Role Mac Address Priority VersionState -*1 Master 001d.a242.7180 1 0 Ready 2 Member 001d.a26b.8e80 1 0 Ready Switch#show switch detailSwitch/Stack Mac Address : 001d.a242.7180 H/W CurrentSwitch#Role Mac Address Priority VersionState -*1 Master 001d.a242.7180 1 0 Ready 2 Member 001d.a26b.8e80 1 0 Ready Stack Port Status Neighbors Switch# Port 1 Port 2 Port 1 Port 2 -1 Ok Ok 2 2 2 Ok Ok 1 1 Switch# show switch neighbors Switch # Port 1 Port 2- - - 1 2 2 2 1 1Switch# show switch stack-ports Switch # Port 1 Port 2 - - - 1 Ok Ok 2 Ok Ok 三、察看当前堆叠状态:show platform stack-manager all 显示所有交换堆叠的信息show switch 显示堆叠交换机的汇总信息show switch 1 显示一号交换机的信息show switch detail 显示堆叠成员明细的信息show switch neighbors 显示堆叠邻居的完整信息show switch stack-ports 显示堆叠交换机的完整端口信息二、配置:switch(config)# hostname foxswitch(config)# enable secret fox(密码)switch#vlan database3750(vlan)#vtp server3750(vlan)#vtp domain nlv3750(vlan)#vtp password cisco3750(vlan)#vlan 23750(vlan)#vtp 33750(vlan)#vtp pruning3750(vlan)#exit3750(config)#int gigabitethernet2/13750(config)#switchport3750(config-if)#switchport trunk encapsulation dot1q3750(config-if)#switchport mode trunk3750(config)#interface gigabitEthernet 2/23750(config-if)#switchport3750(config)#switchport trunk encapsulation dot1q 3750(config)#switchport mode trunk3750(config)#switchport gigabitEthernet 2/33750(config)#switchport trunk encapsulation dot1q3750(config)#switchport mode trunk3750(config-if)#end3750#show vtp status/*创建VLAN*COM(vlan)#Vlan 2 name srvvlan COM(vlan)#Vlan 3 name engvlan COM(vlan)#Vlan 4 name misvlan FOX(config)#ip routing FOX(config)#interface vlan 2fox(config-if)#ip address fox(config-if)#no shutdownfox(config-if)#exitfox(config)#int vlan 3fox(config-if)#ip address fox(config-if)#no shutdownfox(config-if)#exit#intface vlan 4#ip address #no shutdown#exit/*将端口1-24加入VLAN ,其中1-6加入MSIVLAN(vlan4),7-12口加入ENGVLAN(vlan3),13-24口加入SRVVLAN(vlan2)Switch(Config)Interface Range Fa 0/1 - 24Switch(Config-if-range)Switchport Mode AccessSwitch(Config-if-range)Spanning-tree PortfastSwitch(Config)Interface Range Fa 0/1 - 6Switch(Config-if-range)Switchport Access Vlan 4Switch(Config)Interface Range Fa 0/7 - 12Switch(Config-if-range)Switchport Access Vlan 3Switch(Config)Interface Range Fa 0/12 - 24Switch(Config-if-range)Switchport Access Vlan 2Switch(Config-if-range)Exi注释:如不采用上面的端口范围可以采用下面方式进行:SW1(config)#int fa0/1SW1(config-if)#switchport mode accessSW1(config-if)#switchport access vlan 4SW1(config-if)#exit.SW1(config)#int fa0/24SW1(config-if)#switchport mode accessSW1(config-if)#switchport access vlan 2SW1(config-if)#end/*配置访问控制列表 */Switch(Config)access-list 103 permit ip 55 55Switch(Config)access-list 103 permit ip 55 55Switch(Config)access-list 103 permit udp any any eq bootpcSwitch(Config)access-list 103 permit udp any any eq tftpSwitch(Config)access-list 103 permit udp any eq bootpc anySwitch(Config)access-list 103 permit udp any eq tftp anySwitch(Config)access-list 104 permit ip 55 55Switch(Config)access-list 104 permit ip 55 55Switch(Config)access-list 104 permit udp any eq tftp anySwitch(Config)access-list 104 permit udp any eq bootpc anySwitch(Config)access-list 104 permit udp any eq bootpc anySwitch(Config)access-list 104 permit udp any eq tftp anySwitch(Config)Int Vlan 3Switch(Config-vlan)ip access-group 103 outSwitch(Config-vlan)Int Vlan 4Switch(Config-vlan)ip access-group 104 out/*常规配置*switch(config)# interface vlan 1 switch(config-if)# ip address switch(config-if)# ip default-gateway (既srvvlan的IP地址为)#IP http server#snmp-server
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 政策性农业保险发展现状研究
- 船舶疏导合同(标准版)
- 外汇交易合同(标准版)
- 历史学习之旅
- DB37-T 3543-2019 城际城市配送集装箱通.用技术条件
- 《离散数学(微课版)(第2版)》实验指导书 - 第1-5章
- 2025煤矿企业主要负责人考试安全生产知识和管理能力考前冲刺试题及答案
- 2025年建筑施工企业安管人员考试(专职安全生产管理人员C3类)(综合类)全真冲刺试题及答案
- 2024年省燃气经营企业从业人员考试(燃气输配场站工)经典试题及答案四
- 2025年勘察设计注册环保工程师考试(物理污染控制专业案例)综合练习题及答案
- 冬天施工安全培训考试题及答案解析
- 2025年车险核保考试题及答案
- Unit4SectionB1a-1f课件人教版八年级英语上册
- 2025秋人教版四上 教学设计Unit 1 Helping at home单元整体教学设计表格式(5课时)
- 七年级历史考试卷子及答案
- 小学班主任教育教学案例集
- 大国兵器(中北大学)学习通网课章节测试答案
- 急性呼吸窘迫综合征合并呼吸机相关肺炎护理查房
- 2025年公务员公开遴选笔试试题及答案(综合类)
- 乙二醇合同范本
- 3.3.2元素符号和元素周期表教学设计-九年级化学人教版上册
评论
0/150
提交评论