VLAN间相互通信

上传人:jiups****uk12 文档编号:45507317 上传时间:2018-06-17 格式:PPT 页数:28 大小:171.50KB
返回 下载 相关 举报
VLAN间相互通信_第1页
第1页 / 共28页
VLAN间相互通信_第2页
第2页 / 共28页
VLAN间相互通信_第3页
第3页 / 共28页
VLAN间相互通信_第4页
第4页 / 共28页
VLAN间相互通信_第5页
第5页 / 共28页
点击查看更多>>
资源描述

《VLAN间相互通信》由会员分享,可在线阅读,更多相关《VLAN间相互通信(28页珍藏版)》请在金锄头文库上搜索。

1、课程引导隔离的广播域-不同的网络VLAN10VLAN20172.16.20.4VLAN30项目9 不同VLAN间的通信任务1: 利用多臂路由实现不同VLAN间的通信任务2: 利用单臂路由实现不同VLAN间的通信任务3: 利用三层交换机实现不同VLAN间的通信任务1: 利用多臂路由实现不同VLAN间的通信VLAN10VLAN30VLAN20多条链路连接多个VLAN使用路由器进行VLAN间由VLAN间通信的方法VLAN10VLAN20172.20.0.0VLAN30172.10.0.0172.30.0.0VLAN间的通信必须借助路由来实现:可以通过将各交换机连 接到路由器不同接口, 但这种方法不现

2、实。任务1: 多臂路由实现不同VLAN间的通信PC1PC2PC3f0/2f0/5f0/6f0/8f0/15f0/10f0f1f2VLAN10VLAN20VLAN30参考网络拓扑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 中S2126

3、G(config)# interface fastethernet 0/5注:进入fastethernet 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的接口配置模式S2126

4、G(config-if)# switch access vlan 20注:将fastethernet 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(con

5、fig)# interface fastethernet 0/8注:进入fastethernet 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接口分配I

6、P 地址 B(config)#interface fastethernet 0 注:进入路由器f 0 的接口配置模式 B(config-if)#ip address 172.16.10.1 255.255.255.0 注:设置路由器f0 的IP 地址为172.16.10.1, 对应的子网掩码为255.255.255.02为路由器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 地址为1

7、72.16.20.1, 对应的子网掩码为255.255.255.0(二)路由器的配置3为路由器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间的通信VLAN10VLAN30VLAN20In

8、terface FA 0/1 F 0/1.1 F 0/1.2 F 0/1.3一条链路连接多个VLAN单臂路由实现VLAN间路由单臂路由实现VLAN间路由配置案例192.168.1.0/24 VLAN10192.168.2.0/24 VLAN20Fa0/1.1Fa0/1.2Fa0/1Fa0/2Fa0/1Fa0/201、为子接口f0/1.1分配IP并启用Red-Giant(config)#interface fastethernet 0/1.1Red-Giant(config-subif)#encapsulation dot1q 10 Red-Giant(config-subif)#ip addr

9、ess 192.168.1.1 255.255.255.0Red-Giant(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加入VLAN1

10、0中Switch(config)#vlan 10Switch(config)#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)#i

11、nterface fastethernet 0/20Switch(config-if)#switchport mode trunk交换机配置任务3: 利用三层交换机实现不同VLAN间的通信VLAN20 Network 172.16.20.4VLAN10 Network 172.16.10.3三层交换实现VLAN间路由 三层交换机的每一个接口连接一个独立的三层交换机的每一个接口连接一个独立的VLANVLAN 开启每个接口的路由功能,并配置开启每个接口的路由功能,并配置IPIP三层交换的路由功能1、采用SVI方式(switch virtual interface)Switch(config)#in

12、terface vlan 10Switch(config-if)#ip address 192.168.1.1 255.255.255.0Switch(config-if)#no shutdown三层交换实现VLAN间路由案例(SVI方式) 分别创建每个分别创建每个VLANVLAN的的SVISVI接口,并配置接口,并配置IPIP地址地址 三层交换机和二层交换机通过三层交换机和二层交换机通过trunktrunk链路相连链路相连192.168.1.0/24 VLAN10192.168.2.0/24 VLAN20192.168.3.0/24 VLAN30S3760S2126G-1S2126G-2 F

13、0/2F0/1F0/3F0/20F0/20F0/10F0/10192.168.1.0/24 VLAN10192.168.2.0/24 VLAN20192.168.3.0/24 VLAN30192.168.4.0/24 VLAN40S3760-1(config)#ivlan 10S3760-1(config)#interface vlan 10S3760-1(config-if-VLAN 10)#ip address 192.168.1.1 255.255.255.0S3760-1(config-if-VLAN 10)#no shutdownS3760-1(config)#ivlan 20S37

14、60-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 shutdown192.168.1.0/24 VLAN10192.168.2.0/24 VLAN20192.168.3.0/24 VLAN30192.168.4.0/24 VLAN40S3760-1(config)#ivlan 30S3760-1(config)#interface vlan 30S3760-1(config-if-VLAN 30)#i

15、p address 192.168.3.1 255.255.255.0S3760-1(config-if-VLAN 30)#no shutdownS3760-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 shutdown192.168.1.0/24 VLAN10192.168.2.0/24 VLAN20192.168.3.0/24 VLAN30192.16

16、8.4.0/24 VLAN40S3760-1(config)#interface fastEthernet 0/10S3760-1(config-if-FastEthernet 0/10)#switchport mode trunkS3760-1(config)#interface fastEthernet 0/20S3760-1(config-if-FastEthernet 0/20)#switchport mode trunkF0/10F0/20在两个二层交换机中划分VLAN,并通过三层交换机实现不同VLAN间的通信。注意:工作的程序要严谨且负有逻辑性。建议:最好小组成员充分讨论,制定出工作计划,并分工明确,从而预防实际操作过程中的混乱。项目任务192.168.1.0/24 VLAN10192.168.2.0/24 VLAN20192.168.3.0/24 VLAN30192.168.1.0/24 VLAN10利用三层交换实现VLAN间通信参考拓扑结构2、三层交换机默认开启

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 行业资料 > 其它行业文档

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号