Presentation is loading. Please wait.

Presentation is loading. Please wait.

实现内部VLAN间路由 描述VLAN间路由 三层交换,VLAN间路由。.

Similar presentations


Presentation on theme: "实现内部VLAN间路由 描述VLAN间路由 三层交换,VLAN间路由。."— Presentation transcript:

1 实现内部VLAN间路由 描述VLAN间路由 三层交换,VLAN间路由。

2 使用外部路由器来实现内部VLAN间路由 Single trunk link carries traffic for multiple VLANs to and from router.

3 内部VLAN间路由 外部路由器方案命令: Configure on subinterface Verify
encapsulation dot1Q (or isl) 10 ip address Verify show vlan 10 show ip route

4 在外部路由器上实现内部VLAN间路由: 802.1Q Trunk Link
ISL必须要用子接口,子接口需要被封装;注意trunk有二种封装的方式;

5 在外部路由器上实现内部VLAN间路由: ISL Trunk Link
ISL没有native的概念

6 检查内部VLAN间路由 The ping command tests connectivity to remote hosts.
PING的工作原理,TRACERT的工作原理;理解一下ICMP的几个类型;echo request(8.0) echo reply(0.0) Ttl超时(3.0) 端口不可达(11.0) The ping command tests connectivity to remote hosts.

7 检查内部VLAN间路由配置: Displays the current IP configuration per VLAN
Router#show vlan Displays the current IP configuration per VLAN Router#show ip route Displays IP route table information 一个VLAN内,二层转发;多个VLAN间,是三层转发;上图是一个单臂路由(好处:实现简单,交换机无须三层功能,用路由器实现三层功能;缺点:无法单点故障,带宽有瓶颈,会有延时。) Router#show ip interface brief Displays IP address on interfaces and current state of interface

8 阐述多层交换: 三层交换,实现了二层和三层的转发;本质是二层CAM表和三层路由表合在一起;硬件实现(ASIC),比如,ACL保存在硬件里,CAM和TCAM表;

9 Layer 2 交换转发流程: 二层转发过程,基于目的的MAC地址;L2 lookup时目的MAC不是自己的。

10 在多层交换中的有逻辑的数据包流 三层转发基于目的IP地址,目的MAC是自己的(L2 lookup时发现是自己的);路由时最长匹配,还得重写数据链路层信息;

11 IP单播帧和包重写: Incoming IP Unicast Packet Rewritten IP Unicast Packet
在路由包时,需要被重写的部分,有没有优化方法?

12 CAM Table 可寻址存储器表 Content Addressable Memory
需要精确匹配每一位 匹配二进制操作: 0 和 1 提供高速查询 路由,交换,ACL都放在硬件里,所以高速;另有二个表格;CAM(二层交换用,一位一位精确匹配的)和TCAM(ACL,路由,QOS,有1,0,不命中三种情况);KEY由VLAN号和目的MAC生成;用HASH后的指针来访问对应的一小段特定CAM内容,而不需要扫描整个CAM表了 CAM表:优化后的MAC地址表,由MAC地址+VLAN生成一个hash值,这个hash值之后16bit Cam由:hash值+交换机Port组成,交换机在收到一个数据帧之后,将数据帧中的MAC+VLAN号做hash运算得出hash值。将这个hash值与cam中的表项做横向的比较 如果存在则将数据帧发向对应的端口,如果没有发生匹配将数据发向属于VLAN的所有端口

13 TCAM Table 只匹配重要的值 匹配只基于三个值: 0, 1, or X (任意) 掩码通常使用反掩码 TCAM是指优化过后的路由表
1,根据掩码长度路由条目分类,分为33类,由32至0 2,在手动一个IP数据包之后进行横向比较,最多比较32次就可以确定匹配32-0中的那几个类别 3,选择匹配长度最长的

14 总结: A router on a stick can be used to route between VLANs using either ISL or 802.1Q as the trunking protocol. A router on a stick requires subinterfaces, one for each VLAN. Verify inter-VLAN routing by generating IP packets between two subnets. Multilayer switches can forward traffic at both Layer 2 and Layer 3. Multilayer switches rewrite the Layer 2 and Layer 3 header using tables held in hardware.

15


Download ppt "实现内部VLAN间路由 描述VLAN间路由 三层交换,VLAN间路由。."

Similar presentations


Ads by Google