




已阅读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. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2025中考数学总复习《分式》考点攻克【含答案详解】
- 2024年自考专业(计算机网络)高频难、易错点题【全优】附答案详解
- 2025年即热式热水器行业研究报告及未来发展趋势预测
- 万以内加法口算教学说课稿范文
- 药物干预转基因肝病-洞察及研究
- 新零售业营销策略与案例分析
- 工业工程设计原则细则
- 心理咨询机构运营规划
- 工业自动化设备维护保养手册
- 信息安全管理规定
- 产品品质及售后无忧服务承诺书3篇
- 2025年第11个全国近视防控宣传教育月活动课件
- 2025年养老产业市场营销策略调整分析报告
- 部编版二年级道德与法治上册第4课《欢欢喜喜庆国庆》精美课件
- 潍坊市2026届高三开学调研监测考试生物试题及答案
- 安徽省定远县藕塘中学高三上学期周考训练物理试题
- 三维波动方程双变网格有限差分并行模拟方法:理论、实践与优化
- 邮政银行一点一策课件
- 膝关节炎科普知识课件
- 餐饮咨询顾问合同范本
- 四级专项模拟考试题库及答案
评论
0/150
提交评论