您好,欢迎访问三七文档
当前位置:首页 > 行业资料 > 冶金工业 > cisco交换机配置命令
switch£»³ơʼ£¨ĂÜÂëΪ¿Ơ£©switchen£»½øÈë̀ØȨģʽ£¨ĂÜÂëΪ¿Ơ£©switch#conft£»½øÈëÅäÖĂswitch(config)#hostnamecisco-2960£»ÅäÖĂ½»»»»úĂû³ÆΪcisco-2960cisco-2960(config)#enablesecretcisco£»ÉèÖĂ·ĂÎÊĂÜÂëΪciscocisco-2960(config)#enablepasswordcisco123£»ÉèÖẰØȨĂÜÂëΪcisco123cisco-2960(config)#exit£»Í˳öÅäÖĂģʽcisco-2960#wr£»±£´æcisco-2960#conftcisco-2960(config)#interfacevlan1;½øÈëvlan1cisco-2960(config-if)#ipaddress10.10.10.1255.0.0.0;ÅäÖĂip10.10.10.1×ÓÑÚÂë255.0.0.0cisco-2960(config-if)#exitcisco-2960(config)#ipdefault-gateway10.10.0.1;ÅäÖĂÍø¹Ø10.10.0.1cisco-2960(config)#exitcisco-2960#wrcisco-2960#conftcisco-2960(config)#lineconsole0;½øÈë¿ØÖÆ̀¨¿Úcisco-2960(config-line)#passwordcisco;ÉèÖõǽĂÜÂëΪciscocisco-2960(config-line)#login;̉ªÇóµÇ¼¿ÚÁîÑéÖ¤cisco-2960(config-line)#linevty04;ÉèÖĂtelnetcisco-2960(config-line)#passwordcisco;ÉèÖĂtelnetµÇ¼ĂÜÂëcisco-2960(config-line)#login;̉ªÇótelnetµÇ¼¿ÚÁîÑéÖ¤cisco-2960(config-line)#exitcisco-2960(config)#exitcisco-2960#wrcisco-2960#conftcisco-2960(config)#vlan2;½øÈëvlan2ÅäÖĂcisco-2960(config-vlan)#namenetwork;ÅäÖĂvlan2Ọ́ĂûΪnetworkcisco-2960(config-vlan)#exitcisco-2960(config)#exitcisco-2960#wrcisco-2960#conftcisco-2960(config)#interfacefa0/24;½øÈë¶Ë¿Úfa0/24cisco-2960(config-if)#switchportmodeaccess;ÉèÖĂ¶Ë¿ÚΪ·ĂÎÊģʽcisco-2960(config-if)#switchportaccessvlan2;°Ñ¶Ë¿Ú¼ÓÈëµ½vlan2cisco-2960(config-if)#exitcisco-2960(config)#exitcisco-2960#wrcisco-2960#conftcisco-2960(config)#interfacegi0/1;½øÈë¶Ë¿Úgi0/1cisco-2960(config-if)#switchportmodetrunk;ÉèÖĂ¶Ë¿ÚģʽΪtrunkcisco-2960(config-if)#switchporttrunkencapsulationdot1q;ÓĐµÄ½»»»»ú´Ë²½²»Đè̉ªÅäÖĂ,̉ªÖªµÀ´ËĐĐĂüÁîµÄ×÷ÓĂcisco-2960(config-if)#switchporttrunkallowedvlanall;ÉèÖĂ¶Ë¿ÚͨĐÅΪËùÓĐvlancisco-2960(config-if)#end;Í˳öcisco-2960#wrcisco-2960#conftcisco-2960(config)#vtpdomainnetwork.cn;ÅäÖĂvtpỌ́ĂûΪnetwork.cncisco-2960(config)#vtpmodeserver;ÉèÖĂvtpΪserverģʽcisco-2960(config)#vtpversion2;£¨ÉèÖĂvtpÔËĐĐģʽ°æ±¾ºÅΪ2²»Đè̉ª£©cisco-2960(config)#vtpmodeclient;½«vtpÅäÖĂΪ¿Í»§¶Ëģʽcisco-2960(config)#endcisco-2960#wrcisco-2960#reload;ÖØÆô½»»»»úcisco-2960#erasestartup-configɾ³ưËùÓĐÅäÖĂ
本文标题:cisco交换机配置命令
链接地址:https://www.777doc.com/doc-4037960 .html