




已阅读5页,还剩1页未读, 继续免费阅读
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
CCNP第二十七讲-三层交换(MLS)1. 单臂路由R1(config)#int fa0/0R1(config)#no shutdownR1(config)#int fa0/0.10R1(config-subif)#encapsulation dot1q 10R1(config-subif)#ip address 10.1.1.254 255.255.255.0R1(config-subif)#no shutdownR1(config)#int fa0/0.20R1(config-subif)#encapsulation dot1q 20R1(config-subif)#ip address 20.1.1.254 255.255.255.0R1(config-subif)#no shutdownSW1(config)#vlan 10SW1(config)#vlan 20SW1(config)#int fa0/1SW1(config-if)#switchport trunk encapsulation dot1qSW1(config-if)#switchport mode trunkSW1(config-if)#no shutdownSW1(config)#int range fa0/2-3SW1(config-if-range)#switchport trunk encapsulation dot1qSW1(config-if-range)#switchport mode trunkSW1(config-if-range)#no shutdownSW2(config)#vlan 10SW2()config#vlan 20SW2(config)#int range fa0/2-3SW2(config-if-range)#switchport trunk encapsulation dot1qSW2(config-if-range)#switchport mde trunkSW2(config-if-range)#no shutdownSW2(config)#int fa0/4SW2(config-if)#switchport mode accessSW2(config-if)#switchport access vlan 10SW2(config-if)#no shutdownSW2(config)#int fa0/5SW2(config-if)#switchport mode accessSW2(config-if)#switchport access vlan 20SW2(config-if)#no shutdown由于本征vlan不打标机。添加一台PC3,在vlan1SW2(config)#int fa0/1SW2(config)#switchport mode accessSW2(config)#switchport access vlan 1R1(config)#int fa0/0.1R1(config-subif)#encapsulation dot1q 1 native方法二:使用主接口接收本征vlan的帧。基于ISL的封装;三层交换机;2. SVI实现vlan之间通信SW(config-if)#no switchportSVI实现vlan之间通信SW1(config)#vlan 10SW2(config)#vlan 20SW1(config)#int vlan 10SW1(config-if)#ip address 10.1.1.254 255.255.255.0SW1(config)#int vlan 20SW1(config-if)#ip addres 20.1.1.254 255.255.255.0SW1(config)#ip routingSW1(config)#int range fa0/1-2SW1(config-if-range)#switchport trunk encapsulation dot1qSW1(config-if-range)#switchport mode trunkSW1(config-if-range)#no shutdownSW2(config)#int range fa2/1,fa3/1SW2(config-if-range)#switchport mode trunkSW2(config-if-range)#no shutdownSW2(config)#vlan 10SW2(config)#vlan 20SW2(config)#int fa0/1SW2(config-if)#switchport mode accessSW2(config-if)#switchport access vlan 10SW2(config-if)#no shutdownSW2(config)#int fa1/1SW2(config-if)#switchport mode accessSW2(config-if)#switchport access vlan 20SW2(config-if)#no shutdownPC2#ping 10.1.1.1Pinging 10.1.1.1 with 32 bytes of data:Reply from 10.1.1.1: bytes=32 time=60ms TTL=127Reply from 10.1.1.1: bytes=32 time=19ms TTL=127Reply from 10.1.1.1: bytes=32 time=10ms TTL=127Reply from 10.1.1.1: bytes=32 time=28ms TTL=127Ping statistics for 10.1.1.1: Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),Approximate round trip times in milli-seconds: Minimum = 10ms, Maximum = 60ms, Average = 29msPC当把交换机的接口启用为3层接口,那么该交换机接口的MAC地址为将背板MAC地址,SW(config-if)#no switchport 把交换机启为三层接口,1. 交换机的SVI接口的MAC地址来源于交换机的背板,一般交换机会有连续的若干个MAC地址,其中最小的一个永远会自动分配给vlan 1的SVI,原因是该SVI,不用创建就会自动生成,并且不会消失,当在交换机上创建了一个新的vlan的SVI,时,交换机会自动的吧背板可以使用的最小MAC地址,分配给该SVI,当该SVIdown时,或者被删除时,交换机会将其MAC地址回收,SVI的MAC地址,不会永远维持同一个。取决于该SVI什么时间被创建,三层交换机的MAC如同SVI的接口原理。3. 交换机三层接口实现vlan之间通信。SW1(config)#int fa0/1SW(config-if)#no switchportSW1(config-if)#ip address 10.1.1.254 255.255.255.0SW1(config-if)#no shutdownSW1(config)#int fa0/2SW1(config-if)#no switchportSW1(config-if)#ip address 20.1.1.254 255.255.255.0SW1(config-if)#no shutdownSW1(config)#ip routingSW2(config)#int fa0/1SW2(config-if)#switchport mode accessSW2(config-if)#switchport access vlan 10SW2(config-if)#no shutdownSW2(config)#int fa0/2SW2(config-if)#switchport mode accessSW2(config-if)#switchport access vlanSW2(config-if)#no shutdownPC2#ping 10.1.1.1Pinging 10.1.1.1 with 32 bytes of data:Reply from 10.1.1.1: bytes=32 time=11ms TTL=127Reply from 10.1.1.1: bytes=32 time=33ms TTL=127Reply from 10.1.1.1: bytes=32 time=20ms TTL=127Reply from 10.1.1.1: bytes=32 time=17ms TTL=127Ping statistics for 10.1.1.1: Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),Approximate round trip times in milli-seconds: Minimum = 11ms, Maximum = 33ms, Average = 20msPC注意交换机三层接口不支持子接口,这种方式不优。交换机开启CEFSW(config)#ip cef distributeSW#show ip cef detail /查看CEF表SW#show adjacency /查看邻接表SW#show adjacency detailSW(config-if)#ip load-sharing per-destination /基于目的地的负载均衡SW(config-if)#ip load-sharing per-packet /基于数据包的负载均衡VACL实现vlan内的流过滤SPAN(Switch Port Analyzer)交换机端口分析仪源接口:span源接口目的接口:SW(config)#no monitor session allSW(config)#monitor session 1 source interface fa0/1 rx /源接口SW(config)#monitor session 1 destination interface fa0/4 /目的接口该接口只能收到监控流量SW(config)#mo
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- GB/T 46098-2025汽车主动降噪系统性能要求和试验方法
- 放射性矿石磁选分离工艺考核试卷及答案
- 海洋水文气象观测员晋升考核试卷及答案
- D供应商分类标准及注册评价等测试卷附答案
- 银行招聘文秘试题及答案
- 银行行长考核试题及答案
- 中职专业试题及答案
- 电力专业试题及答案
- 茶学专业试题及答案
- 中药鉴定专业试题及答案
- 安徽省定远县藕塘中学高三上学期周考训练物理试题
- 邮政银行一点一策课件
- 餐饮咨询顾问合同范本
- 四级专项模拟考试题库及答案
- 川教版(2024)七年级上册信息科技全册教案
- 2025-2026学年新疆师范大学附属实验高中高三数学第一学期期末统考试题
- DBJ50-T-157-2022房屋建筑和市政基础设施工程施工现场从业人员配备标准
- 直播责任自负书
- 2023年太原市第二热力有限责任公司招聘笔试题库及答案解析
- DDI辅导员工迈向成功-辅导领导力系列
- 煤矿井筒装备安装方案
评论
0/150
提交评论