《VLAN间相互通信》PPT课件.ppt

上传人:小飞机 文档编号:1377721 上传时间:2022-11-16 格式:PPT 页数:28 大小:171.52KB
返回 下载 相关 举报
《VLAN间相互通信》PPT课件.ppt_第1页
第1页 / 共28页
《VLAN间相互通信》PPT课件.ppt_第2页
第2页 / 共28页
《VLAN间相互通信》PPT课件.ppt_第3页
第3页 / 共28页
《VLAN间相互通信》PPT课件.ppt_第4页
第4页 / 共28页
《VLAN间相互通信》PPT课件.ppt_第5页
第5页 / 共28页
点击查看更多>>
资源描述

《《VLAN间相互通信》PPT课件.ppt》由会员分享,可在线阅读,更多相关《《VLAN间相互通信》PPT课件.ppt(28页珍藏版)》请在三一办公上搜索。

1、课程引导隔离的广播域-不同的网络,VLAN10,VLAN20,172.16.20.4,VLAN30,项目9 不同VLAN间的通信,任务1: 利用多臂路由实现不同VLAN间的通信,任务2: 利用单臂路由实现不同VLAN间的通信,任务3: 利用三层交换机实现不同VLAN间的通信,任务1: 利用多臂路由实现不同VLAN间的通信,VLAN10,VLAN30,VLAN20,多条链路连接多个VLAN,使用路由器进行VLAN间由,VLAN间通信的方法,VLAN10,VLAN20,172.20.0.0,VLAN30,172.10.0.0,172.30.0.0,VLAN间的通信必须借助路由来实现:,可以通过将各

2、交换机连接到路由器不同接口,但这种方法不现实。,任务1: 多臂路由实现不同VLAN间的通信,1、创建VLAN10、把f0/2、f0/5加入到VLAN10中S2126G(config)# vlan 10注:创建vlan 10S2126G(config)# interface fastethernet 0/2注:进入fastethernet 0/2的接口配置模式S2126G(config-if)# switch access vlan 10注:将fastethernet 0/2 端口加入vlan 10 中S2126G(config)# interface fastethernet 0/5注:进入f

3、astethernet 0/5的接口配置模式S2126G(config-if)# switch access vlan 10注:将fastethernet 0/5 端口加入vlan 10 中,二、完成任务简要配置过程,(一) 交换机的配置,2、创建VLAN20、把f0/6、f0/10加入到VLAN20中S2126G(config)# vlan 20注:创建vlan 20S2126G(config)# interface fastethernet 0/6注:进入fastethernet 0/6的接口配置模式S2126G(config-if)# switch access vlan 20注:将fa

4、stethernet 0/6 端口加入vlan 20 中S2126G(config)# interface fastethernet 0/10注:进入fastethernet 0/10的接口配置模式S2126G(config-if)# switch access vlan 20注:将fastethernet 0/10 端口加入vlan 20 中,(一) 交换机的配置,3、创建VLAN30、把f0/8、f0/15加入到VLAN30中S2126G(config)# vlan 30注:创建vlan 30S2126G(config)# interface fastethernet 0/8注:进入fas

5、tethernet 0/8的接口配置模式S2126G(config-if)# switch access vlan 30注:将fastethernet 0/6 端口加入vlan 30 中S2126G(config)# interface fastethernet 0/15注:进入fastethernet 0/15的接口配置模式S2126G(config-if)# switch access vlan 30注:将fastethernet 0/15 端口加入vlan 30 中,(一) 交换机的配置,1为路由器f0接口分配IP 地址B(config)#interface fastethernet 0

6、注:进入路由器f 0 的接口配置模式,B(config-if)#ip address 172.16.10.1 255.255.255.0注:设置路由器f0 的IP 地址为172.16.10.1,对应的子网掩码为255.255.255.0,2为路由器f1接口分配IP 地址B(config)#interface fastethernet 1注:进入路由器f 1 的接口配置模式,B(config-if)#ip address 172.16.20.1 255.255.255.0注:设置路由器f 1 的IP 地址为172.16.20.1,对应的子网掩码为255.255.255.0,(二)路由器的配置,3

7、为路由器f2接口分配IP 地址B(config)#interface fastethernet 2注:进入路由器f 2 的接口配置模式,B(config-if)#ip address 172.16.30.1 255.255.255.0注:设置路由器f2 的IP 地址为172.16.30.1,对应的子网掩码为255.255.255.0,注意将所有接口启用B(config-if)#no shutdown,(二)路由器的配置,任务2: 利用单臂路由实现不同VLAN间的通信,VLAN10,VLAN30,VLAN20,Interface FA 0/1F 0/1.1F 0/1.2F 0/1.3,一条链路连

8、接多个VLAN,单臂路由实现VLAN间路由,单臂路由实现VLAN间路由配置案例,192.168.1.0/24VLAN10,192.168.2.0/24VLAN20,Fa0/1.1,Fa0/1.2,Fa0/1,Fa0/2,Fa0/1,Fa0/20,1、为子接口f0/1.1分配IP并启用Red-Giant(config)#interface fastethernet 0/1.1Red-Giant(config-subif)#encapsulation dot1q 10 Red-Giant(config-subif)#ip address 192.168.1.1 255.255.255.0Red-G

