《CCNA培训课件-Vlan间路由.pptx》由会员分享,可在线阅读,更多相关《CCNA培训课件-Vlan间路由.pptx(12页珍藏版)》请在taowenge.com淘文阁网|工程机械CAD图纸|机械工程制图|CAD装配图下载|SolidWorks_CaTia_CAD_UG_PROE_设计图分享下载上搜索。
1、C C N AVlan间路由Routing Between VLANs CoursewarePurpose of Inter-VLAN Routing通过路由表在不同vlan间交换数据A VLAN creates a separate switching segment.Traffic cannot be switched between VLANs.VLANs have different IP subnets.Routing is necessary to forward traffic between VLANs.Options for Inter-VLAN RoutingThese s
2、olutions can provide inter-VLAN routing:Router with a separate interface in each VLAN(不现实的方案)Router with a trunk link(单臂路由)Layer 3 switch(交换机的三层功能-SVI)Options for Inter-VLAN Routing(Cont.)Option:Router with a separate interface in each VLAN-用路由 器的物理接口产生的直连进行vlan间路由(太浪费端口了!)Options for Inter-VLAN Rou
3、ting(Cont.)Option:Router with a trunk link-单臂路由,通过子接口完成Options for Inter-VLAN Routing(Cont.)Option:Layer 3 switch-通过三层交换机的物理接口完成,同样 过于浪费交换机的接口Configuring a Router with a Trunk LinkRouter(config)#interface GigabitEthernet 0/0.10Router(config-if)#encapsulation dot1Q 10Router(config-if)#ip address 10.1
4、.10.1 255.255.255.0 Router(config-if)#interface GigabitEthernet 0/0.20 Router(config-if)#encapsulation dot1Q 20Router(config-if)#ip address 10.1.20.1 255.255.255.0Configures subinterfaces and trunking on the routerConfiguring Router with a Trunk Link(Cont.)Switch(config)#interface FastEthernet 0/13S
5、witch(config-if)#switchport mode trunkSwitch(config-if)#interface FastEthernet 0/1Switch(config-if)#switchport access vlan 10Switch(config-if)#interface FastEthernet 0/3Switch(config-if)#switchport access vlan 20Assigns ports to specific VLANs and configures the port toward the router as a trunkConf
6、iguring Router with a Trunk LinkProtocols Configured:IPAddress:10.1.10.1Received:11Transmitted:18Virtual LAN ID:20(IEEE 802.1Q Encapsulation)vLAN Trunk Interface:GigabitEthernet0/0.20Protocols Configured:IPAddress:10.1.20.1Received:11Transmitted:8Verifies the VLAN subinterfacesRouter#show vlansVirtu
7、al LAN ID:10(IEEE 802.1Q Encapsulation)vLAN Trunk Interface:GigabitEthernet0/0.10Configuring Router with a Trunk Link(Cont.)C L C L10.0.0.0/8 is variably subnetted,4 subnets,2 masks 10.1.10.0/24 is directly connected,GigabitEthernet0/0.10 10.1.10.1/32 is directly connected,GigabitEthernet0/0.10 10.1
8、.20.0/24 is directly connected,GigabitEthernet0/0.20 10.1.20.1/32 is directly connected,GigabitEthernet0/0.20Verifies the IP routing table for VLAN subinterfacesRouter#show ip routeCodes:L-local,C-connected,S-static,R-RIP,M-mobile,B-BGP D-EIGRP,EX-EIGRP external,O-OSPF,IA-OSPF inter areaN1-OSPF NSSA
9、 external type 1,N2-OSPF NSSA external type 2 E1-OSPF external type 1,E2-OSPF external type 2i-IS-IS,su-IS-IS summary,L1-IS-IS level-1,L2-IS-IS level-2 ia-IS-IS inter area,*-candidate default,U-per-user static route o-ODR,P-periodic downloaded static route,H-NHRP,l-LISP+-replicated route,%-next hop overrideGateway of last resort is not setSummaryInter-VLAN communication cannot occur without a Layer 3 device(Layer 3 switch or router).Routing is necessary to forward traffic between VLANs.A router with a trunk link is configured with a subinterface for each VLAN.THANKS谢谢观看FOR WATCHING小脑斧老师