三层交换机配置案例pdf

整理文档很辛苦,赏杯茶钱您下走!

免费阅读已结束,点击下载阅读编辑剩下 ...

阅读已结束,您可以下载文档离线阅读编辑

资源描述

实验二网络拓扑:交换机1和2配置:SwitchenableSwitch#vlandatabase%Warning:ItisrecommendedtoconfigureVLANfromconfigmode,asVLANdatabasemodeisbeingdeprecated.PleaseconsultuserdocumentationforconfiguringVTP/VLANinconfigmode.Switch(vlan)#vlan10VLAN10added:Name:VLAN0010Switch(vlan)#vlan20VLAN20added:Name:VLAN0020Switch(vlan)#exitAPPLYcompleted.Exiting....Switch#configureterminalEnterconfigurationcommands,oneperline.EndwithCNTL/Z.Switch(config)#interfacefastEthernet0/1Switch(config-if)#switchportmodetrunkSwitch(config-if)#%LINEPROTO-5-UPDOWN:LineprotocolonInterfaceFastEthernet0/1,changedstatetodown%LINEPROTO-5-UPDOWN:LineprotocolonInterfaceFastEthernet0/1,changedstatetoupSwitch(config-if)#switchporttrunkallowedvlanallSwitch(config-if)#exitSwitch(config)#interfacefastEthernet0/2Switch(config-if)#switchportmodeaccessSwitch(config-if)#switchportaccessvlan10Switch(config-if)#exitSwitch(config)#interfacefastEthernet0/3Switch(config-if)#switchportmodeaccessSwitch(config-if)#switchportaccessvlan20Switch(config-if)#exit交换机3配置:SwitchenableSwitch#vlandatabase%Warning:ItisrecommendedtoconfigureVLANfromconfigmode,asVLANdatabasemodeisbeingdeprecated.PleaseconsultuserdocumentationforconfiguringVTP/VLANinconfigmode.Switch(vlan)#vlan30VLAN30added:Name:VLAN0030Switch(vlan)#exitAPPLYcompleted.Exiting....Switch#configureterminalEnterconfigurationcommands,oneperline.EndwithCNTL/Z.Switch(config)#interfacefastEthernet0/1Switch(config-if)#switchportmodetrunkSwitch(config-if)#%LINEPROTO-5-UPDOWN:LineprotocolonInterfaceFastEthernet0/1,changedstatetodown%LINEPROTO-5-UPDOWN:LineprotocolonInterfaceFastEthernet0/1,changedstatetoupSwitch(config-if)#switchporttrunkallowedvlanallSwitch(config-if)#exitSwitch(config)#interfacefastEthernet0/2Switch(config-if)#switchportmodeaccessSwitch(config-if)#switchportaccessvlan30Switch(config-if)#exitSwitch(config)#交换机4配置SwitchenableSwitch#vlandatabase%Warning:ItisrecommendedtoconfigureVLANfromconfigmode,asVLANdatabasemodeisbeingdeprecated.PleaseconsultuserdocumentationforconfiguringVTP/VLANinconfigmode.Switch(vlan)#vlan40VLAN40added:Name:VLAN0040Switch(vlan)#exitAPPLYcompleted.Exiting....Switch#configureterminalEnterconfigurationcommands,oneperline.EndwithCNTL/Z.Switch(config)#interfacefastEthernet0/1Switch(config-if)#switchportmodetrunkSwitch(config-if)#%LINEPROTO-5-UPDOWN:LineprotocolonInterfaceFastEthernet0/1,changedstatetodown%LINEPROTO-5-UPDOWN:LineprotocolonInterfaceFastEthernet0/1,changedstatetoupSwitch(config-if)#switchporttrunkallowedvlanallSwitch(config-if)#exitSwitch(config)#interfacefastEthernet0/2Switch(config-if)#switchportmodeaccessSwitch(config-if)#switchportaccessvlan40Switch(config-if)#exitSwitch(config)#三层交换机1配置:SwitchenableSwitch#vlandatabase%Warning:ItisrecommendedtoconfigureVLANfromconfigmode,asVLANdatabasemodeisbeingdeprecated.PleaseconsultuserdocumentationforconfiguringVTP/VLANinconfigmode.Switch(vlan)#vlan10VLAN10added:Name:VLAN0010Switch(vlan)#vlan20VLAN20added:Name:VLAN0020Switch(vlan)#vlan70VLAN70added:Name:VLAN0070Switch(vlan)#exitAPPLYcompleted.Exiting....Switch#configureterminalEnterconfigurationcommands,oneperline.EndwithCNTL/Z.Switch(config)#interfacefastEthernet0/1Switch(config-if)#switchportmodeaccessSwitch(config-if)#switchportaccessvlan70Switch(config-if)#noshutdownSwitch(config-if)#exitSwitch(config)#interfacefastEthernet0/2Switch(config-if)#switchporttrunkencapsulationdot1qSwitch(config-if)#switchportmodetrunkSwitch(config-if)#switchporttrunkallowedvlanallSwitch(config-if)#exitSwitch(config)#interfacefastEthernet0/3Switch(config-if)#switchporttrunkencapsulationdot1qSwitch(config-if)#switchportmodetrunkSwitch(config-if)#switchporttrunkallowedvlanallSwitch(config-if)#exitSwitch(config)#intvlan10Switch(config-if)#%LINK-5-CHANGED:InterfaceVlan10,changedstatetoup%LINEPROTO-5-UPDOWN:LineprotocolonInterfaceVlan10,changedstatetoupSwitch(config-if)#ipaddress192.168.1.254255.255.255.0Switch(config-if)#exitSwitch(config)#intvlan20Switch(config-if)#%LINK-5-CHANGED:InterfaceVlan20,changedstatetoup%LINEPROTO-5-UPDOWN:LineprotocolonInterfaceVlan20,changedstatetoupSwitch(config-if)#ipaddress192.168.2.254255.255.255.0Switch(config-if)#exitSwitch(config)#intvlan70Switch(config-if)#%LINK-5-CHANGED:InterfaceVlan70,changedstatetoup%LINEPROTO-5-UPDOWN:LineprotocolonInterfaceVlan70,changedstatetoupSwitch(config-if)#ipaddress192.168.7.2255.255.255.0Switch(config-if)#exitSwitch(config)#iproutingSwitch(config)#iproute0.0.0.00.0.0.0192.168.7.1Switch(config)#endSwitch#%SYS-5-CONFIG_I:ConfiguredfromconsolebyconsoleSwitch#writememoryBuildingconfiguration...[OK]Switch#三层交换机2配置:SwitchenableSwitch#vlandatabase%Warning:ItisrecommendedtoconfigureVLANfromconfigmode,asVLANdatabasemodeisbeingdeprecated.PleaseconsultuserdocumentationforconfiguringVTP/VLANinconfigmode.Switch(vlan)#vlan30VLAN30added:Name:VLAN0030Switch(vlan)#vlan40VLAN40added:Name:VLAN0040Switch(vlan)#vlan80VLAN80added:Name:VLAN0080Switch(vlan)#Switch(vlan)#exitAPPLYcompleted.Exiting....Switch#configureterminalEnterconfigurationcommands,oneperline.Endwith

1 / 6
下载文档,编辑使用

©2015-2020 m.777doc.com 三七文档.

备案号:鲁ICP备2024069028号-1 客服联系 QQ:2149211541

×
保存成功