《二层接入交换机与三层汇聚交换机的连通设计(6页).doc》由会员分享,可在线阅读,更多相关《二层接入交换机与三层汇聚交换机的连通设计(6页).doc(6页珍藏版)》请在得力文库 - 分享文档赚钱的网站上搜索。
1、-实验十二层接入交换机与三层汇聚交换机连通设计一、 实训目的:1 扩展对交换机VLAN划分的认识,进一步理解交换机之间VLAN的信息的传递;2 熟悉企业网络的真实应有环境,增加解决综合问题的能力。二、 应用环境:二层交换机划分的VLAN之间无法通信,使用三层交换机在连接跨交换机相同VLAN数据时呈透明状态,在需要不同VLAN间传信息时进行VLAN间的转发。三、 实训设备1 DCRS三层交换机1台;2 DCRS二层交换机2台;3 PC机4台;4 交叉网线2根。四、 实训拓扑TrunkTrunkVlan20Vlan10Vlan20Vlan10 五、 实训要求在接入交换机A和B上分别划分两个基于端口
2、的VLAN:VLAN10,VLAN20。VLAN端口成员101820916Trunk口24在汇聚交换机C上也划分两个基于端口的VLAN:VLAN10,VLAN20。把端口1和端口2都设置成Trunk口。VLANIPMask10192168101255.255.255.020192168201255.255.255.0Trunk口0/0/1和0/0/2交换机的24口连接在交换机C的1口;交换机B的24口连接在交换机C的2口上。PC1-PC4的网络配置为:设备IP地址GatewayMaskPC119216810111921681012552552550PC219216820221921682012
3、552552550PC319216810331921681012552552550PC419216820441921682012552552550六、 实训步骤l 第一步:在交换机中创建VLAN10的VLAN20,并添加端口。l 交换机A:switch(Config)#hostname AA(Config)#vlan 10A(Config-vlan10)#A(Config-vlan10)#switchport interface Ethernet 0/0/1-8A(Config-vlan10)#exitA(Config)#vlan 20A(Config-vlan20)#switchport i
4、nterface Ethernet 0/0/9-16A(Config-vlan20)#exitA(Config)#验证配置:A#show vlanl 交换机B:配置与交换机一样。Switch(config)#hostname BB(Config)#vlan 10B(Config-vlan10)#switchport interface Ethernet 0/0/1-8B(Config-vlan10)#exitB(Config)#vlan 20B(Config-vlan20)#switchport interface Ethernet 0/0/9-16B(Config-vlan20)#exitB
5、(Config)# 验证配置:B#show vlanl 交换机C:Switch(config)#hostname CC(config)#vlan 10C(config-vlan10)#exitC(config)#vlan 20C(config-vlan20)#exit第二步:设置交换机的Trunk口l 交换机A:A(Config)#interface Ethernet 0/0/24A(config-ethernet0/0/24)#switchport mode trunkA(config-ethernet0/0/24)#switchport trunk allowed vlan allA(co
6、nfig-ethernet0/0/24)#exitA(Config)#验证配置:A(Config)#show vlanl 交换机B:B(Config)#interface Ethernet 0/0/24B(config-ethernet0/0/24)#switchport mode trunkB(config-ethernet0/0/24)#switchport trunk allowed vlan allB(config-ethernet0/0/24)#exitB(Config)#验证配置:B(Config)#show vlanl 交换机C:C(config)#interface Ether
7、net 0/0/1-2C(config-port-range)#switchport mode trunkC(config-port-range)#switchport trunk allowed vlan allC(config-port-range)#exitC(config)#验证配置:C(config)#show vlanC(config)#show vlanl 第三步:交换机C添加VLAN接口地址。C(config)#interface vlan 10C(config-if-vlan10)#ip address 192.168.10.1 255.255.255.0C(config-i
8、f-vlan10)#no shutdownC(config-if-vlan10)#exitC(config)#interface vlan 20C(config-if-vlan20)#ip address 192.168.20.1 255.255.255.0C(config-if-vlan20)#no shutdownC(config-if-vlan20)#exit验证配置:C(config)#show ip route七、 验证:1 PC不配置网关:PC1与PC3分别接在不同交换机VLAN10的成员端口1-8上,两台PC机可以PING通;PC2与PC4分别接在不同交换机VLAN20的成员端口9-16上,两台PC互相可以PING通;PC1、PC3和PC2、PC4接在不同VLAN的成员端口上则互相PING不通。2 给PC配置网关:PC1、PC3和PC2、PC4接在不同VLAN的成员端口上也可以互相PING通。-第 6 页-