收藏 分销(赏)

第六课:VLAN间的通信.ppt

上传人:仙人****88 文档编号:13322666 上传时间:2026-03-01 格式:PPT 页数:15 大小:1.63MB 下载积分:10 金币
下载 相关 举报
第六课:VLAN间的通信.ppt_第1页
第1页 / 共15页
第六课:VLAN间的通信.ppt_第2页
第2页 / 共15页


点击查看更多>>
资源描述
单击此处编辑母版标题样式,单击此处编辑母版文本样式,第二级,第三级,第四级,第五级,网络互联与实现,计算机网络技术教研室,王宏群,VLAN,间的通信,本节目标,利用路由器配置实现,VLAN,之间通信(单臂路由),能够配置,Cisco,的三层交换机,使不同,VLAN,的主机能够互相通信,路由器与交换机之间的单臂路由,交换机上的,VLAN,之间如何通信?,VLAN 1,VLAN 2,VLAN 3,192.168.1.2/24,192.168.2.2/24,f0/0,Trunk,单臂路由的配置,Router(config)#interface f0/0.1,Router(config-subif)#encapsolution dot1q 1,Router(config-subif)#ip address,192.168.1.1 255.255.255.0,Router(config)#interface f0/0.2,Router(config-subif)#encapsolution dot1q 2,Router(config-subif)#ip address,192.168.2.1 255.255.255.0,Vlan ID,单臂路由实现,VLAN,之间通信实例,VLAN 1,VLAN 2,VLAN,之间的通信需要路由器来完成,10.0.0.0/8,20.0.0.0/8,f0/0,Router(config)#interface fastEthernet 0/0Router(config-if)#no shutdownRouter(config-if)#exit,Router(config)#interface fastEthernet 0/0.1Router(config-subif)#encapsulation dot1q 1Router(config-subif)#ip address 10.1.1.1 255.0.0.0Router(config-subif)#exit,Router(config)#interface fastEthernet 0/0.2Router(config-subif)#encapsulation dot1q 2Router(config-subif)#ip address 20.1.1.1 255.0.0.0Router(config-subif)#end,单臂路由产生的瓶颈,数据量增大,路由器与交换机之间的路径会成为整个网络的瓶颈,VLAN 1,VLAN 2,三层交换解决瓶颈问题,三层交换二层交换三层转发,三层交换机采用硬件完成数据包的交换,保证线速转发。如何实现?,三层交换机实现,VLAN,互通实例,7-1,Vlan 1,Vlan 2,192.168.1.0/24,192.168.2.0/24,Vlan 3,192.168.3.0/24,SW-2L,SW-3L,f0/1-10,f0/11-15,f0/16-23,f0/24,f0/24,192.168.2.156,192.168.3.156,Vlan 1,:,192.168.1.1/24Vlan 2,:,192.168.2.1/24Vlan 3,:,192.168.3.1/24,三层交换机实现,VLAN,互通实例,7-2,在,2,层交换机上配置,VLAN,SW-2L(config)#vlan 2,SW-2L(config-vlan)#vlan 3,SW-2L(config-vlan)#exit,SW-2L(config)#interface range f0/11-15,SW-2L(config-if-range)#switchport access vlan 2,SW-2L(config-if-range)#switchport mode access,SW-2L(config)#interface range f0/16-23,SW-2L(config-if-range)#switchport access vlan 3,SW-2L(config-if-range)#switchport mode access,三层交换机实现,VLAN,互通实例,7-3,在,2,层交换机上配制,Trunk,接口,SW-2L(config)#interface f0/24,SW-2L(config-if)#switchport mode trunk,三层交换机实现,VLAN,互通实例,7-4,在,3,层交换机上配置与,2,层交换机相同的,VLAN,(配置步骤与方法相同),在,3,层交换机上启动路由,SW-3L(config)#ip routing,第,1,步:配置,VLAN,与,Trunk,第,2,步:配置启动路由功能,三层交换机实现,VLAN,互通实例,7-5,在,3,层交换机上配置各,VLAN,的,IP,地址,SW-3L(config)#interface vlan 1,SW-3L(config-if)#ip address 192.168.1.1 255.255.255.0,SW-3L(config-if)#no shut,SW-3L(config)#interface vlan 2,SW-3L(config-if)#ip address 192.168.2.1 255.255.255.0,SW-3L(config-if)#no shut,SW-3L(config)#interface vlan 3,SW-3L(config-if)#ip address 192.168.3.1 255.255.255.0,SW-3L(config-if)#no shut,第,3,步:配置各,VLAN,的,IP,地址,三层交换机实现,VLAN,互通实例,7-6,在,3,层交换机上查看路由表,SW-3L#show ip route,Codes:C-connected,S-static,R-RIP,M-mobile,B-BGP,D-EIGRP,EX-EIGRP external,O-OSPF,IA-OSPF inter area,N1-OSPF NSSA external type 1,N2-OSPF NSSA external type 2,E1-OSPF external type 1,E2-OSPF external type 2,E-EGP,i-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,Gateway of last resort is not set,C 192.168.1.0/24 is directly connected,Vlan1,C 192.168.2.0/24 is directly connected,Vlan2,C 192.168.3.0/24 is directly connected,Vlan3,在,3,层交换机中可以看到已经配置的,3,个本地,VLAN,的网段地址,第,4,步:验 证,三层交换机实现,VLAN,互通实例,7-7,在主机,192.168.2.156,上,ping 192.168.3.156,C:ping 192.168.3.156,Pinging 192.168.3.156 with 32 bytes of data:,Reply from 192.168.3.156:bytes=32 time1ms TTL=254,Reply from 192.168.3.156:bytes=32 time1ms TTL=254,Reply from 192.168.3.156:bytes=32 time1ms TTL=254,Reply from 192.168.3.156:bytes=32 time1ms TTL=254,Ping statistics for 192.168.3.156:,Packets:Sent=4,Received=4,Lost=0(0%loss),
展开阅读全文

开通  VIP会员、SVIP会员  优惠大
下载10份以上建议开通VIP会员
下载20份以上建议开通SVIP会员


开通VIP      成为共赢上传

当前位置:首页 > 教育专区 > 小学其他

移动网页_全站_页脚广告1

关于我们      便捷服务       自信AI       AI导航        抽奖活动

©2010-2026 宁波自信网络信息技术有限公司  版权所有

客服电话:0574-28810668  投诉电话:18658249818

gongan.png浙公网安备33021202000488号   

icp.png浙ICP备2021020529号-1  |  浙B2-20240490  

关注我们 :微信公众号    抖音    微博    LOFTER 

客服