Académique Documents
Professionnel Documents
Culture Documents
COM
Home
IOS Commands
Router modes Modes Router> Router# Router(config)# Description User mode Privileged mode Global configuration mode
Router(config-if)# Interface mode Basic IOS Commands Command Enable Disable Config Terminal Hostname Banner Enable Password Enable Secret Line Aux Description Puts you into privileged mode Takes you from privileged mode back to user mode Syntax Router>enable Router>disable
Puts you in global configuration mode and Router #config t change the running-config Sets the name of a router Creates a banner for users who log into the router Sets the encrypted enable password Sets the encrypted enable secret. Supersedes the enable password if set Puts in the auxiliary interface configuration mode Router(config)#hostname R1 Router(config)#banner motd # Router(config)#enable password Router(config)#enable secret Router(config)#line aux 0 Router(config-line)#login Router(config)# password cisco
Line Console 0
Line Vty
Router(config)#service passwordencryption
Changes your history size from the default Router#terminal history size 25 of 10 up to 256
Tests IP connectivity and configures a router Tests IP connectivity Puts you in interface configuration mode for a fast Ethernet port
Telnet [destination ip] Router#telnet 172.16.10.2 Ping [destination ip] Router#ping 172.16.10.2 Router(config)#int fa 0/0 Router(config)#int serial 1
Interface Serial 1 Puts you in configuration mode for interface serial 1 and can be used for show commands Ip Address Bandwidth Copy Run Start Erase Startup Sets an IP address on an interface Sets the bandwidth on a serial interface Short for copy running-config, startupconfig. Places a configuration into NVRAM Deletes the startup-config
Router(config)#ip address 172.16.10.2 255.255.255.0 Router(config-if)#bandwidth 64 Router#copy run start Router#erase startup-config Router#sh controllers s 0
Show Controllers Show the DTE or DCE status of an S0 interface Show History
Shows you the last 10 commands entered Router#sh history by default Router#sh int s 0 Router#sh run
Show Interface S Shows the statistics of interface serial 0 0 Show Run Short for show running-config. Shows the configuration currently running on the router Short for show startup-config. Shows the backup configuration stored in NVRAM Shows you your configured history size Shows you statistic of the router
IP Routing Commands Command Ip route Description Creates static and default routes on a router Syntax Ip route [destination_network] [mask] [next_hop_address or exit interface] [administrative_distance] [permanent] Example: Router(config)#ip route 172.16.20.0 255.255.255.0 172.16.10.2 No ip route Router RIP Network Removes a static default rout Turns on ip rip routing on a router Tells the routing protocol what network to advertise Router(config)#no ip route 172.16.20.0 255.255.255.0 172.16.10.2 Router(config)#router rip Router(config-if)#network 172.16.20.0
Router igrp AS Turns on ip igrp routing on a router Debug ip rip Sends console messages displaying information about rip packets being sent and received on a router interface Provides a summary of the igrp routing information running on the network
Shows message requests from Router#debug ip igrp transactions neighbor routes asking for an update and the broadcast sent from your router to that neighbor router Displays the ip routing table Router#sh ip route Router#sh protocols
Show ip route
Show protocols Shows the routed protocols and network addresses configured on each interface Show ip protocols Shows the routing protocols and timers associated with each routing protocol configured on a router
Router#sh ip protocols
Managing Internet work Command Cdp enable No cdp enable Cdp run No cdp run Cdp hold time Cdp timer Clear line Config-register Copy flash tftp Copy run start Copy run tftp Copy tftp flash Copy tftp run Erase startupconfig Description Turns on cdp on an individual interface Turns off cdp on an individual interface Turns on cdp on a router Turns off cdp completely on router Changes the hold time of cdp packets Changes the cdp update timer Clears a connection connected via telnet to your router Tells the router how to boot and to change the configuration register setting Copies a file from flash memory to a tftp host Copies the running-config file to the startupconfig file Copies the running-config file to a tftp host Copies a file from a tftp host to flash memory Copies a configuration from a tftp host to the running-config file Deletes the contents of NVRAM on a router Syntax Router#cdp enable Router#no cdp enable Router#cdp run Router#no cdp run Router(config)#cdp hold time 240 Router(config)#cdp timer 90 Router#clear line 2 Router(config)#config-register 0x0101 Router# copy flash tftp Router#copy run start Router#copy run tftp Router#copy tftp flash Router#copy tftp run Router#erase startup-config
Ip host
Removes a hostname from a host table Displays the cdp timer and hold time frequencies
Router(config)#no ip host router2 172.16.10.2 Router #sh cdp Router #sh cdp entry Router #sh cdp interface Router #sh cdp nei Router #sh cdp neighbor detail
Show cdp entry Same as show cdp neighbor detail, but does not work on a 1900 switch Show cdp interface Show cdp neighbor Show cdp neighbor detail Shows the individual interfaces enabled with cdp Shows the directly connected neighbors and the details about them Shows the ip address and IOS version and type, and includes all of the information from the show cdp neighbor command Shows the cdp packets sent and received on a device and any errors Shows the files in flash memory Shows the contents of the host table Shows your connections via telnet to remote device
HOME
CONTACT US
ADD TO FAVOURITES