Catalyst 3560 ½»»»»úÖÐÎļòÒªÅäÖÃÊÖ²á µÚ1Õ ¸ÅÊö
1.1 ¸ÅÊö
3560½»»»»úÊÇÖ§³Ö¶þ²ã¡¢Èý²ã¹¦ÄܵĽ»»»»ú£¬¹²·ÖΪEMI,SMIÁ½¸ö°æ±¾
Enhanced Multilayer Software ImageÔöÇ¿¶à²ãÈí¼þ¾µÏñÈí¼þ (EMI)
? EMIÌṩÁËÒ»×é¸ü¼Ó·á¸»µÄÆóÒµ¼¶¹¦ÄÜ£¬°üÀ¨»ùÓÚÓ²¼þµÄ¸ß¼¶IPµ¥²¥ºÍ¶à²¥Â·ÓÉ¡£ ? Ö§³ÖË«»úÈȱ¸(HSRP),OSPF·Óɹ¦ÄÜ.
Standard Multilayer Software Image±ê×¼¶à²ãÈí¼þ¾µÏñÈí¼þ(SMI)
? SMI¹¦Äܼ¯°üÀ¨¸ß¼¶QoS¡¢ËÙÂÊÏÞÖÆ¡¢·ÃÎÊ¿ØÖÆÁÐ±í£¨ACL£©£¬ÒÔ¼°»ù±¾µÄ¾²Ì¬ºÍ·ÓÉÐÅÏ¢ÐÒ飨RIP£©Â·Óɹ¦ÄÜ
Ö§³ÖVLAN ¡¤ µ½1005 ¸öVLAN
¡¤ Ö§³ÖVLAN ID´Ó1µ½4094£¨ IEEE 802.1Q ±ê×¼£© ¡¤ Ö§³ÖISL¼°IEEE 802.1Q·â×° °²È«
¡¤ Ö§³ÖIOS±ê×¼µÄÃÜÂë±£»¤ ¡¤ ¾²Ì¬MACµØÖ·Ó³Éä
¡¤ ±ê×¼¼°À©Õ¹µÄ·ÃÎÊÁбíÖ§³Ö£¬¶ÔÓÚ·Óɶ˿ÚÖ§³ÖÈë³öË«ÏòµÄ·ÃÎÊÁÐ±í£¬¶ÔÓÚ¶þ²ã¶Ë¿ÚÖ§³ÖÈëµÄ·ÃÎÊÁбí
¡¤ Ö§³Ö»ùÓÚVLANµÄ·ÃÎÊÁбí 3²ãÖ§³Ö£¨ÐèÒª¶à²ã½»»»µÄIOS£© ¡¤ HSRP ¡¤ IP·ÓÉÐÒé
o RIP versions 1 and 2 o OSPF
o IGRP¼°EIGRP o BGP Version 4 Ö§³ÖÒÔÏÂSFPÄ£¿é:
¡¤ 1000BASE-T SFP: ÍÏß×100 m
¡¤ 1000BASE-SX SFP: ¹âÏË×1804 feet (550 m) ¡¤ 1000BASE-LX/LH SFP: ¹âÏË×32,808 feet (6 miles or 10 km) ¡¤ 1000BASE-ZX SFP: ¹âÏË×328,084 feet (62 miles or 100 km) ¹ÜÀí
´ÓÓû§ÓëÉ豸½»»¥µÄÌØµãÀ´·Ö£¬·ÃÎÊÉ豸µÄ·½Ê½¿ÉÒÔ·ÖΪÃüÁîÐз½Ê½ºÍWeb·½Ê½¡£ l ÃüÁîÐз½Ê½£º°üÀ¨´ÓConsole¿ÚµÇ¼½øÐзÃÎʺÍͨ¹ýTelnetµÇ¼½øÐзÃÎÊ£» l Web·½Ê½£º°üÀ¨Í¨¹ýHTTP½øÐÐµÄÆÕͨWeb·ÃÎÊ¡£ 1.2 ³õ´Î·ÃÎÊÉ豸
1.2.1 ͨ¹ýConsole¿Ú·ÃÎÊÉ豸
Óû§½ÓÊÕµ½³ýÈ¥°ü×°µÄÐÂÉ豸ºóÒ»°ãͨ¹ýConsole¿ÚµÚÒ»´ÎµÇ¼É豸²¢¿ªÊ¼¶ÔÉ豸½øÐÐÅäÖ㬹ý³ÌÈçÏ£º µÚÒ»²½£º½¨Á¢±¾µØÅäÖû·¾³£¬Ö»Ð轫¼ÆËã»ú£¨»òÖÕ¶Ë£©µÄ´®¿Úͨ¹ý±ê×¼RS-232µçÀÂÓë´ËCatalyst 3560É豸µÄConsole¿ÚÁ¬½Ó
µÚ¶þ²½£ºÔÚ¼ÆËã»úÉÏÔËÐÐÖÕ¶Ë·ÂÕæ³ÌÐò£¨ÈçWinXPµÄ³¬¼¶Öն˵ȣ©£¬ÉèÖÃÖÕ¶ËͨÐŲÎÊýΪ9600bps¡¢8λÊý¾Ýλ¡¢1λֹͣλ¡¢ÎÞÆæÅ¼Ð£ÑéºÍÎÞÁ÷Á¿¿ØÖÆ£¬Èçͼ1-1ÖÁͼ1-3Ëùʾ¡£
ͼ1-1 н¨Á¬½Ó
ͼ1-2 Á¬½Ó¶Ë¿ÚÉèÖÃ
ͼ1-3 ¶Ë¿ÚͨÐŲÎÊýÉèÖÃ
µÚËIJ½£ºCatalyst 3560É豸Éϵç×Լ죬³öÏÖÃüÁîÐÐÌáʾ·û,È磺Switch>¡£
´ËʱÓû§ÒѾ½øÈëµ½É豸ÃüÁîÐÐÅäÖýӿڵÄÓû§Ä£Ê½£¬´ÓÕâÀ↑ʼ¾Í¿ÉÒԲο¼±¾ÊÖ²áÆäÓàÕ½ڶÔÉ豸½øÐÐÅäÖá£
µÚ2Õ ÃüÁîÐз½Ê½·ÃÎÊÉ豸
Èç¹ûÓû§Í¨¹ýConsole¿ÚµÇ¼£¬»òÕßͨ¹ýTelne´ÓÉ豸¹ÜÀí¿ÚµÇ¼¶¼½«½øÈëµ½É豸µÄÃüÁîÐнӿڣ¬¶ÔϵͳµÄÅäÖúͽ»»¥¶¼Í¨¹ýÃüÁîÐеķ½Ê½½øÐС£¡£ 2.1.1 ÃüÁîÐÐģʽ
ÃüÁîÐнӿÚÌṩµÄÃüÁîÐÐÊÓͼºÍ¸÷ÊÓͼµÄ¹¦ÄÜÌØÐÔ¡¢½øÈë¸÷ÊÓͼµÄÃüÁîµÈµÄϸÔòÈç±í2-1Ëùʾ¡£ ±í2-1 ÃüÁîÊÓͼ¹¦ÄÜÌØÐÔÁбí
ģʽ ¹¦ÄÜ Ìáʾ·û ½øÈëÃüÁî Í˳öÃüÁî
·ÇÌØÈ¨Ä£Ê½ ²é¿´CISCO É豸µÄ¼òµ¥ÔËÐÐ״̬ Switch> ¿ª»úʱ×Ô¶¯½øÈë
ÌØÈ¨Ä£Ê½ ÅäÖÃϵͳ²ÎÊý£¬Éý¼¶IOSÈí¼þ£¬±¸·ÝÅäÖÃÎļþ Switch# ÔÚ·ÇÌØÈ¨Ä£Ê½Ï¼üÈëENABLE quit·µ»Ø·ÇÌØÈ¨Ä£Ê½
È«¾Öģʽ CISCO½»»»»ú´ó²¿·ÖÅäÖö¼ÊÇÔÚÕâ¸öģʽϽøÐÐ Switch(config)# ÔÚÌØÈ¨Ä£Ê½Ï¼üÈëconfigure terminal quit·µ»ØÌØÈ¨Ä£Ê½
¼à¿ØÄ£Ê½ Éý¼¶IOSϵͳÈí¼þ Switch£º ¿ª»úʱÞô×¡Ãæ°åÉϵÄMODE¼üÔ¼5ÃëÖÓ 2.1.2 »ù±¾ÉèÖÃÃüÁî »ù±¾ÉèÖÃÃüÁî
ÈÎÎñ ÃüÁî
È«¾ÖÉèÖà config terminal
ÉèÖ÷ÃÎÊÓû§¼°ÃÜÂë Username username password password ÉèÖÃÌØÈ¨ÃÜÂë enable secret password ÉèÖ÷ÓÉÆ÷Ãû Hostname name
ÉèÖþ²Ì¬Â·ÓÉ ip route destination subnet-mask next-hop Æô¶¯IP·ÓÉ ip routing
Æô¶¯IPX·ÓÉ ipx routing
¶Ë¿ÚÉèÖà interface type slot/number
ÉèÖÃIPµØÖ· ip address address subnet-mask ÉèÖÃIPXÍøÂç ipx network network ¼¤»î¶Ë¿Ú no shutdown
ÎïÀíÏß·ÉèÖà line type number Æô¶¯µÇ¼½ø³Ì login [local|tacacs server] ÉèÖõǼÃÜÂë Password password ÏÔʾÃüÁî
ÈÎÎñ ÃüÁî
²é¿´°æ±¾¼°Òýµ¼ÐÅÏ¢ show version ²é¿´ÔËÐÐÉèÖà show running-config ²é¿´¿ª»úÉèÖà show startup-config
ÏÔʾ¶Ë¿ÚÐÅÏ¢ show interface type slot/number ÏÔʾ·ÓÉÐÅÏ¢ show ip route µÚ3Õ ½Ó¿ÚÅäÖà 3.1 ¸ÅÊö
Catalyst 3560Ö§³ÖµÄÒÔÌ«Íø½Ó¿Ú˵Ã÷Çë¼ûÏÂ±í¡£ ±í3-1 Catalyst 3560½Ó¿Ú˵Ã÷
ÏîÄ¿ ˵Ã÷
½Ó¿ÚÀàÐÍ FEµç½Ó¿Ú£º·ûºÏ100Base-TXÎïÀí²ã¹æ·¶
GEµç½Ó¿Ú£º1000Base-TXÎïÀí²ã¹æ·¶
¹¤×÷ËÙÂÊ FEµç ½Ó¿Ú¿ÉÒÔÑ¡Ôñ10Mbit/s¡¢100Mbit/sÁ½ÖÖËÙÂÊ
GEµç½Ó¿Ú¿ÉÒÔÑ¡Ôñ10Mbit/s¡¢100Mbit/s¡¢1000Mbit/sÈýÖÖËÙÂÊ ¹¤×÷ģʽ ×Ô¶¯ÐÉÌģʽ
3.2 ¶þ²ã¿ÚÅäÖÃ
3560µÄËùÓж˿ÚȱʡµÄ¶Ë¿Ú¶¼ÊǶþ²ã¿Ú£¬Èç¹û´Ë¶Ë¿ÚÒѾÅäÖóÉÈý²ã¶Ë¿ÚµÄ»°£¬ÔòÐèÒªÓÃswitchportÀ´Ê¹Æä³ÉΪ¶þ²ã¶Ë¿Ú¡£
3.2.1 ÅäÖö˿ÚËÙÂʼ°Ë«¹¤Ä£Ê½
1. ¿ÉÒÔÅäÖÿìËÙÒÔÌ«¿ÚµÄËÙÂÊΪ10/100Mbps¼°Ç§Õ×ÒÔÌ«¿ÚµÄËÙÂÊΪ10/100/1000-Mbps; µ«¶ÔÓÚSFP¶Ë¿ÚÔò²»ÄÜÅäÖÃËÙÂʼ°Ë«¹¤Ä£Ê½£¬ÓÐʱ¿ÉÒÔÅäÖÃnonegotiate,µ±ÐèÒªÁª½Ó²»Ö§³Ö×ÔÊÊÓ¦µÄÆäËüǧÕ×¶Ë¿Úʱ ±í3-2 ¹ÜÀí¿ÚÅäÖÃ
ÃüÁî Ä¿µÄ
Step 1 configure terminal ½øÈëÅäÖÃ״̬.
Step 2 interface interface-id ½øÈë¶Ë¿ÚÅäÖÃ״̬.
Step 3 speed {10 | 100 | 1000 | auto | nonegotiate} ÉèÖö˿ÚËÙÂÊ ×¢ 1000 Ö»¹¤×÷ÔÚǧÕ׿Ú. GBICÄ£¿éÖ»¹¤×÷ÔÚ1000 MbpsÏÂ. nonegotiate Ö»ÄÜÔÚÕâЩGBICÉÏÓà 1000BASE-SX, -LX, and -ZX GBIC. Step 4 duplex {auto | full | half} ÉèÖÃȫ˫¹¤»ò°ëË«¹¤. Step 5 end Í˳ö
Step 6 show interfaces interface-id ÏÔʾÓйØÅäÖÃÇé¿ö Step 7 copy running-config startup-config ±£´æ Switch# configure terminal
Switch(config)# interface fastethernet0/3 Switch(config-if)# speed 10 Switch(config-if)# duplex half 3.3 ÅäÖÃÒ»×é¶Ë¿Ú
ÃüÁî Ä¿µÄ
Step 1 configure terminal ½øÈëÅäÖÃ״̬
Step 2 interface range {port-range} ½øÈë×éÅäÖÃ״̬ Step 3 ¿ÉÒÔʹÓÃÆ½Ê±µÄ¶Ë¿ÚÅäÖÃÃüÁî½øÐÐÅäÖà Step 4 end ÍË»Ø
Step 5 show interfaces [interface-id] ÑéÖ¤ÅäÖà Step 6 copy running-config startup-config ±£´æ ¼ûÒÔÏÂÀý×Ó:
Switch# configure terminal
Switch(config)# interface range fastethernet0/1 - 5 Switch(config-if-range)# no shutdown
Switch(config-if-range)#
*Oct 6 08:24:35: %LINK-3-UPDOWN: Interface FastEthernet0/1, changed state to up *Oct 6 08:24:35: %LINK-3-UPDOWN: Interface FastEthernet0/2, changed state to up *Oct 6 08:24:35: %LINK-3-UPDOWN: Interface FastEthernet0/3, changed state to up *Oct 6 08:24:35: %LINK-3-UPDOWN: Interface FastEthernet0/4, changed state to up *Oct 6 08:24:35: %LINK-3-UPDOWN: Interface FastEthernet0/5, changed state to up
*Oct 6 08:24:36: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/05, changed state to up
*Oct 6 08:24:36: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/3, changed state to up
*Oct 6 08:24:36: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/4, changed state to up
ÒÔϵÄÀý×ÓÏÔʾʹÓþäºÅÀ´ÅäÖò»Í¬ÀàÐͶ˿ڵÄ×é: Switch# configure terminal
Switch(config)# interface range fastethernet0/1 - 3, gigabitethernet0/1 - 2 Switch(config-if-range)# no shutdown
Switch(config-if-range)#
*Oct 6 08:29:28: %LINK-3-UPDOWN: Interface FastEthernet0/1, changed state to up *Oct 6 08:29:28: %LINK-3-UPDOWN: Interface FastEthernet0/2, changed state to up *Oct 6 08:29:28: %LINK-3-UPDOWN: Interface FastEthernet0/3, changed state to up *Oct 6 08:29:28: %LINK-3-UPDOWN: Interface GigabitEthernet0/1, changed state to up *Oct 6 08:29:28: %LINK-3-UPDOWN: Interface GigabitEthernet0/2, changed state to up
*Oct 6 08:29:29: %LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/ 1, changed state to up
*Oct 6 08:29:29: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/ 2, changed state to up
*Oct 6 08:29:29: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/ 3, changed state to up 3.4 ÅäÖÃÈý²ã¿Ú
Catalyst 3560Ö§³ÖÈýÖÖÀàÐ͵ÄÈý²ã¶Ë¿Ú: ¡¤ SVIs: ¼´interface vlan
Note µ±Éú³ÉÒ»¸öinterface Vlanʱ£¬Ö»Óе±°ÑijһÎïÀí¶Ë¿Ú·ÖÅ䏸Ëüʱ²ÅÄܱ»¼¤»î ¡¤ Èý²ãÒÔÌ«ÍøÍ¨µÀ¿Ú£¨EtherChannel£©: £ºÒÔ̫ͨµÀÓɱ»Â·Óɶ˿Ú×é³É¡£ÒÔ̫ͨµÀ¶Ë¿Ú½Ó¿ÚÔÚ¡°ÅäÖÃÒÔ̫ͨµÀ¡±Öб»ÃèÊö¡£
¡¤ .·ÓɿڣºÂ·ÓÉ¿ÚÊÇָijһÎïÀí¶Ë¿ÚÔÚ¶Ë¿ÚÅäÖÃ״̬ÏÂÓÃno switchportÃüÁîÉú³ÉµÄ¶Ë¿Ú ËùÓеÄÈý²ã¶¼ÐèÒªIPµØÖ·ÒÔʵÏÖ·Óɽ»»» ÅäÖò½ÖèÈçÏ£º
ÃüÁî Ä¿µÄ
Step 1 configure terminal ½øÈëÅäÖÃ״̬
Step 2 interface {{fastethernet | gigabitethernet} interface-id} | {vlan vlan-id} | {port-channel port-channel-number} ½øÈë¶Ë¿ÚÅäÖÃ״̬
Step 3 no switchport °ÑÎïÀí¶Ë¿Ú±ä³ÉÈý²ã¿Ú Step 4 ip address ip_address subnet_mask ÅäÖÃIPµØÖ·ºÍÑÚÂë Step 5 no shutdown ¼¤»î¶Ë¿Ú Step 6 End Í˳ö Step 7 show interfaces [interface-id]show ip interface [interface-id]show running-config interface [interface-id] ÑéÖ¤ÅäÖà Step 8 copy running-config startup-config ±£´æÅäÖà ÅäÖþÙÀýÈçÏ£º
Switch# configure terminal
Ïà¹ØÍÆ¼ö£º