当前位置:
文档之家› 路由器协议配置 03 VLAN间路由要点
路由器协议配置 03 VLAN间路由要点
FACULTY OF SOFTWARE
VLAN间路由
Inter-VLAN Routing
计算机学院
1
VL路由的辅助,VLAN1和VLAN200不能通信。 VLAN1 and 200 cannot communicate without assistance of a router.
物理和逻辑接口 (Physical and Logical Interfaces)
1 在传统情况下,有4个VLAN的网络需要交换机和路由器之间使 用四个物理连接。 In a traditional situation, a network with four VLANs would require four physical connections between the switch and the external router. 2 随着技术的发展,像ISL应用变得更为广泛,网络设计者开始 在交换机和路由器之间的连接使用Trunk链路。 As technologies such as Inter-Switch Link (ISL) became more common, network designers began to use trunk links to connect routers to switches.
5
单臂路由器 (A Router on a Stick) 方法 1 单臂路由器
独臂路由提供了一种VLAN间实现相互通信的解 决方案。路由器只需要一个快速以太网口和交换机 相连,交换机的这个接口设置为Trunk接口。在路 由器上创建多个子接口和不同的VLAN连接,子接 口是路由器物理接口上的逻辑接口。
2
VLAN间路由 (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 a VLAN spans across multiple devices a trunk is used to interconnect the devices.
10
配置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.
1. 子接口是在物理接口上的逻辑接口 A subinterface is a logical interface within a physical 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.
7
Trunk连接的路由器 (Trunk-Connected Routers)
在路由器的接口上封装ISL 或 802.1q,可以连接交换机的 Trunk接口。 使用Trunk的主要好处是节省路由器和交换机的接口。不仅 省钱,而且减少配置的复杂性。
9
将物理接口划分为子接口 (Dividing Physical Interfaces into Subinterfaces)
3
介绍VLAN间路由 (Introducing Inter-VLAN Routing)
方法 1 增加物理接口
为了路由在一个非Trunk的环境下VLAN1和VLAN200的信息, 路由器必须用一个接口连接在VLAN1中,用一个接口连接在 VLAN200中。 To route traffic between vlan1 and vlan200 in a non-vlantrunk environment ,a router must connect to a port in vlan 4 1 and a port in vlan 200.
2.为了正确的完成VLAN间路由,所有的路由器和交换机 必须支持相同的封装。
In order for inter-VLAN routing to work properly, all of the routers and switches involved must support the same encapsulation.
11
配置VLAN间路由 (Configuring Inter-VLAN Routing)
配置步骤:
1.定义子接口 Identify the interface. 2.定义VLAN封装 Define the VLAN encapsulation. 3.配置IP地址
优点:是节约了交换机和路由器的接口 缺点:这种方法转发带宽受中继链路带宽限制,可 能带来路由器产生过载, 每个VLAN带宽不足或者 IOS版本过低,导致仅支持ISL封装,不支持dot1q 等情况发生。
6
单臂路由器 (A Router on a Stick)
单臂路由。路由器的以太网接口较少(一 般配置2~4个),使用路由器为不同 VLAN提供通信,当VLAN个数较多时, 路由器的以太网接口无法直连多个VLAN 的交换机。