交换机VLAN间路由配置.ppt_第1页
交换机VLAN间路由配置.ppt_第2页
交换机VLAN间路由配置.ppt_第3页
交换机VLAN间路由配置.ppt_第4页
交换机VLAN间路由配置.ppt_第5页
已阅读5页,还剩16页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

1、VLAN间路由 Inter-VLAN Routing,深圳职业技术学院计算机系网络专业,教学目标( 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间路由(Configuring Inter-VLAN Routing),介绍VLAN间路由(Introducing Inter-

2、VLAN Routing),没有路由的辅助VLAN1和VLAN200不能通信。 VLAN1 and 200 cannot communicate without assistance of a router.,介绍VLAN间路由(Introducing Inter-VLAN Routing),为了路由在一个非Trunk环境下VLAN1和200的信息,路由器必须用一个接口连接在VLAN1中,用一个接口连接在VLAN200中。 To route traffic between vlan1 and vlan200 in a non-vlan-trunk environment ,a router m

3、ust connect to a port in vlan 1 and a port in vlan 200.,介绍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 be involved . 2.如果一个VLAN 跨越多个设备,在设备之间要用Trunk连接。 If

4、a VLAN spans across multiple devices a trunk is used to interconnect the devices.,VLAN互联问题(Inter-VLAN Issues),当多个VLAN连接到一起时,几个技术问题随之出现When VLANs are connected together, several technical issues will arise. 1.端用户设备需要到达非本地主机 The need for end user devices to reach non-local hosts 2.不同vlan的主机需要通信 The ne

5、ed for hosts on different VLANs to communicate,VLAN互联解决方案(Inter-VLAN Solutions ),1. VLAN间通信可以通过逻辑的或者物理的连接来解决。 Inter-VLAN connectivity can be achieved through either logical or physical connectivity. 2. 逻辑连接涉及一个从交换机到路由器的单独Trunk连接Trunk链路携带多个VLAN的信息,这种拓扑称为独臂路由器。 Logical connectivity involves a single c

6、onnection, or trunk, from the switch to the router. That trunk can support multiple VLANs. This topology is called a router on a stick 3. 物理连接需要为每一个VLAN指定一个单独的物理接口。 Physical connectivity involves a separate physical connection for each VLAN.,逻辑和物理连接( Logical and Physical Connectivity ),独臂路由器(A Route

7、r on a Stick),物理和逻辑接口(Physical and Logical Interfaces),在传统情况下,有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

8、 as Inter-Switch Link (ISL) became more common, network designers began to use trunk links to connect routers to switches.,ISL and 802.1q,ISL和 802.1Q是快速以太口链路Trunk链路的封装格式。 ISL and 802.1q are used to trunk VLANs over Fast Ethernet links 一个单一的ISL或 802.1Q链路可以传输多个VLAN信息 A single ISL or 802.1q link can su

9、pport multiple vlans,Trunk连接的路由器(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的主要好处是节省路由器和交换机的接口。不仅省钱,而且减少配置的复杂性。 The primary advantage of using a trunk link is a reduction in the numbe

10、r of router and switch ports used. Not only can this save money, it can also reduce configuration complexity.,将物理接口划分为子接口(Dividing Physical Interfaces into Subinterfaces),将物理接口划分为子接口(Dividing Physical Interfaces into Subinterfaces),1. 子接口是在物理接口上的逻辑接口。 A subinterface is a logical interface within a p

11、hysical interface. 2. 每一个子接口支持一个VLAN,可以指定一个IP地址 Each subinterface supports one 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.,配置VLAN间路由(Configuring Inter-VLAN Routing),配置VLAN间路由(C

12、onfiguring 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.为了正确的完成VLAN间路由,所有的路由器和交换机必须支持相同的封装。 In order for inter-VLAN routing to work properly, all of th

13、e routers and switches involved must support the same encapsulation.,在物理接口上定义子接口(Define Subinterfaces on a Physical Interface),1.定义子接口 Identify the interface. 2.定义VLAN封装 Define the VLAN encapsulation. 3.配置IP地址 Assign an IP address to the interface.,练习1(Exercise1),Host A in the graphic is connected t

14、o a switch port assigned to VLAN 1. Which two settings on host A are required to allow connectivity with Host B on VLAN 2? (Choose two) A. IP address: 192.1.1.66 255.255.255.240 B. IP address: 192.1.1.130 255.255.255.192 C. IP address: 192.1.1.142 255.255.255.240 D. Default gateway: 192.1.1.129 E. D

15、efault gateway: 192.1.1.65 F. Default gateway: 192.1.1.1,练习2(Exercise2),Which of the following are valid configuration values for the host shown in the graphic? (Choose three) A. host A IP address: 192.1.1.65 B. host A subnet mask: 255.255.255.224 C. host B IP address: 192.1.1.125 D. host B default gateway: 192.1.1.65 E. host C IP address: 192.1.1.166 F. host C subnet mask: 255.255.255.224,VLAN通过三层交换实现VLAN路由( Inter-VLAN Routing by Layer 3 Switching ),1.打开路由功能(enable routing) Switch(config)#ip routing 2.为该接口分配一个IP地址(configurin

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论