2023年实验六虚拟局域网VLAN实验报告

合集下载
  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

实验六虚拟局域网VLAN(一)实验报告
一.互换机端口隔离.实验名称
互换机端口隔离。

1.实验目的
理解Port V lan的配置。

2.实验环节
环节1.在未划VLAN前两台PC互相PING可以通。

-lalxi
©
192.168.2.254 -,级终端
文件⑹ 编辑⑻ 查看② 呼叫© 传送① 帮助⑻
环节3.两台PC 互相PI NG 不通。

2011-03-31 03:28:43 @5-LINKUPDOWN:Fa0/l changed state
2011-03-31 03:28:43 @5-LINKUPDOWN:Fa0/l changed state 2011-03-31 03:28:46 65-CONFIG:Configured from SwitchA(config-if)ttswitch access vlan 10 2011-03-31 03:29:07 65-CONFIG:Configured from Swi tchfi(config-if)ttinterface fastethernet0/15
outband outband to down 2011-03-31 03:29:40 Swi tchA(config-if)tt 05-CONFIG:Configured from outband 2011-03-31 2011-03-31 2011-03-31 2011-03-31 03:30:00 03:31:10 03:31:10
03:31:37 @5-LINKUPDOWN:Fa0/l @5-LINKUPDOWN:Fa0/2 @5-LINKUPDOHN:Fa0/l @5-LINKUPDOHN:Fa0/2 changed changed changed changed state state state state up
up to down to down Swi tchfi(config-i f)Wend
2011-03-31 03:32:31 65-CONFIG:Configured from outband Swi tchAHconfigure terminal
Enter configuration commands, one per line. End with CNTL/Z. Switchfi(config)Hinterface fastethernet 0/5 2011-03-31 03:33:53 @5-C0NFIG:Configured Swi tchfi(config-if)ttswitch access vlan 10 2011-03-31 03:34:23 65-CONFIG:Configured SwitchA(config-if)Winterface fastethernet I 2011-03-31 03:34:46 @5-C0NFIG:Configured
SwitchA(config-ifJttswitch access vlan 20 2011-03-31 03:35:18 05-C0NFIG:Configured Swi tchA(config-if)tt
from from 0/9
from from outband outband outband outband 连接的0:17:自动检测TCP/IP
NUM
跨互换机实现VLAN。

理解VLAN如何挂互换机实现。

1.实验目的
环节2.在互换机Sw i ichA 上创建丫320,并将0/ 1 5端口戈U 分至lj Vian 20中。

®©a )active FaO/5
环节3.在互换机Sw itch A 上将与Sw i ichB 相连的端口(假设为0/24端口)定义为t ag v 1 an 模
理解VLAN 如何挂互换机实现。

3.实验环节
环节1.在互换机Swit c hA 上创建Vian 10,并将0 / 5端口划分到V 1 a n 1 0中。

-lalxi
文件⑹编辑@ 查看9 呼叫© 传送①帮助⑻ 口|曲副省|壮阳|旨I
Enter configuration commands, one per line. End with CNFL/Z. SwitchA(config)ttvlan 10
2011-03-31 03:40:46 @5-C0NFIG:Configured from Swi tchfi(config-vlan)Wname sales
2011-03-31 03:40:50 65-CONFIG:Configured from Swi tchA(config-vlan)ttexi t
2011-03-31 03:40:58 65-CONFIG:Configured from SwitchA(config)Hinterface fastethernet 0/5 2011-03-31 03:42:56 @5-C0NFIG:Configured from Switchfi(config-if)ttswitchport access vlan 10 2011-03-31 03:43:20 @5-C0NFIG:Configured from SwitchA(config-if)Hshow vlan id 10 outband outband outband outband outband % Invalid input detected at i'marker.
Switchfi(config-if)ttend
2011-03-31 03:43:52 05-CONFIG:Configured from outband Swi tchfiHshow vlan id 10 VLAN NameStatus Ports 10 sales active Fa0/5
Swi tchfiW_
连接的0:23:自动检测TCP/IP
MJM " I'
-lalxi
10 sales Swi tchAHconfigure terminal
Enter configuration commands, one per line. End with CNTL/Z. SwitchA(config)ttvlan 20 2011-03-31 03:45:06 @5-C0NFIG:Configured Swi tchfl(config-vlan)Hname technical 2011-03-31 03:45:18 @57C0NFIG:Configured Swi tchA(config-vlan)ttexit 2011-03-31 03:45:21 65-CONFIG:Configured SwitchA(config)Hinterface fastethernet 0/9 2011-03-31 03:45:42 @5-C0NFIG:Configured Switchfi(config-if)ttswitchport access vlan : 2011-03-31
03:45:53 05-CONFIGConfigured SwitchA(config-if)Wend 2011-03-31 03:45:56 65-CONFIG:Configured Swi tchAHshow vlan id 20 from from from from 20 from from outband
outband
outband outband outband outband
VLAN Name Status Ports
20 technical
20 technical
active Fa0/9
连接的0:25:自动检测TCP/IP
连接的0:25:自动检测TCP/IP
NUM
式。

