8实验八多层交换机静态路由实验Word格式文档下载.docx

上传人:b****6 文档编号:22015691 上传时间:2023-02-02 格式:DOCX 页数:11 大小:423.85KB
下载 相关 举报
8实验八多层交换机静态路由实验Word格式文档下载.docx_第1页
第1页 / 共11页
8实验八多层交换机静态路由实验Word格式文档下载.docx_第2页
第2页 / 共11页
8实验八多层交换机静态路由实验Word格式文档下载.docx_第3页
第3页 / 共11页
8实验八多层交换机静态路由实验Word格式文档下载.docx_第4页
第4页 / 共11页
8实验八多层交换机静态路由实验Word格式文档下载.docx_第5页
第5页 / 共11页
点击查看更多>>
下载资源
资源描述

8实验八多层交换机静态路由实验Word格式文档下载.docx

《8实验八多层交换机静态路由实验Word格式文档下载.docx》由会员分享,可在线阅读,更多相关《8实验八多层交换机静态路由实验Word格式文档下载.docx(11页珍藏版)》请在冰豆网上搜索。

8实验八多层交换机静态路由实验Word格式文档下载.docx

(2)交换机A和B通过的24口级联。

(3)配置交换机A和B各VLAN虚拟接口的IP地址分别如下表所示:

VLAN10

VLAN20

VLAN30

10.10.10.1

10.10.20.1

10.10.30.1

VLAN40

VLAN100

VLAN101

10.10.40.1

10.10.100.1

10.10.100.2

(4)主机1-主机4的网络设置为:

 

设备

IP地址

gateway

Mask

主机1

10.10.10.101

255.255.255.0

主机2

10.10.20.101

主机3

10.10.30.101

主机4

10.10.40.101

(6)验证:

①没有静态路由之前:

主机1与主机2,主机3与主机4可以互通。

主机1、主机2与主机3、主机4不通。

②配置静态路由之后:

四台主机之间都可以互通。

③若实验结果和理论相符,则本实验完成。

5、实验步骤

(1)交换机全部恢复出厂设置,配置交换机的VLAN信息

DCRS-5526S#conf

DCRS-5526S(Config)#vlan10

DCRS-5526S(Config-Vlan10)#switchportinterfaceethernet0/0/1-8

SettheportEthernet1/1accessvlan10sccessflly

SettheportEthernet1/2accessvlan10sccessflly

SettheportEthernet1/3accessvlan10sccessflly

SettheportEthernet1/4accessvlan10sccessflly

SettheportEthernet1/5accessvlan10sccessflly

SettheportEthernet1/6accessvlan10sccessflly

SettheportEthernet1/7accessvlan10sccessflly

SettheportEthernet1/8accessvlan10sccessflly

DCRS-5526S(Config-Vlan10)#exit

DCRS-5526S(Config)#vlan20

DCRS-5526S(Config-Vlan20)#switchportinterfaceethernet0/0/9-16

SettheportEthernet1/9accessvlan10sccessflly

SettheportEthernet1/10accessvlan10sccessflly

SettheportEthernet1/11accessvlan10sccessflly

SettheportEthernet1/12accessvlan10sccessflly

SettheportEthernet1/13accessvlan10sccessflly

SettheportEthernet1/14accessvlan10sccessflly

SettheportEthernet1/15accessvlan10sccessflly

SettheportEthernet1/16accessvlan10sccessflly

DCRS-5526S(Config-Vlan20)#exit

DCRS-5526S(Config)#vlan100

DCRS-5526S(Config-Vlan100)#switchportinterfaceethernet0/0/24

SettheportEthernet1/24accessvlan100sccessflly

DCRS-5526S(Config-Vlan100)#exit

DCRS-5526S(Config)#

验证配置:

DCRS-5526S#showvlan

图8-1交换机Avlan划分

DCRS-5526S#

DCRS-5526S(Config)#vlan30

DCRS-5526S(Config-Vlan30)#switchportinterfaceethernet0/0/1-8

SettheportEthernet0/0/1accessvlan30sccessflly

SettheportEthernet0/0/2accessvlan30sccessflly

SettheportEthernet0/0/3accessvlan30sccessflly

SettheportEthernet0/0/4accessvlan30sccessflly

SettheportEthernet0/0/5accessvlan30sccessflly

SettheportEthernet0/0/6accessvlan30sccessflly

SettheportEthernet0/0/7accessvlan30sccessflly

SettheportEthernet0/0/8accessvlan30sccessflly

DCRS-5526S(Config-Vlan30)exit

DCRS-5526S(Config)#vlan40

DCRS-5526S(Config-Vlan40)#switchportinterfaceethernet0/0/9-16

SettheportEthernet0/0/9accessvlan40sccessflly

SettheportEthernet0/0/10accessvlan40sccessflly

SettheportEthernet0/0/11accessvlan40sccessflly

