




版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、1vlan间路由间路由 inter-vlan routing 深圳职业技术学院电子与通信工程学院深圳职业技术学院电子与通信工程学院2教学目标(教学目标( objectives )1.介绍介绍vlan间路由间路由(introducing inter-vlan routing)2. vlan互联问题及解决方案互联问题及解决方案(inter-vlan issues and solutions )3.独臂路由器(独臂路由器(a router on a stick)4. trunk连接的路由器(连接的路由器(trunk-connected routers) 5.配置配置vlan间路由间路由(config
2、uring inter-vlan routing)3介绍介绍vlan间路由间路由(introducing inter-vlan routing)4介绍介绍vlan间路由间路由(introducing inter-vlan routing)为了路由在一个非为了路由在一个非trunk环境下环境下vlan1和和200的信息,路由器必须用一个接口连的信息,路由器必须用一个接口连接在接在vlan1中,用一个接口连接在中,用一个接口连接在vlan200中。中。to route traffic between vlan1 and vlan200 in a non-vlan-trunk environment
3、 ,a router must connect to a port in vlan 1 and a port in vlan 200.5介绍介绍vlan间路由间路由(introducing inter-vlan routing)1.当在一个广播域中的主机想要访问在另一个广播域中的主当在一个广播域中的主机想要访问在另一个广播域中的主机,必须通过路由器。机,必须通过路由器。when a host in one broadcast domain wishes to communicate with a host in another broadcast domain, a router must b
4、e involved .2.如果一个如果一个vlan 跨越多个设备,在设备之间要用跨越多个设备,在设备之间要用trunk连连接。接。if a vlan spans across multiple devices a trunk is used to interconnect the devices. 6vlan互联问题(互联问题(inter-vlan issues)当多个当多个vlan连接到一起时,几个技术问题随之出现。连接到一起时,几个技术问题随之出现。when vlans are connected together, several technical issues will arise
5、. 1.端用户设备需要到达非本地主机端用户设备需要到达非本地主机the need for end user devices to reach non-local hosts 2.不同不同vlan的主机需要通信的主机需要通信the need for hosts on different vlans to communicate 7vlan互联解决方案(互联解决方案(inter-vlan solutions )1. vlan间通信可以通过逻辑的或者物理的连接来解决。间通信可以通过逻辑的或者物理的连接来解决。inter-vlan connectivity can be achieved throug
6、h either logical or physical connectivity. 2. 逻辑连接涉及一个从交换机到路由器的单独逻辑连接涉及一个从交换机到路由器的单独trunk连接连接trunk链路携带多个链路携带多个vlan的信息,这种拓扑称为独臂路由器。的信息,这种拓扑称为独臂路由器。logical connectivity involves a single connection, or trunk, from the switch to the router. that trunk can support multiple vlans. this topology is called
7、 a router on a stick. 3. 物理连接需要为每一个物理连接需要为每一个vlan指定一个单独的物理接口。指定一个单独的物理接口。physical connectivity involves a separate physical connection for each vlan. 8逻辑和物理连接逻辑和物理连接( logical and physical connectivity )9独臂路由器(独臂路由器(a router on a stick)10物理和逻辑接口物理和逻辑接口(physical and logical interfaces)在传统情况下,有在传统情况下,有
8、4个个vlan的网络需要交换机和路由器之间使的网络需要交换机和路由器之间使用四个物理连接用四个物理连接 in a traditional situation, a network with four vlans would require four physical connections between the switch and the external router. 随着技术的发展,向随着技术的发展,向isl变得应用更为广泛,网络设计者开始变得应用更为广泛,网络设计者开始在交换机和路由器之间的连接使用在交换机和路由器之间的连接使用trunk。as technologies such
9、as inter-switch link (isl) became more common, network designers began to use trunk links to connect routers to switches.11isl and 802.1qisl和和 802.1q是快速以太口链路是快速以太口链路trunk链路的封装格式。链路的封装格式。isl and 802.1q are used to trunk vlans over fast ethernet links 一个单一的一个单一的isl或或 802.1q链路可以传输多个链路可以传输多个vlan信息信息a si
10、ngle isl or 802.1q link can support multiple vlans12trunk连接的路由器(连接的路由器(trunk-connected routers)在路由器的接口上封装在路由器的接口上封装isl 或或 802.1q,可以连接交换机的,可以连接交换机的trunk接口。接口。 a isl or 802.1q-enabled interface on the router connects to a trunk port on the switch.使用使用trunk的主要好处是节省路由器和交换机的接口。不仅省钱,而且减少配置的复杂性。的主要好处是节省路由器
11、和交换机的接口。不仅省钱,而且减少配置的复杂性。the primary advantage of using a trunk link is a reduction in the number of router and switch ports used. not only can this save money, it can also reduce configuration complexity. 13将物理接口划分为子接口将物理接口划分为子接口(dividing physical interfaces into subinterfaces)14将物理接口划分为子接口将物理接口划分为子
12、接口(dividing physical interfaces into subinterfaces)15将物理接口划分为子接口将物理接口划分为子接口(dividing physical interfaces into subinterfaces)1. 子接口是在物理接口上的逻辑接口。子接口是在物理接口上的逻辑接口。a subinterface is a logical interface within a physical interface. 2. 每一个子接口支持一个每一个子接口支持一个vlan,可以指定一个可以指定一个ip地址地址each subinterface supports o
13、ne vlan, and is assigned one ip address. 3. 为了完成为了完成vlan间路由,必须为每个间路由,必须为每个vlan创建一个子接创建一个子接口口in order to route between vlans with subinterfaces, a subinterface must be created for each vlan. 16配置配置vlan间路由间路由(configuring inter-vlan routing)17配置配置vlan间路由间路由(configuring inter-vlan routing)18配置配置vlan间路由间
14、路由(configuring inter-vlan routing)19配置配置vlan间路由间路由(configuring inter-vlan routing)1.在执行这些命令之前,每一个交换机和路由器都要确认它们支在执行这些命令之前,每一个交换机和路由器都要确认它们支持持vlan封装。封装。before any of these commands are implemented, each router and switch should be checked to see which vlan encapsulations they support.2.为了正确的完成为了正确的完成v
15、lan间路由,所有的路由器和交换机必须支间路由,所有的路由器和交换机必须支持相同的封装。持相同的封装。in order for inter-vlan routing to work properly, all of the routers and switches involved must support the same encapsulation. 20在物理接口上定义子接口在物理接口上定义子接口(define subinterfaces on a physical interface)1.定义子接口定义子接口identify the interface. 2.定义定义vlan封装封装d
16、efine the vlan encapsulation. 3.配置配置ip地址地址assign an ip address to the interface. 21vlanvlan通过三层交换实现通过三层交换实现vlanvlan路由路由( inter-vlan routing by layer 3 switching )1.打开路由功能(打开路由功能(enable routing)switch(config)#ip routing2.为该接口分配一个为该接口分配一个ip地址地址(configuring ip address for svi)interface vlan 11ip address 10.1.1.254 255.255.255.0 interface f0/1 no switchport ip addre
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 护理基础皮肤护理教案
- 浙江省杭州市2025年八年级下学期语文期末考试试卷及答案
- 拔火罐护理教学
- 高效的护理管理试题及答案
- 2025年储能技术多元化在能源行业中的储能系统储能容量与功率匹配报告
- 水文监测与评价标准试题及答案
- 行政管理公共关系的市场形象塑造题及答案
- 2025年教育游戏化在儿童教育中的应用:教学设计优化策略报告
- 传承民间艺术2025年乡村文化创意集市非遗保护与发展建议
- 2025年电商平台售后服务客户反馈处理与响应策略
- 中国特色社会主义期中测试题-2023-2024学年中职高教版
- 学习康复科常见物理治疗法课件
- 教科版五年级下册科学第三单元《环境与我们》单元测试卷(含答案)
- 无人机测试与评估标准
- MOOC 单片机原理与应用-北京交通大学 中国大学慕课答案
- 新粤教粤科版五年级下册科学全册教学课件
- 2024年快递员技能竞赛理论知识考试题库(500题)
- 2023年广东省东莞日报社招聘7人笔试参考题库(共500题)答案详解版
- 二手车鉴定评估报告书(范本)
- 林威老师形形色色的人习作课 点评
- 03K132 风管支吊架图集
评论
0/150
提交评论