




已阅读5页,还剩7页未读, 继续免费阅读
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
2011年3月13日星期日 我做的前面配置有勿。配置交换机1,2为trunk模式sw1#conf tEnter configuration commands, one per line. End with CNTL/Z.sw1(config)#int f0/11sw1(config-if)#switchport mode trunksw2(config)#int f0/11sw2(config-if)#switchport trunk encapsulation dot1q sw2(config-if)#switchport mode trunksw2(config)#int f0/3sw2(config-if)#switchport mode trunksw2(config-if)#switchport trunk encapsulation dot1q配vtpsw1(config)#vtp mode serversw1(config)#vtp domain lzhChanging VTP domain name from zhangle to lzhsw1(config)#vtp password 123配不上密码sw2#vlan database sw2(vlan)#vtp client sw2(vlan)#vtp domain lzh2Changing VTP domain name from NULL to lzh2sw2(vlan)#vtp passwsw2(vlan)#vtp password 123456Setting device VLAN database password to 123456.sw1#vlan database (注:2950的交换机只能在database下加密)sw1(vlan)#vtp password 123Setting device VLAN databse password to 123.sw1(vlan)#vtp pruningPruning switched ONsw1(vlan)#vtp pruning ? v2-mode Set the administrative domain to V2 mode. sw1(vlan)#vtp pruning v2-mode Pruning already switched on.V2 mode enabled.sw1(vlan)#exit(配vlan)(配完SW1在SW2上看不出同步?)sw1#vlan database(早期的交换机要进入database中)sw1(vlan)#vlan 10 name ITAPPLY completed.Exiting.(在SW1是的与PC1相连的接口上配接入模式并划入一个VLAN中)sw1#conf tsw1(config)#int f0/3sw1(config-if)#switchport mode accesssw1(config-if)#switchport access vlan 10sw1(config-if)#endsw1#05:31:30: %SYS-5-CONFIG_I: Configured from console by consolesw1#sh vlan briVLAN Name Status Ports- - - -1 default active Fa0/1, Fa0/2, Fa0/4, Fa0/5 Fa0/6, Fa0/7, Fa0/8, Fa0/9 Fa0/10, Fa0/1210 IT active Fa0/311 VLAN0011 active 12 VLAN0012 active 13 VLAN0013 active 14 VLAN0014 active 15 VLAN0015 active 16 VLAN0016 active 17 VLAN0017 active 18 VLAN0018 active 19 VLAN0019 active 20 ITAA active 1002 fddi-default active 1003 trcrf-default active 1004 fddinet-default active 1005 trbrf-default active sw1#(同上)sw2#conf tEnter configuration commands, one per line. End with CNTL/Z.sw2(config)#int f0/17sw2(config-if)#swsw2(config-if)#switchport mode access sw2(config-if)#switchport access vlan 10(配子接口。目地是充当网关)Router(config)#int e0/0.10Router(config-subif)#enRouter(config-subif)#encapsulation dot1q 10Router(config-subif)#ip add 172.17.10.1 255.255.255.0Router(config)#int e0/0.20Router(config-subif)#encapsulation dot1q 20Router(config-subif)#ip add 172.17.20.10 255.255.255.0Router(config-subif)#no shuRouter(config-subif)#endRouter#sh ip int briInterface IP-Address OK? Method Status ProtocolEthernet0/0 unassigned YES unset up up Ethernet0/0.10 172.17.10.1 YES manual up up Ethernet0/0.20 172.17.20.10 YES manual up up Serial0/0 unassigned YES unset administratively down down Serial0/1 unassigned YES unset administratively down down Router#(配网关)pc1(config)#ip default-gateway 192.168.1.1 pc2(config)#ip default-gateway 10.1.1.1(注:本实验错误的反PC1,PC2配在一个VLAN中)sw2#vlan databasesw2(vlan)#no vlan 10 Deleting VLAN 10.(老师改的)sw1#show ip int briefInterface IP-Address OK? Method Status ProtocolVlan1 unassigned YES unset administratively down down FastEthernet0/1 unassigned YES unset down down FastEthernet0/2 unassigned YES unset down down FastEthernet0/3 unassigned YES unset up up FastEthernet0/4 unassigned YES unset down down FastEthernet0/5 unassigned YES unset down down FastEthernet0/6 unassigned YES unset down down FastEthernet0/7 unassigned YES unset down down FastEthernet0/8 unassigned YES unset down down FastEthernet0/9 unassigned YES unset down down FastEthernet0/10 unassigned YES unset down down FastEthernet0/11 unassigned YES unset up up FastEthernet0/12 unassigned YES unset down down sw1#show vlansw1#show vlan VLAN Name Status Ports- - - -1 default active Fa0/1, Fa0/2, Fa0/4, Fa0/5 Fa0/6, Fa0/7, Fa0/8, Fa0/9 Fa0/10, Fa0/1210 IT active Fa0/311 VLAN0011 active 12 VLAN0012 active 13 VLAN0013 active 14 VLAN0014 active 15 VLAN0015 active 16 VLAN0016 active 17 VLAN0017 active 18 VLAN0018 active 19 VLAN0019 active 20 ITAA active 1002 fddi-default active 1003 trcrf-default active 1004 fddinet-default active 1005 trbrf-default active VLAN Type SAID MTU Parent RingNo BridgeNo Stp BrdgMode Trans1 Trans2- - - - - - - - - - -1 enet 100001 1500 - - - - - 0 0 10 enet 100010 1500 - - - - - 0 0 11 enet 100011 1500 - - - - - 0 0 12 enet 100012 1500 - - - - - 0 0 13 enet 100013 1500 - - - - - 0 0 14 enet 100014 1500 - - - - - 0 0 15 enet 100015 1500 - - - - - 0 0 16 enet 100016 1500 - - - - - 0 0 17 enet 100017 1500 - - - - - 0 0 18 enet 100018 1500 - - - - - 0 0 19 enet 100019 1500 - - - - - 0 0 20 enet 100020 1500 - - - - - 0 0 1002 fddi 101002 1500 - - - - - 0 0 1003 trcrf 101003 4472 1005 3276 - - srb 0 0 1004 fdnet 101004 1500 - - - ieee - 0 0 1005 trbrf 101005 4472 - - 15 ibm - 0 0 VLAN AREHops STEHops Backup CRF VLAN AREHops STEHops Backup CRF- - - -1003 0 0 offsw1#show int f0/11 switchport Name: Fa0/11Switchport: EnabledAdministrative Mode: trunkOperational Mode: trunkAdministrative Trunking Encapsulation: dot1qOperational Trunking Encapsulation: dot1qNegotiation of Trunking: OnAccess Mode VLAN: 1 (default)Trunking Native Mode VLAN: 1 (default)Trunking VLANs Enabled: ALLPruning VLANs Enabled: 2-1001Protected: falseVoice VLAN: none (Inactive)Appliance trust: nonesw1#sw1#show mac-address-table (看SW1的MAC是不是学到PC1的MAC) Mac Address Table-Vlan Mac Address Type Ports- - - - 1 000a.f429.eb0b DYNAMIC Fa0/11 10 000a.f429.eb0b DYNAMIC Fa0/11 10 0010.7b39.f4b9 DYNAMIC Fa0/3Total Mac Addresses for this criterion: 3sw1#sw2#sw2#show macsw2#show mac-address-table (看SW2的MAC是不是学到PC2的MAC)Dynamic Address Count: 4Secure Address Count: 0Static Address (User-defined) Count: 0System Self Address Count: 51Total MAC addresses: 55Maximum MAC addresses: 8192Non-static Address Table:Destination Address Address Type VLAN Destination Port- - - -0005.74ac.694b Dynamic 1 FastEthernet0/110008.e354.6de0 Dynamic 1 FastEthernet0/30010.7b39.f4b9 Dynamic 10 FastEthernet0/110010.7b7f.7dc0 Dynamic 30 FastEthernet0/17sw2#show int f0/11 switchport Name: Fa0/11Switchport: EnabledAdministrative mode: trunkOperational Mode: trunkAdministrative Trunking Encapsulation: dot1qOperational Trunking Encapsulation: dot1qNegotiation of Trunking: DisabledAccess Mode VLAN: 0 (Inactive)Trunking Native Mode VLAN: 1 (default)Trunking VLANs Enabled: ALLTrunking VLANs Active: 1-4,10,30,100Pruning VLANs Enabled: 2-1001Priority for untagged frames: 0Override vlan tag priority: FALSEVoice VLAN: noneAppliance trust: noneSelf Loopback: Nosw2#show int f0/3 switchport Name: Fa0/3Switchport: EnabledAdministrative mode: trunkOperational Mode: trunkAdministrative Trunking Encapsulation: dot1qOperational Trunking Encapsulation: dot1qNegotiation of Trunking: DisabledAccess Mode VLAN: 0 (Inactive)Trunking Native Mode VLAN: 1 (default)Trunking VLANs Enabled: ALLTrunking VLANs Active: 1-4,10,30,100Pruning VLANs Enabled: 2-1001Priority for untagged frames: 0Override vlan tag priority: FALSEVoice VLAN: noneAppliance trust: noneSelf Loopback: Nosw2#RouterenRouterenable Router#Router#show ip int briefInterface IP-Address OK? Method Status ProtocolEthernet0/0 unassigned YES unset up up Ethernet0/0.10 172.17.10.1 YES manual up up Ethernet0/0.20 172.17.20.10 YES manual up up Serial0/0 unassigned YES unset administratively down down Serial0/1 unassigned YES unset administratively down down Router#conf tEnter configuration commands, one per line. End with CNTL/Z.Router(config)#int e0/0.10Router(config-subif)#encapsulation dot1Q 10 Router(config-subif)#ip address 192.168.1.1 255.255.255.0Router(config-subif)#endRouter#*Mar 1 06:57:13.224: %SYS-5-CONFIG_I: Configured from console by consolepngRouter#ping Router#ping 192.168.1.11Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 192.168.1.11, timeo
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 电网GIS系统课件
- 教案人教版九年级我爱故乡的杨梅教学札记(2025-2026学年)
- 江苏省如皋市白蒲镇九年级历史上册 第四单元 步入近代 第13课 法国大革命和拿破仑帝国说课稿 新人教版
- 个人所得税六项专项附加扣除和扣缴申报操作指引年月日实施专题培训教案(2025-2026学年)
- 监控设备合同
- 3.2 代数式的值 第1课时 说课稿 2024-2025学年人教版七年级数学上册
- 跨境网络零售的发展条件说课稿-2025-2026学年中职专业课-跨境电商基础-电子商务-财经商贸大类
- 2025物业前期服务合同示范文本
- 一年级道德与法治上册 第2课 我认识了新朋友说课稿 鄂教版
- 第10课 校园舞台展风采说课稿-2025-2026学年小学信息技术电子工业版安徽五年级上册-电子工业版(安徽)
- 制氮机设备设施风险点日常检查表
- 数学教育概论张奠宙-宋乃庆课件
- 植物的组织和器官
- GB/T 20882.2-2021淀粉糖质量要求第2部分:葡萄糖浆(粉)
- 总账会计绩效考核表
- 人工智能8神经网络课件
- 维利克面试问题汇总
- 小区监控系统改造方案
- (新)中考英语书面表达指导教学公开课课件
- 高中生物竞赛课件植物器官的结构与生长发育
- 中西医治疗高血压课件
评论
0/150
提交评论