SettheportEthernet0/0/12accessvlan40sccessflly

SettheportEthernet0/0/13accessvlan40sccessflly

SettheportEthernet0/0/14accessvlan40sccessflly

SettheportEthernet0/0/15accessvlan40sccessflly

SettheportEthernet0/0/16accessvlan40sccessflly

DCRS-5526S(Config-Vlan40)#exit

DCRS-5526S(Config)#vlan101

DCRS-5526S(Config-Vlan101)#switchportinterfaceethernet0/0/24

SettheportEthernet0/0/24accessvlan101sccessflly

DCRS-5526S(Config-Vlan101)exit

图8-2交换机Bvlan划分

(2)配置交换机各vlan虚拟接口的IP地址

DCRS-5526S(Config)#intvlan10

DCRS-5526S(Config-If-Vlan10)#ipaddress10.10.10.1255.255.255.0

DCRS-5526S(Config-If-Vlan10)#noshut

DCRS-5526S(Config-If-Vlan10)#exit

DCRS-5526S(Config)#intvlan20

DCRS-5526S(Config-If-Vlan20)#ipaddress10.10.20.1255.255.255.0

DCRS-5526S(Config-If-Vlan20)#noshut

DCRS-5526S(Config-If-Vlan20)#exit

DCRS-5526S(Config)#intvlan100

DCRS-5526S(Config-If-Vlan100)#ipaddress10.10.100.1255.255.255.0

DCRS-5526S(Config-If-Vlan100)#noshut

DCRS-5526S(Config-If-Vla100)#

DCRS-5526S(Config-If-Vla100)#exit

DCRS-5526S(Config)#intvlan30

DCRS-5526S(Config-If-Vlan30)#ipaddress10.10.30.1255.255.255.0

DCRS-5526S(Config-If-Vlan30)#noshut

DCRS-5526S(Config-If-Vlan30)#exit

DCRS-5526S(Config)#interfacevlan40

DCRS-5526S(Config-If-Vlan40)#ipaddress10.10.40.1255.255.255.0

DCRS-5526S(Config-If-Vlan40)#exit

DCRS-5526S(Config)#intvlan101

DCRS-5526S(Config-If-Vlan101)#ipaddress10.10.100.2255.255.255.0

DCRS-5526S(Config-If-Vlan101)#exit

(3)配置各主机的IP地址,注意配置网关

(4)验证主机之间是否连通

主机

端口

结果

原因

A:

1/1

1/9

Vlan100

1/24

Vlan101

B:

0/0/24

不通

主机3

B:

0/0/1

查看路由表,进一步分析上一步的现象原因。

交换机A:

DCRS-5526S#showiproute

图8-3查看交换机A路由信息

交换机B:

图8-4查看交换机B路由信息

DCRS-5526S#

(5)配置静态路由

DCRS-5526S(Config)#iproute10.10.30.0255.255.255.010.10.100.2

DCRS-5526S(Config)#iproute10.10.40.0255.255.255.010.10.100.2

验证配置

图8-5验证交换机A静态路由配置信息

DCRS-5526S(Config)#iproute10.10.10.0255.255.255.010.10.100.1

DCRS-5526S(Config)#iproute10.10.20.0255.255.255.010.10.100.1

图8-5验证交换机B静态路由配置信息

(6)验证主机之间是否连通

6、思考题

1、如果把交换机B上的vlan30改成vlan10,请问两台交换机上的vlan10是同一个么?

2、第四步中,主机1pingvlan101以及主机1ping主机3都不通,其原因各是什么?

7、相关配置命令详解

iproute

命令:

iproute<

ip_address>

<

mask>

<

gateway>

[<

preference>

]

noiproute<

功能:

配置静态路由:

本命令的no操作为删除静态路由。

参数:

和<

分别为目的IP地址和子网掩码,点分十进制格式;

为下一跳的IP地址,点分十进制格式;

为路由优先级,取值范围为1~255,preference的值越小优先级越高。

命令模式:

全局配置模式

showiproute

showiproute[dest<

destination>

][mask<

destMask>

][nextHop<

nextHopvalue>

][protocol{connected|static|rip|ospf|osps_ase|bgp|dvmrp}][vlan-id][preference<

pref>

][count]

显示路由表。

为目标网格地址;

为目标网格的掩码;

为下一跳IP地址;

connected为直连路由;

static为静态路由;

rip为RIP路由;

ospf为OSPF路由;

|osps_ase为OSPF引入的路由;

bgp为BGP路由;

dvmrp为DVMRP路由;

vlan-id>

为Vlan标识符;

为路由优先级,取值范围为0~255;

count为显示IP路由表项数信息。

特权用户配置模式

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

当前位置:首页 > 党团工作 > 入党转正申请

copyright@ 2008-2022 冰豆网网站版权所有

经营许可证编号:鄂ICP备2022015515号-1