- Brancher le routeur électriquement, et connecter le cable console au routeur et à un PC. La démo suppose un PC fonctionnant sous Slackware Linux.
- Vérifier les droits Linux:
philb@core2:~$ sudo su - root@core2:~# ls -al /dev/ttyS0 crw-rw---- 1 root dialout 4, 64 2010-01-19 13:34 /dev/ttyS0 root@core2:~# vigr
Modifier la ligne suivante pour s’ajouter au groupe « dialout »
dialout:x:16:uucp,philb
Penser à se deconnecter / reconnecter pour que les nouveaux parametres de groupes soient pris en compte
root@core2:~# exit philb@core2:~$ exit
- Configuration du port série
root@core2:~# vim /etc/minirc._dev_ttyS0 # Machine-generated file - use "minicom -s" to change parameters. pr port /dev/ttyS0 pu baudrate 9600 pu minit pu mreset pu rtscts No root@core2:~# exit
- Connexion au routeur
philb@core2:~$ minicom /dev/ttyS0
- Allumer le routeur… Les lignes suivantes doivent défiler…
Welcome to minicom 2.1 OPTIONS: History Buffer, F-key Macros, Search History Buffer, I18n Compiled on May 22 2009, 23:44:27. Press CTRL-A Z for help on special keys System Bootstrap, Version 12.2(8r) [cmong 8r], RELEASE SOFTWARE (fc1) Copyright (c) 2003 by cisco Systems, Inc. C2600 platform with 131072 Kbytes of main memory program load complete, entry point: 0x80008000, size: 0x1c8a8e4 Self decompressing the image : ###############################################################################################################################################################################[OK] Smart Init is enabled smart init is sizing iomem ID MEMORY_REQ TYPE 00036D 0X00103980 C2621XM Dual Fast Ethernet 000149 0X00016804 Virtual Private Network (VPN) Module 0X00098670 public buffer pools 0X00211000 public particle pools TOTAL: 0X003C37F4 If any of the above Memory Requirements are "UNKNOWN", you may be using an unsupported configuration or there is a software problem and system operation may be compromised. Rounded IOMEM up to: 3Mb. Using 2 percent iomem. [3Mb/128Mb] Restricted Rights Legend Use, duplication, or disclosure by the Government is subject to restrictions as set forth in subparagraph (c) of the Commercial Computer Software - Restricted Rights clause at FAR sec. 52.227-19 and subparagraph (c) (1) (ii) of the Rights in Technical Data and Computer Software clause at DFARS sec. 252.227-7013. cisco Systems, Inc. 170 West Tasman Drive San Jose, California 95134-1706 Cisco IOS Software, C2600 Software (C2600-ADVENTERPRISEK9-M), Version 12.4(23), RELEASE SOFTWARE (fc1) Technical Support: http://www.cisco.com/techsupport Copyright (c) 1986-2008 by Cisco Systems, Inc. Compiled Sat 08-Nov-08 20:53 by prod_rel_team This product contains cryptographic features and is subject to United States and local country laws governing import, export, transfer and use. Delivery of Cisco cryptographic products does not imply third-party authority to import, export, distribute or use encryption. Importers, exporters, distributors and users are responsible for compliance with U.S. and local country laws. By using this product you agree to comply with applicable laws and regulations. If you are unable to comply with U.S. and local laws, return this product immediately. A summary of U.S. laws governing Cisco cryptographic products may be found at: http://www.cisco.com/wwl/export/crypto/tool/stqrg.html If you require further assistance please contact us by sending email to export@cisco.com. Cisco 2621XM (MPC860P) processor (revision 2.0) with 127218K/3854K bytes of memory. Processor board ID JAE08030HG4 M860 processor: part number 5, mask 2 2 FastEthernet interfaces 1 Virtual Private Network (VPN) Module 32K bytes of NVRAM. 32768K bytes of processor board System flash (Read/Write) --- System Configuration Dialog --- Would you like to enter the initial configuration dialog? [yes/no]:
- Le routeur nous demande si l’on souhaite le configurer via un assistant; nous allons répondre non (no):
Would you like to enter the initial configuration dialog? [yes/no]: no Press RETURN to get started! *Mar 1 00:00:06.579: %LINEPROTO-5-UPDOWN: Line protocol on Interface VoIP-Null0, changed state to up *Mar 1 00:01:12.039: %VPN_HW-6-INFO_LOC: Crypto engine: aim 0 State changed to: Initialized *Mar 1 00:01:12.043: %VPN_HW-6-INFO_LOC: Crypto engine: aim 0 State changed to: Enabled *Mar 1 00:01:23.235: %LINK-3-UPDOWN: Interface FastEthernet0/0, changed state to up *Mar 1 00:01:23.239: %LINK-3-UPDOWN: Interface FastEthernet0/1, changed state to up *Mar 1 00:01:24.235: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to down *Mar 1 00:01:24.239: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to down *Mar 1 00:02:12.027: %LINK-5-CHANGED: Interface FastEthernet0/0, changed state to administratively down *Mar 1 00:02:12.031: %LINK-5-CHANGED: Interface FastEthernet0/1, changed state to administratively down *Mar 1 00:02:13.235: %IP-5-WEBINST_KILL: Terminating DNS process *Jan 20 20:48:39.151: %SYS-5-RESTART: System restarted -- Cisco IOS Software, C2600 Software (C2600-ADVENTERPRISEK9-M), Version 12.4(23), RELEASE SOFTWARE (fc1) Technical Support: http://www.cisco.com/techsupport Copyright (c) 1986-2008 by Cisco Systems, Inc. Compiled Sat 08-Nov-08 20:53 by prod_rel_team *Jan 20 20:48:39.155: %SNMP-5-COLDSTART: SNMP agent on host Router is undergoing a cold start
- Que pouvons nous faire à présent? Déjà appuyer sur « RETURN » pour avoir un prompt:
Router>
- Passage en mode « enable »
Router>enable Router#
Le # nous indique qu’on est en mode « enable »; cela est similaire au prompt de root sous *nix qui comporte aussi un #.
- Nous pouvons à présent exécuter quelques commande pour prendre en main le routeur, et vérifier son matériel, et son paramétrage initial:
Affichage de la version:Router#show version Cisco IOS Software, C2600 Software (C2600-ADVENTERPRISEK9-M), Version 12.4(23), RELEASE SOFTWARE (fc1) Technical Support: http://www.cisco.com/techsupport Copyright (c) 1986-2008 by Cisco Systems, Inc. Compiled Sat 08-Nov-08 20:53 by prod_rel_team ROM: System Bootstrap, Version 12.2(8r) [cmong 8r], RELEASE SOFTWARE (fc1) Router uptime is 8 minutes System returned to ROM by power-on System image file is "flash:c2600-adventerprisek9-mz.124-23.bin" This product contains cryptographic features and is subject to United States and local country laws governing import, export, transfer and use. Delivery of Cisco cryptographic products does not imply third-party authority to import, export, distribute or use encryption. Importers, exporters, distributors and users are responsible for compliance with U.S. and local country laws. By using this product you agree to comply with applicable laws and regulations. If you are unable to comply with U.S. and local laws, return this product immediately. A summary of U.S. laws governing Cisco cryptographic products may be found at: http://www.cisco.com/wwl/export/crypto/tool/stqrg.html If you require further assistance please contact us by sending email to export@cisco.com. Cisco 2621XM (MPC860P) processor (revision 2.0) with 127218K/3854K bytes of memory. Processor board ID JAE08030HG4 M860 processor: part number 5, mask 2 2 FastEthernet interfaces 1 Virtual Private Network (VPN) Module 32K bytes of NVRAM. 32768K bytes of processor board System flash (Read/Write) Configuration register is 0x2102 Router#
Informations sur la plateforme:
Router#show c2600 C2600 Platform Information: Interrupts: Assigned Handlers... Vect Handler # of Ints Name 00 802990B0 00000000 Xilinx bridge error interrupt 01 80244824 0002971E MPC860 TIMER INTERRUPT 02 80288F70 0000058C 16552 Con/Aux Interrupt 04 80297C74 00000000 PA Network Management Int Handler 05 802865CC 00000000 Timebase Reference Interrupt 06 80297CC4 00000243 PA Network IO Int Handler 07 80297D88 00000143 MPC860 CPM INTERRUPT IOS Priority Masks... Level 00 = [ EF000000 ] Level 01 = [ EC000000 ] Level 02 = [ E8000000 ] Level 03 = [ E0000000 ] Level 04 = [ E0000000 ] Level 05 = [ E0000000 ] Level 06 = [ C0000000 ] Level 07 = [ 00000000 ] SIU_IRQ_MASK = FFFFFFFF SIEN = EF00xxxx Current Level = 00 Spurious IRQs = 00000000 SIPEND = 0000xxxx Interrupt Throttling: Throttle Count = 00000000 Timer Count = 00000000 Netint usec = 00000FA0 Netint Mask usec = 000003E8 Active = 0 Configured = 0 Longest IRQ = 00000000 IDMA Status: Requests = 00000323 Drops = 00000000 Complete = 00000323 Post Coalesce Frames = 00000323 Giant = 00000000 Available Blocks = 256/256 PLD Status: PLD version information not available. DIMM Slot 0: DIMM Type : Dual-bank DIMM Size : 64MBytes DIMM Slot 1: DIMM Type : Dual-bank DIMM Size : 64MBytes Data TLBS used = 30 Instr TLBS = 14 Router#
Informations sur la configuration courrante:
Router#show running-config Building configuration... Current configuration : 715 bytes ! version 12.4 service timestamps debug datetime msec service timestamps log datetime msec no service password-encryption ! hostname Router ! boot-start-marker boot-end-marker ! ! no aaa new-model no network-clock-participate slot 1 no network-clock-participate wic 0 ip cef ! ! ! ! ip auth-proxy max-nodata-conns 3 ip admission max-nodata-conns 3 ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! interface FastEthernet0/0 no ip address shutdown duplex auto speed auto ! interface FastEthernet0/1 no ip address shutdown duplex auto speed auto ! ip forward-protocol nd ! ! ip http server no ip http secure-server ! ! ! ! control-plane ! ! ! ! ! ! ! ! ! ! line con 0 line aux 0 line vty 0 4 login ! ! end Router#
Informations sur les interfaces:
Router#show interfaces FastEthernet0/0 is administratively down, line protocol is down Hardware is AmdFE, address is 000f.23a1.5740 (bia 000f.23a1.5740) MTU 1500 bytes, BW 100000 Kbit/sec, DLY 100 usec, reliability 255/255, txload 1/255, rxload 1/255 Encapsulation ARPA, loopback not set Keepalive set (10 sec) Auto-duplex, Auto Speed, 100BaseTX/FX ARP type: ARPA, ARP Timeout 04:00:00 Last input never, output 00:04:26, output hang never Last clearing of "show interface" counters never Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 0 Queueing strategy: fifo Output queue: 0/40 (size/max) 5 minute input rate 0 bits/sec, 0 packets/sec 5 minute output rate 0 bits/sec, 0 packets/sec 0 packets input, 0 bytes Received 0 broadcasts, 0 runts, 0 giants, 0 throttles 0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored 0 watchdog 0 input packets with dribble condition detected 7 packets output, 420 bytes, 0 underruns 0 output errors, 0 collisions, 0 interface resets 0 unknown protocol drops 0 babbles, 0 late collision, 0 deferred 7 lost carrier, 0 no carrier 0 output buffer failures, 0 output buffers swapped out FastEthernet0/1 is administratively down, line protocol is down Hardware is AmdFE, address is 000f.23a1.5741 (bia 000f.23a1.5741) MTU 1500 bytes, BW 100000 Kbit/sec, DLY 100 usec, reliability 255/255, txload 1/255, rxload 1/255 Encapsulation ARPA, loopback not set Keepalive set (10 sec) Auto-duplex, Auto Speed, 100BaseTX/FX ARP type: ARPA, ARP Timeout 04:00:00 Last input never, output 00:04:29, output hang never Last clearing of "show interface" counters never Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 0 Queueing strategy: fifo Output queue: 0/40 (size/max) 5 minute input rate 0 bits/sec, 0 packets/sec 5 minute output rate 0 bits/sec, 0 packets/sec 0 packets input, 0 bytes Received 0 broadcasts, 0 runts, 0 giants, 0 throttles 0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored 0 watchdog 0 input packets with dribble condition detected 7 packets output, 420 bytes, 0 underruns 0 output errors, 0 collisions, 0 interface resets 0 unknown protocol drops 0 babbles, 0 late collision, 0 deferred 7 lost carrier, 0 no carrier 0 output buffer failures, 0 output buffers swapped out Router#
Informations sur les systèmes de fichiers:
Router#dir Directory of flash:/ 1 -rw- 29928068 c2600-adventerprisek9-mz.124-23.bin 33030140 bytes total (3102008 bytes free) Router# Router#cd nvram: Router#dir Directory of nvram:/ 27 -rw- 0 startup-config 28 ---- 0 private-config 29688 bytes total (29636 bytes free)

Commentaires