ʵÑéÎ壺·ÓÉÆ÷»ù±¾ÅäÖà ÏÂÔØ±¾ÎÄ

ÄÚÈÝ·¢²¼¸üÐÂʱ¼ä : 2026/3/20 18:57:14ÐÇÆÚÒ» ÏÂÃæÊÇÎÄÕµÄÈ«²¿ÄÚÈÝÇëÈÏÕæÔĶÁ¡£

ʵÑé6£ºCISCO_·ÓÉÆ÷»ù±¾ÅäÖÃ

Cisco·ÓÉÆ÷»ù´¡

·ÓÉÆ÷ÊÇÁ¬½Ó¶à¸öÍøÂç»òÍø¶ÎµÄÍøÂçÉ豸¡£Â·ÓÉÆ÷Ö÷ÒªÍê³ÉÁ½Ï×÷£¬¼´¡°Ñ°¾¶¡±ºÍ¡°×ª·¢¡±¡£¡°Ñ°¾¶¡±ÊÇÖ¸½¨Á¢ºÍά»¤Â·ÓɱíµÄ¹ý³Ì£¬Ö÷ÒªÓÉÈí¼þʵÏÖ£»¡°×ª·¢¡±ÊÇÖ¸°ÑÊý¾Ý°ü´ÓÒ»¸ö½Ó¿Úתµ½ÁíÒ»½Ó¿ÚµÄ¹ý³Ì£¬Ö÷ÒªÓÉÓ²¼þÍê³É¡£

·ÓÉÆ÷¾ÍÊÇÒ»Ì¨ÌØÊ⹦ÄܵļÆËã»ú£¬ËüµÄÖ÷Òª¹¦ÄܾÍÊÇÓÃÀ´½øÐзÓɼÆËãºÍÊý¾Ý°üµÄת·¢£¬ËüÓÐÏàÓ¦µÄ²Ù×÷ϵͳ£¨IOS£©¡£

Router> Ê×ÏȽøÈëÓû§Ä£Ê½¡£

Router>? ͨ¹ýÊäÈëÒ»¸öÎʺţ¬¿ÉÒÔ¿´³öÔÚÕâ¸öģʽÖУ¬¿ÉÒÔʹÓÃʲôÑùµÄÃüÁî¡£ Router>show ? showÃüÁîÀ´»ñÈ¡ÓйصÄϵͳÐÅÏ¢¡£

Router>enable ½øÈëÌØÈ¨Ä£Ê½Router#,Õâʱ¿ÉÒÔÖ´ÐÐËùÓеÄÓû§ÃüÁ»¹¿ÉÒÔ¿´µ½ºÍ¸ü ¸Ä·ÓÉÆ÷µÄÉèÖÃÄÚÈÝ¡£ Router#disable Í˳öÌØÈ¨Ä£Ê½¡£

Router#exit Í˳öÕû¸ö¿ØÖÆÁ´Â·¡£

Router#configure terminal ½øÈëÈ«¾ÖÉèÖÃģʽ£¬Õâʱ¿ÉÒÔÉèÖ÷ÓÉÆ÷µÄÈ«¾Ö²ÎÊý¡£ Router(config)#end Í˳öÈ«¾ÖÉèÖÃģʽ¡£

Router(config)#interface ¶Ë¿Ú ½øÈë¾Ö²¿¶Ë¿ÚÉèÖÃģʽRouter(config-if)#£¬¿ÉÒÔÉèÖà ·ÓÉÆ÷µÄ¶Ë¿Ú²ÎÊý¡£

Router(config)#line console 0 ½øÈë¿ØÖÆÌ¨Ïß·ÉèÖÃģʽ£¬Router(config-line)#,¿ÉÒÔÐÞ¸Ä ¿ØÖÆÌ¨»á»°ÉèÖá£

Router(config)#interface fastEthernet 0/0 ½øÈëÅäÖýӿÚģʽ£¬Router(config-if)#£¬¿ÉÒÔÐÞ¸Ä fastEthemet 0/0½Ó¿ÚÅäÖá£

ʵÑéÒ»¡¢ÖØÃüÃû Router>enable

Router#configure terminal Router(config)#hostname r1 r1(config)#

ʵÑé¶þ¡¢ÏÔʾ¶Ë¿Ú״̬ Route>enable

Router#show ip interface brief

Interface IP-Address OK? Method Status Protocol

FastEthernet0/0 unassigned YES unset administratively down down

FastEthernet0/1 unassigned YES unset administratively down down

Vlan1 unassigned YES unset administratively down down

ʵÑéÈý¡¢ÅäÖýӿÚIPÐÅÏ¢ Router>enable

Router#configure terminal

Router(config)#interface fastEthernet 0/0 Router(config-if)#no shutdown

%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up

Router(config-if)#ip address 192.168.1.1 255.255.255.0 Router(config-if)#end Router#

%SYS-5-CONFIG_I: Configured from console by console

Router#show ip interface brief

Interface IP-Address OK? Method Status

FastEthernet0/0 192.168.1.1 YES manual up

FastEthernet0/1 unassigned YES unset administratively down

Vlan1 unassigned YES unset administratively down

ʵÑéËÄ¡¢ÃÜÂëÉèÖà 1¡¢Óû§Ä£Ê½ÃÜÂëÉèÖà Router>enable

Router#configure terminal

Enter configuration commands, one per line. End with CNTL/Z. Router(config)#line console 0

Router(config-line)#password (ÃÜÂ룩 Router(config-line)#login Router(config-line)#end

2¡¢ÐéÄâÖÕ¶ËÓû§ÃÜÂëÉèÖà Router>enable

Router#configure terminal

Enter configuration commands, one per line. End with CNTL/Z. Router(config)#line vty 0 15

Router(config-line)#password (ÃÜÂ룩 Router(config-line)#login Router(config-line)#end

Protocol down down down 3¡¢Enable passwordÉèÖÃ Router>enable

Router#configure terminal

Enter configuration commands, one per line. End with CNTL/Z. Router(config)#enable password (ÃÜÂ룩

4¡¢Secret passwordÃÜÎÄÃÜÂëÉèÖà Router>enable

Router#configure terminal

Enter configuration commands, one per line. End with CNTL/Z. Router(config)#endble secret (ÃÜÂ룩

5¡¢¹Ø±ÕÃÜÂë outer>enable

Router#configure terminal

Enter configuration commands, one per line. End with CNTL/Z. Router(config)#no enable password

ʵÑéÎå¡¢Ô¶³ÌÐéÄâÖն˵Ǽ Router1µÇ¼Router2

Router2

Router>enable

Router#configure terminal

Enter configuration commands, one per line. End with CNTL/Z. Router(config)#interface fastEthernet 0/0 Router(config-if)#no shutdown

%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up

Router(config-if)#ip address 192.168.1.2 255.255.255.0 Router(config-if)#exit

Router(config)#r2(config)#line console 0 Router(config-line)#password 123 Router(config-line)#login Router(config-line)#exit Router(config)#line vty % Incomplete command. Router(config)#line vty 0 15

Router(config-line)#password 456

Router1

Router>enable

Router#configure terminal