RESEAUXIP ET ADMINISTRATION RESEAUX SOUS IOS CISCO RĂ©seaux Internes/Adressage privĂ©/NAT-PAT 802.1Q, Stick Routing, Switch L3 DURĂE 3 HEURES Au cours de ce TP vous allez configurer les fonctions NAT/PAT sur les routeurs dâaccĂšs Ă lâInternet (lâInternet est simulĂ© par les trois routeurs ISP). Vous allez aussi dĂ©finir des VLAN dans les rĂ©seaux internes deYou are here Home / Cisco Routers / Cisco Router Configuration Commands â CLI Cheat Sheet In a previous post, I have published a Cisco Switch Commands Cheat Sheet tutorial. Since these kinds of posts are useful as a reference for many people, I have decided to create also a Cisco Router Commands Cheat Sheet with the most useful and the most frequently used Command Line Interface CLI configuration commands for Cisco Routers. Cisco IOS routers are probably the most complete, versatile and feature-rich networking devices. There are whole books written about Cisco router configurations and commands. Therefore itâs not possible to create a cheat sheet with all of the CLI commands of Cisco routers in one blog post. However, the list below I believe summarizes the most important ones so its a good starting point for a networking professional. Although there is a wide range of Cisco router models, the commands below will work on most devices running IOS with no problems. Make sure to download the cheat sheet in PDF format for future reference by subscribing above. Show/Verification Commands Routershow version [Displays information about running IOS version, hardware model etc] Routershow flash [Displays information about Flash memory] Routershow ip interface brief [Displays interface status and IP addresses for all interfaces] Routershow ip protocols [Displays configured routing protocols such as RIP,EIGRP, OSPF etc] Routershow ip route [Displays the routing table] Routershow cdp neighbors [Displays information about directly connected devices] Routershow cdp neighbors detail [Displays Detailed information about neighboring connected devices] Routershow running-config [Displays currently running configuration] Routershow startup-config [Displays configuration in NVRAM which will be loaded after reboot] Routershow history [Displays all commands in the history buffer] Routershow tech-support [Send the output of this command to Cisco tech support when you open a support ticket in TAC] Saving and Deleting Configurations Routercopy running-config startup-config [Save the running config to NVRAM to be used at next reboot ] Routercopy running-config tftp [Copy the running config to a TFTPserver for backup] Routercopy tftp running-config [Load the saved configuration from TFTP server to DRAM] Routererase startup-config [Delete the startup config from NVRAM Device Name Routerconfighostname MyRouter [Set hostname for the router] Device Security Commands MyRouterconfigenable secret test1 [Sets encrypted secret password for Privilege exec mode âenableâ mode] MyRouterconfig line con 0 MyRouterconfig password strongconsolepass MyRouterconfig login [Secure the console with a password] MyRouterconfig line vty 0 4 MyRouterconfig password strongtelnetpass MyRouterconfig login [Secure the telnet terminal lines with a password] MyRouterconfig service password-encryption [Encrypt all passwords on the device] Configuring Router Interfaces Serial interfaces MyRouterconfiginterface s0/0/0 [Entering into serial interface s0/0/0 configuration mode] MyRouterconfig-ifip address [Set ip address and subnet mask on the interface] MyRouterconfig-ifclock rate 64000 [Assign a clock rate] MyRouterconfig-ifno shut [Turns the interface on] Ethernet Ports MyRouterconfigint f0/1 [Entering into ethernet interface fastethernet0/1 configuration mode] MyRouterconfig-ifip address [Set ip address and subnet mask on the interface]] MyRouterconfig-ifno shut [Turns the interface on] Configure Routing Static Routing 1st method MyRouterconfigip route [ Network , = subnet mask of destination network , = next-hop address] 2nd method MyRouterconfigip route serial 0/0/0 [Same as above but instead of gateway you specify the exit interface] MyRouterconfigip route 150 [Set administrative distance of 150 if needed. For static route, default is 1] Default routing MyRouterconfigip route [Send all packets destined for a network not in the routing table to hop] OR MyRouterconfigip route serial 0/0/0 [Send all packets destined for network not in the routing table out serial 0/0/0 interface] Dynamic Routing RIP version 1 MyRouterconfigrouter rip [Enable RIP as routing Protocol] MyRouterconfig-routernetwork [ is the directly connected network we want to advertise] RIP version 2 MyRouterconfigrouter rip [Enable RIP as routing Protocol] MyRouterconfig-routerversion 2 [Enable RIP version 2. Version 1 is default] MyRouterconfig-routernetwork [ is the directly connected network we want to advertise] MyRouterconfig-routerno auto-summary [Turns off auto-summarization- optional] MyRouterconfig-routerauto-summary [Turns on auto summarization â optional] RIP Verification Commands MyRoutersh ip route MyRoutersh ip rip database MyRoutersh ip route rip EIGRP MyRouterconfigrouter eigrp 10 [Enable EIGRP process. 10 is autonomous system AS number, AS can be any number b/w 1 and 65535. All routers should be in the same AS to build a neighbor relationship.] MyRouterconfig-routernetwork [ is the network to advertise] MyRouterconfig-routerno auto-summary [Turns off the auto-summarization â Optional] EIGRP verification commands MyRoutershow ip eigrp neighbors [Displays neighbor table] MyRoutershow ip eigrp interfaces [Displays information for each interface running EIGRP] MyRoutershow ip eigrp topology [Displays the topology table. Shows feasible successors] OSPF MyRouterconfigrouter ospf 10 [Enables OSPF process number 10. Process ID is any number b/w 1-65535. It doesnât need to be matched with neighbor routers] MyRouterconfig-routernetwork area 0 [Any interface with an address of is to be put into AREA 0 and will advertise and receive OSPF routes] OSPF Authentication Simple MyRouterconfigrouter ospf 10 MyRouterconfig-routerarea 0 authentication [Enables simple authentication. Password will be sent in clear text] MyRouterconfig-routerexit MyRouterconfigint s0/0/0 MyRouterconfig-ifip ospf authentication-key 1234 [Sets password to 1234 for AREA 0 authentication] MD5 Encryption MyRouterconfigrouter ospf 10 MyRouterconfig-routerarea 0 authentication message-digest [Enables MD5 password encryption] MyRouterconfig-routerexit MyRouterconfigint s0/0/0 MyRouterconfig-ifip ospf message-digest-key 10 md5 1234 [10 is the key id. This value must be the same on neighboring routers. Md5 indicates that MD5 algorithm is used and 1234 is the password and must be same on the neighboring routers] OSPF Verification Commands MyRoutershow ip ospf [Displays basic configured ospf information] MyRoutershow ip ospf interfaces [Displays OSPF interfaces information] MyRoutershow ip ospf neighbor [Displays all ospf neighbors and their states] MyRoutershow ip route ospf [Show routes learned by ospf] Configure Access Control Lists MyRouterconfig access-list 101 deny tcp any eq 80 MyRouterconfig access-list 101 permit ip any any [Configure an extended ACL to deny access to port 80 for network and allow everything else] MyRouterconfig interface fastEthernet 1/0 MyRouterconfig-if ip access-group 101 in [Apply ACL 101 in the inbound direction on interface fe1/0] Configure Network Address Translation NAT Dynamic NAT overload PAT MyRouterconfig interface fastEthernet 1/0 MyRouterconfig-if ip nat inside [Specify which interface will be the inside for NAT, the source IPs of packets coming to this interface will be translated] MyRouterconfig interface fastEthernet 1/1 MyRouterconfig-if ip nat outside [Specify which interface will be the outside for NAT, packets going out from this interface will be translated] MyRouterconfig access-list 1 permit MyRouterconfig ip nat inside source list 1 interface fastEthernet 1/1 overload [Access list 1 specifies that inside source network will be translated to the IP address of fastEthernet1/1. Very useful for providing internet access to internal private addresses] Static NAT MyRouterconfig interface fastEthernet 1/0 MyRouterconfig-if ip nat inside MyRouterconfig interface fastEthernet 1/1 MyRouterconfig-if ip nat outside [Define again the inside and outside NAT interfaces] MyRouterconfig ip nat inside source static [Private IP will be translated statically to Public IP one-to-one mapping] DOWNLOAD THE CHEAT SHEET AS PDF FILE Related Posts Comparison of Static vs Dynamic Routing in TCP/IP Networks Cisco OSPF DR-BDR Election in Broadcast Networks â Configuration Example How to Configure Port Forwarding on Cisco Router With Examples Adjusting MSS and MTU on Cisco 800 routers for PPPoE over DSL The Most Important Cisco Show Commands You Must Know Cheat Sheet
Note Make sure that the routers and switch have been erased and have no startup configurations. If you are unsure, contact your instructor. Required Resources âą 2 Routers (Cisco 1941 with Cisco IOS Release 15.2(4)M3 universal image or comparable) âą 1 Switch (Cisco 2960 with Cisco IOS Release 15.0(2) lanbasek9 image or comparable)
Viewcommandes cisco du CSC MISC at HEC MAROC. Commandes Cisco CCNA Exploration Introduction Cette documentation regroupe toutes les commandes utilisĂ©es sur les routeurs etFormulaireIOS Cisco â Patrick GIRARD / IP Training â Formation ISMIN 1 Configuration NAT/PAT â Mode configuration Configurer NAT (dĂ©but de commande) ip nat inside source PAT dynamique list NatList int s0/1/0 overload NAT statique static 92.126.97.164 PAT statique (redirection de port) static tcp 192.168.1.1 80 81.1.0.1 80 Liste de contrĂŽle pour le