您好,欢迎访问三七文档
当前位置:首页 > 商业/管理/HR > 质量控制/管理 > 三层交换机配置案例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
本文标题:三层交换机配置案例pdf
链接地址:https://www.777doc.com/doc-7280121 .html