多层交换机静态路由实验
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
多层交换机静态路由实验
一、实验目的
1、理解三层交换机进行路由的原理和具体实现拓扑;
2、理解三层交换机静态路由的配置方法;
二、应用环境
当两台三层交换机级联时,为了保证每台交换机上所连接的网段可以和另一台交换机上连接的网段互相通信,最简单的方法就是设置静态路由。
三、实验设备
1、DCRS-7604(或6804)交换机1台
2、DCRS-5526S交换机1台
3、PC机2-4台
4、Console线1-2根
5、直通网线2-4根
四、实验拓扑
五、实验要求
1、在交换机A和交换机B上分别划分基于端口的VLAN:
交换机VLAN 端口成员
交换机A 10 1~8
20 9~16
100 24
交换机B 30 1~8
40 9~16
101 24
2、交换机A和B通过的24口级联。
3、配置交换机A和B各VLAN虚拟接口的IP地址分别如下表所示:
4、PC1-PC4的网络设置为:
5、验证:
●没有静态路由之前:
PC1与PC2,PC3与PC4可以互通。
PC1、PC2与PC3、PC4不通。
●配置静态路由之后:
四台PC之间都可以互通。
●若实验结果和理论相符,则本实验完成。
六、实验步骤
第一步:交换机全部恢复出厂设置,配置交换机的VLAN信息
交换机A:
DCRS-7604#conf
DCRS-7604(Config)#vlan 10
DCRS-7604(Config-Vlan10)#switchport interface ethernet 1/1-8
Set the port Ethernet1/1 access vlan 10 successfully
Set the port Ethernet1/2 access vlan 10 successfully
Set the port Ethernet1/3 access vlan 10 successfully
Set the port Ethernet1/4 access vlan 10 successfully
Set the port Ethernet1/5 access vlan 10 successfully
Set the port Ethernet1/6 access vlan 10 successfully
Set the port Ethernet1/7 access vlan 10 successfully
Set the port Ethernet1/8 access vlan 10 successfully
DCRS-7604(Config-Vlan10)#exit
DCRS-7604(Config)#vlan 20
DCRS-7604(Config-Vlan20)#switchport interface ethernet 1/9-16
Set the port Ethernet1/9 access vlan 20 successfully
Set the port Ethernet1/10 access vlan 20 successfully
Set the port Ethernet1/11 access vlan 20 successfully
Set the port Ethernet1/12 access vlan 20 successfully
Set the port Ethernet1/13 access vlan 20 successfully
Set the port Ethernet1/14 access vlan 20 successfully
Set the port Ethernet1/15 access vlan 20 successfully
Set the port Ethernet1/16 access vlan 20 successfully
DCRS-7604(Config-Vlan20)#exit
DCRS-7604(Config)#vlan 100
DCRS-7604(Config-Vlan100)#switchport interface ethernet 1/24
Set the port Ethernet1/24 access vlan 100 successfully
DCRS-7604(Config-Vlan100)#exit
DCRS-7604(Config)#
验证配置:
DCRS-7604#show vlan
VLAN Name Type Media Ports
---------------------------------------------------------------------------
1 default Static ENET Ethernet1/17 Ethernet1/18
Ethernet1/19 Ethernet1/20
Ethernet1/21 Ethernet1/22
Ethernet1/23 Ethernet1/25
Ethernet1/26 Ethernet1/27
Ethernet1/28
10 VLAN0010 Static ENET Ethernet1/1 Ethernet1/2
Ethernet1/3 Ethernet1/4
Ethernet1/5 Ethernet1/6
Ethernet1/7 Ethernet1/8
20 VLAN0020 Static ENET Ethernet1/9 Ethernet1/10
Ethernet1/11 Ethernet1/12
Ethernet1/13 Ethernet1/14
Ethernet1/15 Ethernet1/16
100 VLAN0100 Static ENET Ethernet1/24
DCRS-7604#
交换机B:
DCRS-5526S(Config)#vlan 30
DCRS-5526S(Config-Vlan30)#switchport interface ethernet 0/0/1-8 Set the port Ethernet0/0/1 access vlan 30 successfully Set the port Ethernet0/0/2 access vlan 30 successfully Set the port Ethernet0/0/3 access vlan 30 successfully Set the port Ethernet0/0/4 access vlan 30 successfully Set the port Ethernet0/0/5 access vlan 30 successfully Set the port Ethernet0/0/6 access vlan 30 successfully Set the port Ethernet0/0/7 access vlan 30 successfully Set the port Ethernet0/0/8 access vlan 30 successfully
DCRS-5526S(Config-Vlan30)#exit
DCRS-5526S(Config)#vlan 40
DCRS-5526S(Config-Vlan40)#switchport interface ethernet 0/0/9-16
Set the port Ethernet0/0/9 access vlan 40 successfully
Set the port Ethernet0/0/10 access vlan 40 successfully
Set the port Ethernet0/0/11 access vlan 40 successfully
Set the port Ethernet0/0/12 access vlan 40 successfully
Set the port Ethernet0/0/13 access vlan 40 successfully
Set the port Ethernet0/0/14 access vlan 40 successfully
Set the port Ethernet0/0/15 access vlan 40 successfully
Set the port Ethernet0/0/16 access vlan 40 successfully
DCRS-5526S(Config-Vlan40)#exit
DCRS-5526S(Config)#vlan 101
DCRS-5526S(Config-Vlan101)#switchport interface ethernet 0/0/24