2011-03-31 05:49:53 @5-C0NFIG:Configured from outband Switchfi(config-vlan)Hname sales
2011-03-31 05:50:01 05-CONFIG:Configured from outband Swi tchfi(config-vlan)Hexit
2011-03-31 05:50:09 65-CONFIG:Configured from outband Switchfi(config)ttinterface fastethernet 0/5
2011-03-31 05:50:29 @5-C0NFIG:Configured from outband
Switchfi(config-if)Hswitchport access vlan 9
2011-03-31 05:51:14 05-CONFIG:Configured from outband ^Warning : Access VLAN does not exist.
Creating vlan 9 SwitchAtconfig-if)Hshow vlan id 10
% Invalid input detected at i marker.
Switchfi(config-if)Hend
2011-03-31 05:51:38 65-CONFIG:Configured from outband
Switchfittshow vlan id 10
VLAN NameStatus Ports
10 salesactive Fa0/6 ,Fa0/24
Swi tchfitt_连接的0:02:自动检测TCP/IP
环节5 .在互换机Swi t c h B上将与SwitchA相连的端口(假设为0 /24端口)定义为ta g vlan 模式。

-iDlxl 发件(E)编辑® 查看GO 呼叫© 传送9 帮助⑭
⑶谢0|省I 划卸囱|
VLAN NameStatus Ports 10 salesactive Fa0/6 ,Fa0/24
Switchfittconfigure terminal
Enter configuration commands, one per line. End with CNTL/Z. Switchfi(config)Hinterface fastethernet 0/24
2011-03-31 05:52:40 @5-C0NFIG:Configured from outband Switchfi(config-if)Hswitchport mode trunk
2011-03-31 05:52:48 05-CONFIG:Configured from outband
Switchfl(config-if)Hshow interfaces fastethernet 0/24 swi tchport % Invalid input detected at i marker.
Switchfi(config-if)Hend
2011-03-31 05:54:49 @5-CONFIG Configured from outband SwitchAttshow interfaces fastethernet 0/24 switch
2011-03-31 05:55:41 @5-LINKUPD0WN:Fa0/6 changed state to up Interface Switchport Mode Access Native Protected VLAN lists Fa0/24 Enabled Trunk 11 Swi tchfitt 连接的0:06:自动检测TCP/IP。

环节6.验证PCI 与PC 3能互相通信,但PC 2与PC3不能互相通信。

国选定 C:\WINNT\svstem32\cmd.exe Microsoft Windows 2000 CUersion 5.00.2195)
<C> 版权所有 1985-2000 Microsoft Corp.
Pinging 192.168.0.6 with 32 bytes of data : Reply f rom : bytes=32
t ine<10ns T|L-128 Reply f ron : bytes -32 t ime<10ns TTL-128 〔Repl f ron : bytes=32 t ime<10ns TTL=128 Reply from :
bytes=32
time<10ns
TTL=128
: Packets : Sent = 4, Received = 4, Lost = 0 <0z loss>. Approximate round trip times in nilli-seconds : Minimum ■ 0ms, Maximum ■ 0ms, Average ■ 0msC :XDocunents and Settings\fldninistrator>
三.实验总结
本次实验分为两个实验。

互换机端口隔离以及跨互换机实现VLANo
通过实验中实际的操作,形象的理解了 Por t V 1 an 的配置和理解VLAN 如何挂互换 机实现。

实验一通过划分Port Vian 实现互换端口隔离,实验二在同一 V 1 an 里的计算系 统能跨互换机进行互相通信,而在不同V]an 里的计算机系统不能进行互相通信,需要注意 的是,两台互换机之间相连的端口应当设立为ta g v lan 模式。

, 192.168.2.254 -超级终端
Disabled All。

相关文档
最新文档