欢迎来到天天文库
浏览记录
ID:42096113
大小:134.70 KB
页数:3页
时间:2019-09-08
《《cisco路由器讲义》实验6配置vlan间路由》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库。
1、实验六配置VLAN间路由[实验目标]•深入了解交换机VLAN的配置•熟悉VLANTrunk的配置•熟悉不同VLAN之间路由的配置[实验内容]•配置VLANTrunk•配置VTP•配置VLANI'可路由[实验步骤]按照下面的指示,连接网络设备192.168.120.1192.168.130」F0/0192.168.100.1FO/7FO/7TrunkVLAN10VLAN10F0/8F0/8333SVLAN20VLAN20192.16&110.1192.168.130.2192.168.120.2F0/0Swit
2、chASwitchB2192.168.100.2192.16&110.2192.168.110.3192.168.100.3Stepl:主机的准备并验证连通性a.连接SwitchA端口0/7的主机:IPaddress192.168.100.2Subnetmask255.255.255.0Defaultgateway192.168.100.1b.连接SwitchA端口0/8的主机IPaddress192.168.110.2Subnetmask255.255.255.0Defaultgateway192.168.
3、110.1c.连接SwitchB端口0/7的主机:IPaddress192.168.100.3Subnetmask255.255.255.0Defaultgateway192.168.100.1a.连接SwitchB端口0/8的主机IPaddress192.168.110.3Subnetmask255.255.255.0Defaultgateway192.168.110.1b.用ping命令测试连通性Step2:配置并命名VLANSwitch_A#vlandatabaseSwitch_A(vian)#vlan
4、10nameSalesSwitch_A(vlan)#vlan20nameSupportSwitch_A(vlan)#exitStep3:分配成员端口给各个VLAN分配两个交换机上的端口0/7给VLAN10,0/8给VLAN10Switch_A#configureterminalSwitch_A(config)#interfacefastethernet0/7Switch_A(config-if)#switchportmodeaccessSwitch_A(config-if)#switchportaccessv
5、lan10Switch_A(config-if)#interfacefastethernet0/8Switch_A(config-if)#switchportmodeaccessSwitch_A(config-if)#switchportaccessvlan20Switch_B#configureterminalSwitch_B(config)interfacefastethernet0/7Switch_B(config-if)#switchportmodeaccessSwitch_B(config-if)#
6、switchportaccessvlan10Switch_B(config-if)#interfacefastethernet0/8Switch_B(config-if)#switchportmodeaccessSwitch_B(config-if)#switchportaccessvlan20Switch_B(config-if)#end分配SwitchA上的端口0/2给VLAN10,SwitchB的端口0/2给VLAN20Switch_A#configureterminalSwitch_A(config)
7、interfacefastethernet0/2Switch_A(config-if)#switchportmodeaccessSwitch_A(config-if)#switchportaccessvlan10Switch_B#configureterminalSwitch_B(config-if)#interfacefastethernet0/2Switch_B(config-if)#switchportmodeaccessSwitch_B(config-if)#switchportaccessvlan2
8、0Switch_B(config-if)#endStep4:验证配置结果在特权模式卜输入showvlanStep5:配置Trunk在交换机A,B的FastEthernet0/1配置如下命令:Switch_A(config)#interfacefastethernetO/1Switch_A(config-if)#switchportmodetrunkSwitch_A(config-if)#endSwi
此文档下载收益归作者所有