CISCO_CatOS_基础命令集

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

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

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

资源描述

网络专家·软件专家·大学生IT就业专家-1-SPOTO原创实验集CISCOCatOS基础命令集文章出处:命令集,对比现在普遍使用的CLI命令行,配置起来要相对复杂;本章使用的命令:switch(enable)setsystemname{name}设置主机名switch(enable)setpassword{enter}设置进入用户模式的密码。switch(enable)setenalbepass{enter}设置进入特权模式的密码。switch(enable)setinterfacesc0[vlanid]{ipaddress}{netmask}设置管理VLAN的IP。switch(enable)setiproutedefault{ipaddress}设置管理VLAN的默认网关。switch(enable)settrunk{port}{on|off}设置端口类型(trunk(on)或access(off))。switch(enable)setportname{port}[description]设置交换机的端口描述。switch(enable)setvtpdomain{name}设置VTP管理域名。switch(enable)setvtpmode{sever|client|transparent}设置VTP模式。switch(enable)setvlan{vlanid}[name]{name}建立VLAN及命名。switch(enable)setvlan{vlanid}{port}将端口分配到VLAN中。验证命令:switch(enable)shinterface查看管理VLAN的VLAN号及IP地址。switch(enable)shiproute查看管理VLAN的IP地址及默认网关。福州SPOTO(思博)IT人才培训机构Web::328065电话:8711574187115742以伙伴关系帮助客户成功,帮助员工成功,帮助合作伙伴成功。——我们共创未来!-2-SPOTO原创实验集福州SPOTO(思博)IT人才培训机构Web::328065电话:8711574187115742以伙伴关系帮助客户成功,帮助员工成功,帮助合作伙伴成功。——我们共创未来!switch(enable)shport查看所有端口状态信息及性能参数。switch(enable)shtrunk查看Trunk端口详细信息。switch(enable)shvlan查看交换机上所有VLAN信息。switch(enable)shvtpdomain查看VTP信息。switch(enable)shconfigall查看所有配置信息。2948G配置实例:ConsoleenEnterpassword:Console(enable)setsystemname2948GSystemnameset.2948G(enable)setpasswordEnteroldpassword:Enternewpassword:Retypenewpassword:Passwordchanged.2948G(enable)setenablepassEnteroldpassword:Enternewpassword:Retypenewpassword:Passwordchanged.2948G(enable)setinterfacesc01192.168.1.1255.255.255.0Interfacesc0vlanset,IPaddressandnetmaskset.2948G(enable)setiproutedefault192.168.1.254Routeadded.2948G(enable)shinterfacesl0:flags=50DOWN,POINTOPOINT,RUNNINGslip0.0.0.0dest0.0.0.0sc0:flags=63UP,BROADCAST,RUNNINGvlan1inet192.168.1.1netmask255.255.255.0broadcast192.168.1.255me1:flags=62DOWN,BROADCAST,RUNNINGinet0.0.0.0netmask0.0.0.0broadcast0.0.0.02948G(enable)shiprouteFragmentationRedirectUnreachable--------------------------------enabledenabledenabledDestinationGatewayFlagsUseInterface-3-SPOTO原创实验集福州SPOTO(思博)IT人才培训机构Web::328065电话:8711574187115742以伙伴关系帮助客户成功,帮助员工成功,帮助合作伙伴成功。——我们共创未来!-----------------------------------------------------------------------default192.168.1.254UG0sc0192.168.1.0192.168.1.1U0sc02948G(enable)settrunk2/1onPort(s)2/1trunkmodesettoon.2006Apr1116:16:29%DTP-5-TRUNKPORTON:Port2/1hasbecomedot1qtrunkp2006Apr1116:16:29%PAGP-5-PORTFROMSTP:Port2/1leftbridgeport2/12948G(enable)setportname2/1thisistrunkportPort2/1nameset.2948G(enable)shportPortNameStatusVlanLevelDuplexSpeedType------------------------------------------------------------------------2/1thisistrunkportconnectedtrunknormala-fulla-10010/100BaseTX2/2notconnect1normalautoauto10/100BaseTX2/3notconnect1normalautoauto10/100BaseTX2/4notconnect1normalautoauto10/100BaseTX2/5notconnect1normalautoauto10/100BaseTX2/6notconnect1normalautoauto10/100BaseTX2/7notconnect1normalautoauto10/100BaseTX2/8notconnect1normalautoauto10/100BaseTX2/9notconnect1normalautoauto10/100BaseTX2/10notconnect1normalautoauto10/100BaseTX2948G(enable)setvtpmodeserverVTPdomainmodified2948G(enable)setvtpdomainspotoVTPdomainspotomodified2948G(enable)shvtpdomainDomainNameDomainIndexVTPVersionLocalModePassword----------------------------------------------------------------------------spoto12server-Vlan-countMax-vlan-storageConfigRevisionNotifications------------------------------------------------------510230disabledLastUpdaterV2ModePruningPruneEligibleonVlans--------------------------------------------------------0.0.0.0disableddisabled2-10002948G(enable)shtrunk-4-SPOTO原创实验集福州SPOTO(思博)IT人才培训机构Web::328065电话:8711574187115742以伙伴关系帮助客户成功,帮助员工成功,帮助合作伙伴成功。——我们共创未来!PortModeEncapsulationStatusNativevlan-------------------------------------------------------2/1ondot1qtrunking1PortVlansallowedontrunk-----------------------------------------------------------------------------2/11-1005PortVlansallowedandactiveinmanagementdomain-----------------------------------------------------------------------------2/11PortVlansinspanningtreeforwardingstateandnotpruned-----------------------------------------------------------------------------2/112948G(enable)setvlan10nameV10Vlan10configurationsuccessful2948G(enable)setvlan102/10-20//将端口2/10到2/20VLAN10modified.共11个端口分配到VLAN10中。VLAN1modified.VLANMod/Ports---------------------------102/1,2/10-202948G(enable)shvlanVLANNameStatusIfIndexMod/Ports,Vlans----------------------------------------------------------------------------1defaultactive692/2-9,2/21-5010V10active742/10-201002fddi-defaultactive701003token-ring-defaultactive731004fddinet-defaultactive711005trnet-defaultactive722948G(enable)shconfig.............................-5-SPOTO原创实验集福州SPOTO(思博)IT人才培训机构Web::328065电话:8711574187115742以伙伴关系帮助客户成功,帮助员工成功,帮助合作伙伴成功。——我们共创未来!begin!#version4.5(3)!setpassword$1$AC8I$VIQYzJ6IyPgeoepl5CAat/setenablepass$1$KhTd$XdEF1AYki2WTwSgu/CUnj1setpromptConsolesetlength24defaultsetlogout20setbannermotd^C^C!#systemsetsystembaud96

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

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

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

×
保存成功