华为三层交换机之间配置VLAN间路由

整理文档很辛苦,赏杯茶钱您下走!

免费阅读已结束,点击下载阅读编辑剩下 ...

阅读已结束,您可以下载文档离线阅读编辑

资源描述

在华为三层交换机上进行VLAN间路由的配置,主要就是创建VLAN,端口划分,三层VLAN接口地址配置,静态路由或是RIP协议配置。静态路由配置过程:PCA:ipaddress:10.1.1.2/24gw:10.1.1.1/24(VLAN2路由接口IP地址)PCB:ipaddress:10.1.2.2/24gw:10.1.2.1/24(VLAN3路由接口IP地址)PCC:ipaddress:10.1.3.2/24gw:10.1.3.1/24(VLAN2路由接口IP地址)S3526A和S352B之间的互联网段为10.1.4.0、24分配S3526AVLAN4路由接口IP地址为10.1.4.1/24,S3526BVLAN4路由接口IP地址为10.1.4.2/24三层交换机配置创建VLAN,把PC划到特定VLAN中://创建VLAN[S3526A]vlan2//把端口划到VLAN中[S3526A-VLAN2]portethernet0/9toethernet0/12[S3526A-VLAN2]vlan3[S3526A-VLAN2]portethernet0/13toethernet0/16[S3526A-VLAN2]vlan4//交换机B的配置:[S3526B]vlan2[S3526B-VLAN2]portethernet0/9toethernet0/12[S3526B-VLAN2]vlan4配置各台PC的网关地址和交换机之间的网段地址://进入VLAN接口配置模式:[S3526A]interfaceVlan-interface2//配置三层VLAN路由接口地址[S3526A-Vlan-interface2]ipaddress10.1.1.1255.255.255.0[S3526A-Vlan-interface2]interfaceVlan-interface3[S3526A-Vlan-interface3]ipaddress10.1.2.1255.255.255.0[S3526A-Vlan-interface3]interfaceVlan-interface4[S3526A-Vlan-interface4]ipaddress10.1.4.1255.255.255.0[S3526B]interfaceVlan-interface2[S3526B-Vlan-interface2]ipaddress10.1.3.1255.255.255.0[S3526B-Vlan-interface2]interfaceVlan-interface4[S3526B-Vlan-interface4]ipaddress10.1.4.2255.255.255.0在二台三层交换机上配置非直连网段静态路由:[S3526A]iproute-static10.1.3.0255.255.255.010.1.4.2[S3526B]iproute-static10.1.1.0255.255.255.010.1.4.1[S3526B]iproute-static10.1.2.0255.255.255.010.1.4.1查看路由表,查看网络互通情况:[S3526B]displayiprouting-tableRoutingTable:publicnetDestination/MaskProtoPreCostNexthopInterface10.1.1.0/24STATIC60010.1.4.1Vlan-interface410.1.2.0/24STATIC60010.1.4.1Vlan-interface410.1.3.0/24DIRECT0010.1.3.1Vlan-interface210.1.3.1/32DIRECT00127.0.0.1InLoopBack010.1.4.0/24DIRECT0010.1.4.2Vlan-interface40.1.4.2/32DIRECT00127.0.0.1InLoopBack0127.0.0.0/8DIRECT00127.0.0.1InLoopBack0127.0.0.1/32DIRECT00127.0.0.1InLoopBack0RlP协议在三层交换机上的配置1.继续上面的,删除前面配置的静态路由。[S3526A]undoiproute-static10.1.3.0255.255.255.0[S3526B]undoiproute-static10.1.1.0255.255.255.0[S3526B]undoiproute-static10.1.2.0255.255.255.02.配置RIP协议://交换机B上启用RIP协议[S3526A]rip[S3526A-rip]network10.1.1.0[S3526A-rip]network10.1.2.0[S3526A-rip]network10.1.4.0//交换机B上启用RIP协议[S3526B]rip[S3526B-rip]network10.1.3.0[S3526B-rip]network10.1.4.0配置完成即可实现网络互通查看路由表,查看网络互通情况:[S3526B]displayiprouting-tableRoutingTable:publicnetDestination/MaskProtoPreCostNexthopInterface10.1.1.0/24STATIC60010.1.4.1Vlan-interface410.1.2.0/24STATIC60010.1.4.1Vlan-interface410.1.3.0/24DIRECT0010.1.3.1Vlan-interface210.1.3.1/32DIRECT00127.0.0.1InLoopBack010.1.4.0/24DIRECT0010.1.4.2Vlan-interface40.1.4.2/32DIRECT00127.0.0.1InLoopBack0127.0.0.0/8DIRECT00127.0.0.1InLoopBack0127.0.0.1/32DIRECT00127.0.0.1InLoopBack0查看RlP配置信息如下:[S3526B-rip]displayripRIPisturnedonpublicnetVPN-InstanceCheckzeroisonDefaultcost:1SummaryisonPreference:100NopeerrouterNetwork:10.0.0.0

1 / 4
下载文档,编辑使用

©2015-2020 m.777doc.com 三七文档.

备案号:鲁ICP备2024069028号-1 客服联系 QQ:2149211541

×
保存成功