西安交通大学实验报告
课程:网络技术实验
完成时间:2010年5月20日
实验名称:配置交换机
实验内容
使用Boson NetSim软件模拟出交换机的环境,并配置VLAN。
使用Boson NetSim Designer软件设计一个含有一个交换机和两个PC机的网络环境,两个PC机器分别连接到交换机(1912)上,交换机连接到2611型路由器上(使用Ethernet接口),如图所示:
网络规划如下:
网络为192.168.0.0/24。
Router1:192.168.0.1。
PC1:192.168.0.2。
PC2:192.168.0.3。
给交换机命名:
>enable分别在PC1、PC2、Router1上配置IP地址,并确认网络联通。
#conf t
Enter configuration commands, one per line. End with CNTL/Z.
(config)#hostname switch
switch(config)#end
switch#exit
配置VLAN
将PC2划分到VLAN2子网中:
switch#conf t此时在PC1上无法ping通PC2:
Enter configuration commands, one per line. End with CNTL/Z.
switch(config)#vlan 2 name vlan2
switch(config)#interface e0/2
switch(config-if)#vlan-membership static 2
switch(config-if)#exit
switch(config)#exit
switch#show vlan-membership
Port VLAN Membership Type Port VLAN Membership Type
----------------------------- -----------------------------
1 1 Static
2 2 Static
3 1 Static
C:>ping 192.168.0.3
Pinging 192.168.0.3 with 32 bytes of data:
Request timed out.
(完)
没有评论:
发表评论