![]() | NET 363 Interconnexion des Réseaux |
The internal components of a cisco router and switchBootstrap Stored in the microcode of the ROM, the bootstrap is used to bring a router up during initialization. It boots the router up and then loads the IOS. POST (power-on self-test) Also stored in the microcode of the ROM, the POST is used to check the basic functionality of the router hardware and determines which interfaces are present. ROM monitor Again, stored in the microcode of the ROM, the ROM monitor is used for manufacturing, testing, and troubleshooting,as well as running a mini-IOS when the IOS in flash fails to load. Mini-IOS Called the RXBOOT or bootloader by Cisco, the mini-IOS is a small IOS in ROM that can be used to bring up an interface and load a Cisco IOS into flash memory. The mini-IOS can also perform a few other maintenance operations. RAM (random access memory) Used to hold packet buffers, ARP cache, routing tables, and also the software and data structures that allow the router to function. Running-config is stored in RAM, and most routers expand the IOS from flash into RAM upon boot. ROM (read-only memory) Used to start and maintain the router. Holds the POST and the bootstrap program as well as the mini-IOS. Flash memory Stores the Cisco IOS by default. Flash memory is not erased when the router is reloaded. It is EEPROM (electronically erasable programmable read-only memory)created by Intel. NVRAM (nonvolatile RAM) Used to hold the router and switch configuration. NVRAM is not erased when the router or switch is reloaded. Does not store an IOS. The configuration register is stored in NVRAM. Configuration register Used to control how the router boots up. This value can be found as the last line of the show version command output and by default is set to 0x2102, which tells the router to load the IOS from flash memory as well as to load the configuration from NVRAM. The router and switch boot sequenceWhen a Cisco device boots up, it performs a series of steps, called the boot sequence, to test the hardware and load the necessary software. The boot sequence comprises the following steps: 1. The IOS device performs a POST, which tests the hardware to verify that all components of the device are present and operational. The post takes stock of the different interfaces on the switch or router, and it’s stored in and runs from read-only memory (ROM). 2. The bootstrap in ROM then locates and loads the Cisco IOS software by executing programs responsible for finding where each IOS program is located. Once they are found, it then loads the proper files. By default, the IOS software is loaded from flash memory in all Cisco devices. The default order of an IOS loading from a Cisco device begins with flash, then TFTP server, and finally, ROM. 3. The IOS software then looks for a valid configuration file stored in NVRAM. This file is called startup-config and will be present only if an administrator has copied the running-config file into NVRAM. 4. If a startup-config file is found in NVRAM, the router or switch will copy it, place it in RAM, and name the file the running-config. The device will use this file to run, and the router/switch should now be operational. If no startup-config file is found in NVRAM, the router/switch reacts by broadcasting out any interface that detects carrier detect (CD) to locate a TFTP host in its search for a configuration. When that fails, which it typically does, the device will begin the setup mode configuration process. Most people don’t even realize the device has attempted this process! The default order of an IOS loading from a Cisco device begins with flash, then TFTP server, and finally, ROM. Booting SystemBooting from Flash memorySyntaxRouter(config)#boot system flash IOS-Filename Examples Router(config)#boot system flash c2800nm-advsecurityk9-mz.151-4.M6.bin LAB-R1(config)#boot system flash c1841-advipservicesk9-mz.124-15.T1.bin Booting from tftp serverSyntaxLAB-R1(config)#boot system tftp IOS-filename Host Examples LAB-R1(config)#boot system tftp asa842-k8.bin 10.0.0.1 Configuration RegisterManaging the Configuration RegisterAll Cisco routers have a 16-bit software register that’s written into NVRAM. By default, the configuration register is set to load the Cisco IOS from flash memory and to look for and load the startup-config file from NVRAM. In the following sections, I am going to discuss the configuration register settings and how to use these settings to provide password recovery on your routers. Understanding the Configuration Register BitsThe 16 bits (2 bytes) of the configuration register are read from 15 to 0, from left to right. The default configuration setting on Cisco routers is 0x2102. This means that bits 13, 8, and 1 are on. Notice that each set of 4 bits (called a nibble) is read in binary with a value of 8, 4, 2, 1. Add the prefix 0x to the configuration register address. The 0x means that the digits that follow are in hexadecimal.
The boot field, which consists of bits 0–3 in the configuration register (the last 4 bits), controls the router boot sequence and locates the Cisco IOS.
Checking the Current Configuration Register ValueYou can see the current value of the configuration register by using the show version command (sh version or show ver for short), as demonstrated here: Router>sh versionCisco IOS Software, 2800 Software (C2800NM-ADVSECURITYK9-M), Version 15.1(4)M6, RELEASE SOFTWARE (fc2) [output cut] Configuration register is 0x2102 The last information given from this command is the value of the configuration register. In this example, the value is 0x2102—the default setting. The configuration register setting of 0x2102 tells the router to look in NVRAM for the boot sequence. Configuration on IOShostname(config)# config-register 0x2102 Configuration on Rommon Mode Type at the rommon 1> confreg 0x2142 rommon 1> reset Register Values and rules0x2142 bypasses the startup configuration0x2102 Default Load startup Configuration 0x2100 To boot to ROM monitor mode 0x2101 boot the mini-IOS image stored in ROM. The router will show the Router(boot)> prompt Recovering PasswordsIf you’re locked out of a router because you forgot the password, you can change the configuration register to help you get back on your feet. As I said earlier, bit 6 in the configuration register is used to tell the router whether to use the contents of NVRAM to load a router configuration. The default configuration register value is 0x2102, meaning that bit 6 is off. With the default setting, the router will look for and load a router configuration stored in NVRAM (startup-config). To recover a password, you need to turn on bit 6. Doing this will tell the router to ignore the NVRAM contents. The configuration register value to turn on bit 6 is 0x2142. Here are the main steps to password recovery: 1. Boot the router and interrupt the boot sequence by performing a break, which will take the router into ROM monitor mode.2. Change the configuration register to turn on bit 6 (with the value 0x2142). 3. Reload the router. 4. Say “no” to entering setup mode, then enter privileged mode. 5. Copy the startup-config file to running-config, and don’t forget to verify that your interfaces are reenabled. 6. Change the password. 7. Reset the configuration register to the default value. 8. Save the router configuration. 9. Reload the router (optional). I’m going to cover these steps in more detail in the following sections. I’ll also show you the commands to restore access to ISR series routers. You can enter ROM monitor mode by pressing Ctrl+Break or Ctrl+Shift+6, then b, during router bootup. But if the IOS is corrupt or missing, if there’s no network connectivity available to find a TFTP host, or if the mini-IOS from ROM doesn’t load (meaning the default router fallback failed), the router IP Service Level Agreements (SLAs)Using IP SLA for TroubleshootingI want to mention one more thing that can help you troubleshoot your IP network, and this is using IP service-level agreements (SLAs), which will allow us to use IP SLA ICMP echo to test far-end devices instead of pinging manually. There are several reasons to use the IP SLA measurements:Edge-to-edge network availability monitoring For example, packet loss statistics Network performance monitoring and network performance visibility For example, network latency and response time Troubleshooting basic network operation For example, end-to-end network connectivity Step 1: Enable an IP SLA operation that enters the IP SLA configuration mode. Chose any number from 1 to 2.1 billion as an operation number. R1(config)#ip sla 1 Step 2: Configure the IP SLA ICMP echo test and destination. R1(config-ip-sla)#icmp? icmp-echo icmp-jitter R1(config-ip-sla)#icmp-echo ? Hostname or X:X:X:X::X Hostname or A.B.C.D Destination IPv6/IP address or hostname R1(config-ip-sla)#icmp-echo 172.16.20.254 Step 3: Set the test frequency. R1(config-ip-sla-echo)#frequency ? <1-604800> Frequency in seconds (default 60) R1(config-ip-sla-echo)#frequency 10 Step 4: Schedule your IP SLA test. R1(config-ip-sla-echo)#exit R1(config)#ip sla schedule ? <1-2147483647> Entry number R1(config)#ip sla schedule 1 life ? <0-2147483647> Life seconds (default 3600) forever continue running forever R1(config)#ip sla schedule 1 life forever start-time ? after Start after a certain amount of time from now hh:mm Start time (hh:mm) hh:mm:ss Start time (hh:mm:ss) now Start now pending Start pending R1(config)#ip sla schedule 1 life forever start-time now Step 5: Verify the IP SLA operation. Use the following commands: Show ip sla configuration Show ip sla statistics R1 should have an ICMP Echo test configured to the remote server address, and the test should run every 10 seconds and be scheduled to run forever. R1#show ip sla configurationIP SLAs Infrastructure Engine-II Entry number: 1 Owner: Tag: Type of operation to perform: icmp-echo Target address/Source address: 172.16.20.254/0.0.0.0 Type Of Service parameter: 0x0 Request size (ARR data portion): 28 Operation timeout (milliseconds): 5000 Verify data: No Vrf Name: Schedule: Operation frequency (seconds): 10 (not considered if randomly scheduled) Next Scheduled Start Time: Start Time already passed Group Scheduled : FALSE Randomly Scheduled : FALSE Life (seconds): Forever Entry Ageout (seconds): never Recurring (Starting Everyday): FALSE Status of entry (SNMP RowStatus): Active [output cut] R1#sh ip sla statistics IPSLAs Latest Operation Statistics IPSLA operation id: 1 Type of operation: icmp-echo Latest RTT: 1 milliseconds Latest operation start time: *15:27:51.365 UTC Mon Jun 6 2016 Latest operation return code: OK Number of successes: 38 Number of failures: 0 Operation time to live: Forever The IP SLA 1 test on R1 has been successfully performed 38 times and the test never failed. Switched Port Analyzer (SPAN)Using SPAN for TroubleshootingA traffic sniffer can be a valuable tool for monitoring and troubleshooting your network. However, since the inception of switches into our networks more than 20 years ago, troubleshooting has become more difficult because we can’t just plug an analyzer into a switch port and be able to read all the network traffic. Before we had switches, we used hubs, and when a hub received a digital signal on one port, the hub sent that digital signal out on all ports except the port it was received on. This allows a traffic sniffer that is connected to a hub port to receive all traffic in the network. Modern local networks are essentially switched networks. After a switch boots, it starts to build up a layer 2 forwarding table based on the source MAC addresses of the different packets that the switch receives. After the switch builds this forwarding table, it forwards traffic that is destined for a MAC address directly to the exit port. By default, this prevents a traffic sniffer that is connected to another port from receiving the unicast traffic. The SPAN feature was therefore introduced on switches to help solve this problem
![]() The SPAN feature allows you to analyze network traffic passing through the port and send a copy of the traffic to another port on the switch that has been connected to a network analyzer or other monitoring device. SPAN copies the traffic that the device receives and/or sends on source ports to a destination port for analysis. For example, if you would like to analyze the traffic flowing from PC1 to PC2, shown in Figure 20.2, you need to specify a source port where you want to capture the data. You can either configure the interface Fa0/1 to capture the ingress traffic or configure the interface Fa0/3 to capture the egress traffic—your choice! Next, specify the destination port interface where the sniffer is connected and will capture the data, in this example Fa0/2. The traffic flowing from PC1 to PC2 will then be copied to that interface, and you will be able to analyze it with a traffic sniffer. Step 1: Associate a SPAN session number with the source port of what you want to monitor.S1(config)#monitor session 1 source interface f0/1 Step 2: Associate a SPAN session number of the sniffer with the destination interface. S1(config)#monitor session 1 dest interface f0/2 Step 3: Verify that the SPAN session has been configured correctly. S1(config)#do sh monitor Session 1 --------- Type : Local Session Source Ports : Both : Fa0/1 Destination Ports : Fa0/2 Encapsulation : Native Ingress : Disabled Now connect up your network analyzer into port F0/2 and enjoy! Cloud ComputingCLOUD COMPUTING AND ITS EFFECT ON THE ENTERPRISE NETWORKBasically, cloud computing can provide virtualized processing, storage, and computing resources to users remotely, making the resources transparently available regardless of the user connection. Users connecting to a cloud provider’s network, whether it be for storage or applications, really don’t care about the underlying infrastructure because as computing becomes a service rather than a product, it’s then considered an on-demand resource, described in ![]() Centralization/consolidation of resources, automation of services, virtualization, and standardization are just a few of the big benefits cloud services offer. ![]() Service ModelsCloud providers can offer you different available resources based on your needs and budget. Figure shows the three service models available depending on the type of service you choose to get from a cloud. ![]() You can see that IaaS allows the customer to manage most of the network, whereas SaaS doesn’t allow any management by the customer, and PaaS is somewhere in the middle of the two. Let’s take a look at each service: Software Defined Networking (SDN)Si vous avez travaillé sur des installations Wi-Fi d'entreprise au cours de la dernière décennie, vous auriez conçu votre réseau physique, puis configuré un type de contrôleur réseau gérant tous les points d'accès sans fil du réseau. On peut faire de même pour les routeurs et les switchs, et c'est précisément cette gestion centralisée des trames et des paquets réseau que SDN (Software Defined Networking) nous fournit. SDN (Software Defined Networking) supprime l'intelligence des périphériques réseau en ayant un contrôleur central qui gère le réseau au lieu d'avoir un système d'exploitation complet (Cisco IOS) sur chaque périphérique. À son tour, le contrôleur gère le réseau en automatisant la configuration et les corrections sur tous les périphériques. Ainsi, à la place des périphériques réseau disposant chacun de plans de contrôle individuels, nous disposons désormais d'un plan de contrôle centralisé qui consolide toutes les opérations réseau dans le contrôleur SDN. APPLICATION PROGRAMMING INTERFACES (APIs)APIs permet aux applications de contrôler et de configurer le réseau sans intervention humaine. Les API sont un autre type d'interface de configuration, tout comme les interfaces CLI, SNMP ou GUI, qui facilitent les opérations entre machines. The SDN architecture slightly differs from the architecture of traditional networks by adding a third layer, the application plane, as described her![]() ■ Data (or forwarding) plane Contient des éléments de réseau, c'est-à-dire tout périphérique physique ou virtuel traitant du trafic de données. ■ Control plane c´est généralement une solution logicielle, les contrôleurs SDN résident ici pour assurer un contrôle centralisé des routeurs et des Switch qui peuplent le data plane, en supprimant le control plane de chaque périphérique. ■ Application plane cette nouvelle couche contient les applications qui communiquent leurs exigences réseau vers le contrôleur à l'aide d'API. Cisco APIC-EM Cisco Application Policy Infrastructure Controller Enterprise Module (APIC-EM) est un contrôleur Cisco SDN, qui utilise les API précédemment mentionnées pour la gestion des politiques et la sécurité via un seul contrôleur, en faisant abstraction du réseau et en simplifiant les services. APIC-EM fournit une automatisation centralisée des profils d'application basés sur des règles, et l'interface APIC-EM Northbound est la seule API dont vous aurez besoin pour contrôler votre réseau. APIC-EM est plutôt cool, facile à utiliser, et automatise les tâches que les ingénieurs réseau font depuis plus de 20 ans. À première vue, cela semble remplacer nos emplois actuels et, dans certains cas, les personnes qui résistent au changement seront certainement remplacées. Figure demonstrates exactly where the APCI-EM controller sits in the SDN stack. ![]() APPLICATION PROGRAMMING INTERFACES (APIs)There are two sets of APIs that SDN uses and they are very different.Communication with the data plane is defined with southbound interfaces, while services are offered to the application plane using the northbound interface. Southbound APIsLogical southbound interface (SBI) APIs (or device-to-control-plane interfaces) are used for communication between the controllers and network devices. They allow the two devices to communicate so that the controller can program the data plane forwarding tables of your routers and switches.![]() Northbound APIsTo communicate from the SDN controller and the applications running over the network, you’ll use northbound interfaces (NBIs).![]() In computer networking, DHCP snooping is a series of techniques applied to improve the security of a DHCP infrastructure. DHCP servers allocate IP addresses to clients on a LAN. DHCP snooping can be configured on LAN switches to exclude rogue DHCP servers and remove malicious or malformed DHCP traffic. |