9、iant(config-subif)#no shutdown 2、为子接口f0/1.2分配IP并启用Red-Giant(config)#interface fastethernet 0/1.2Red-Giant(config-subif)#encapsulation dot1q 20Red-Giant(config-subif)#ip address 192.168.2.1 255.255.255.0Red-Giant(config-subif)#no shutdown,路由器的配置,1、创建VLAN 10将F0/1加入VLAN10中Switch(config)#vlan 10Switch(c

10、onfig)#interface fastethernet 0/1Switch(config-if)#switchport access vlan 10Switch(config-if)#exit2、创建VLAN 20将F0/2加入VLAN20中Switch(confg-vlan)#vlan 20Switch(config)#interface fastethernet 0/2Switch(config-if)#switchport access vlan 203、将F0/20口设置成trunk模式Switch(config)#interface fastethernet 0/20Switch

11、(config-if)#switchport mode trunk,交换机配置,任务3: 利用三层交换机实现不同VLAN间的通信,VLAN20Network 172.16.20.4,VLAN10Network 172.16.10.3,三层交换实现VLAN间路由,三层交换机的每一个接口连接一个独立的VLAN开启每个接口的路由功能,并配置IP,三层交换的路由功能,1、采用SVI方式(switch virtual interface)Switch(config)#interface vlan 10Switch(config-if)#ip address 192.168.1.1 255.255.255

12、.0Switch(config-if)#no shutdown,三层交换实现VLAN间路由案例(SVI方式),分别创建每个VLAN的SVI接口,并配置IP地址三层交换机和二层交换机通过trunk链路相连,192.168.1.0/24VLAN10,192.168.2.0/24VLAN20,192.168.3.0/24VLAN30,S3760,S2126G-1,S2126G-2,F0/2,F0/1,F0/3,F0/20,F0/20,F0/10,F0/10,S3760-1(config)#ivlan 10S3760-1(config)#interface vlan 10S3760-1(config-

13、if-VLAN 10)#ip address 192.168.1.1 255.255.255.0S3760-1(config-if-VLAN 10)#no shutdown,S3760-1(config)#ivlan 20S3760-1(config)#interface vlan 20S3760-1(config-if-VLAN 20)#ip address 192.168.2.1 255.255.255.0S3760-1(config-if-VLAN 20)#no shutdown,S3760-1(config)#ivlan 30S3760-1(config)#interface vlan

14、 30S3760-1(config-if-VLAN 30)#ip address 192.168.3.1 255.255.255.0S3760-1(config-if-VLAN 30)#no shutdown,S3760-1(config)#ivlan 40S3760-1(config)#interface vlan 40S3760-1(config-if-VLAN 40)#ip address 192.168.4.1 255.255.255.0S3760-1(config-if-VLAN 40)#no shutdown,S3760-1(config)#interface fastEthern

15、et 0/10S3760-1(config-if-FastEthernet 0/10)#switchport mode trunk,S3760-1(config)#interface fastEthernet 0/20S3760-1(config-if-FastEthernet 0/20)#switchport mode trunk,F0/10,F0/20,在两个二层交换机中划分VLAN,并通过三层交换机实现不同VLAN间的通信。注意:工作的程序要严谨且负有逻辑性。建议:最好小组成员充分讨论,制定出工作计划,并分工明确,从而预防实际操作过程中的混乱。,项目任务,利用三层交换实现VLAN间通信参

16、考拓扑结构,2、三层交换机默认开启路由功能Switch(config)#ip routing (开启三层交换机路由功能)三层交换机配置路由接口的两种方法3、开启三层交换机物理接口的路由功能Switch(config)#interface fastethernet 0/5Switch(config-if)#no switchportSwitch(config-if)#ip address 192.168.1.1 255.255.255.0Switch(config-if)#no shutdown关闭物理接口路由功能Switch(config-if)# switchport,三层交换的路由功能(路

17、由接口),三层交换机和路由器相连的网络,方法一(SVI):Switch(config)#interface f0/10Switch(config-if)#switchport access vlan 10Switch(config-if)#exitSwitch(config)#interface vlan 10switch(config-if)#ip address 192.168.10.1 255.255.255.0Switch(config-if)#no shutdown,F0/10,F1/0,三层交换机和路由器相连的网络(续),方法二(路由接口):Switch(config)#interface f0/10Switch(config-if)#no switchportSwitch(config-if)#ip address 192.168.10.1 255.255.255.0Switch(config-if)#no shutdown,F0/10,F1/0,

展开阅读全文
相关资源
猜你喜欢
相关搜索
资源标签

当前位置:首页 > 生活休闲 > 在线阅读


备案号:宁ICP备20000045号-2

经营许可证:宁B2-20210002

宁公网安备 64010402000987号