计算机网络实验三
- 格式:docx
- 大小:562.98 KB
- 文档页数:11
XXXXX大学实验报告
二O 15 年 10 月 14 日
课程名称:《网络及其计算》实验名称:实验三配置VLAN
班级:姓名:
指导教师评定:签名:
一、 实验目的
1. 配置VLAN;
2. 通过VLAN Trunk配置跨交换机的VLAN;
3. 配置VTP;
4. 查看上述配置项目的有关信息。
二、 设备需求
本实验需要以下设备:
1. Cisco Catalyst 2950系列交换机2台,型号不限;
2. 交叉线序网线1条;
3. 1台带有超级终端程序的PC机,以及Console电缆及转接器。
三、 拓扑结构及配置说明
图8-1 网络拓扑网
如图所示用交叉网线把C2950A的FastEthernet0/24端口和C2950B的FastEthernet0/24端口连起来。
四、 实验步骤及要求
Switch>en Switch#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#hostn C2950A
C2950A(config)#^Z
C2950A#
C2950A(config)#int vlan1
C2950A(config-if)#ipaddr 192.1.1.1 255.255.255.0
C2950A(config-if)#no shut 06:19:01: %SYS-5-CONFIG_I: Configured from console by console
C2950A#vlan database
% Warning: It is recommended to configure VLAN from config mode,
as VLAN database mode is being deprecated. Please consult user
documentation for configuring VTP/VLAN in config mode.
C2950A(vlan)#vtp ?
client Set the device to client mode.
domain Set the name of the VTP administrative domain.
password Set the password for the VTP administrative domain.
pruning Set the administrative domain to permit pruning.
server Set the device to server mode.
transparent Set the device to transparent mode.
v2-mode Set the administrative domain to V2 mode.
C2950A(vlan)#vtp server //将C2950A配置成vtp server
Device mode already VTP SERVER.
C2950A(vlan)#vtp domain Test //将VTP域命名为Test
Changing VTP domain name from Boson to Test
C2950A(vlan)#vlan 10 name V10 //定义Vlan 10命名为V10
VLAN 10 modified:
Name: V10
C2950A(vlan)#vlan 11 name V11
VLAN 11 added:
Name: V11
C2950A(vlan)#vlan 12 name V12
VLAN 12 added:
Name: V12
C2950A(vlan)#vlan 13 name V13
VLAN 13 added:
Name: V13
C2950A(vlan)#exit
APPLY completed.
Exiting....
C2950A#
C2950A#sh vtp status
VTP Version : 2
Configuration Revision : 1
Maximum VLANs supported locally : 64
Number of existing VLANs : 13
VTP Operating Mode : Server
VTP Domain Name : Test
VTP Pruning Mode : Disabled
VTP V2 Mode : Disabled
VTP Traps Generation : Disabled
MD5 digest : 0x8D 0x46 0x59 0xAB 0xCC 0xF7 0x2B 0xBF Configuration last modified by 0.0.0.0 at 3-1-93 06:24:05
Local updater ID is 0.0.0.0 (no valid interface found)
C2950A#sh vtp counters
VTP statistics:
Summary advertisements received : 0
Subset advertisements received : 0
Request advertisements received : 0
Summary advertisements transmitted : 0
Subset advertisements transmitted : 0
Request advertisements transmitted : 0
Number of config revision errors : 0
Number of config digest errors : 0
Number of V1 summary errors : 0
VTP pruning statistics:
Trunk Join Transmitted Join Received Summary advts received from
non-pruning-capable device
---------------- ---------------- ---------------- ---------------------------
C2950A#
//将Fa0/1接口加入到Vlan 10中
C2950A(config)#int fa0/1
C2950A(config-if)#switchport mode access
C2950A(config-if)#switchport access vlan 10
C2950A(config-if)#exit
C2950A(config)#int fa0/2
C2950A(config-if)#switchport mode access
C2950A(config-if)#switchport access vlan 11
C2950A(config-if)#exit
C2950A(config)#int fa0/3
C2950A(config-if)#switchport mode access
C2950A(config-if)#switchport access vlan 12
C2950A(config-if)#int fa0/4
C2950A(config-if)#switchport mode access
C2950A(config-if)#switchport access vlan 13
C2950A(config-if)#^Z
C2950A#sh vlan brief
VLAN Name Status Ports
---- -------------------------------- --------- -------------------------------
1 default active Fa0/5, Fa0/6, Fa0/7, Fa0/8
Fa0/9, Fa0/10, Fa0/11, Fa0/12
Fa0/13, Fa0/14, Fa0/15, Fa0/16
Fa0/17, Fa0/18, Fa0/19, Fa0/20
Fa0/21, Fa0/22, Fa0/23, Fa0/24
3 vlan3 active
4 vlan4 active 8 VLAN0008 active
10 V10 active Fa0/1
11 V11 active Fa0/2
12 V12 active Fa0/3
13 V13 active Fa0/4
14 VLAN0014 active
1002 fddi-default act/unsup
1003 token-ring-default act/unsup
1004 fddinet-default act/unsup
1005 trnet-default act/unsup