Sie sind auf Seite 1von 2

Commands for Basic Router Configuration Router# configure terminal Moves into global configuration mode Router(config)# hostname

CISCO Names the router with the name CISCO; name can be anything you want Router(config)# enable secret class Sets the enable password to class and encrypts it Router(config)# banner motd Configures a message-of-the-day banner that #Authorized Access Only# uses # as the delimiting character and displays the following when users attempt to log in: Authorized Access Only Router(config)# line console 0 Enters console line configuration mode Router(config-line)# password cisco Sets the console password to cisco Router(config-line)# login Enables password checking when users log in Router(config)# line vty 0 4 Enters vty line configuration mode for five vty lines Router(config)# interface fa 0/0 Enters interface configuration mode for Fa0/0 Router(config-if)# ip address Sets an interface address as 192.168.1.1/24 192.168.1.1 255.255.255.0 Cisco IOS CLI EXEC Flash NVRAM RAM Router> Router# Router(config)# Router(config-if)# - Cisco Internetworking Operating System - Command Line Interface

Router(config-if)# description Link to ISP Configures an interface with the text Link to ISP, which is used to describe the purpose of the link Router(config-if)# clock rate 64000 Configures the DCE side of the link to clock bits at 64,000 bps Router(config-if)# no shutdown Activates an interface Router# show interfaces Displays detailed information and statistics about all interfaces Router# show ip interface brief Displays a summary of all interfaces, including status and IP address assigned Router# show ip route Displays the routing table Router# show version Displays the version of the software currently running on the router Router# copy running-config startup-config Saves the current configuration to NVRAM Router# show running-config Displays the current configuration in RAM Router# show startup-config Displays the configuration saved in NVRAM

- Command line session to the router (could be console, modem, or telnet) - Non-Volatile Memory used to store IOS software image - Non-Volatile RAM used to store router configuration - Random Access Memory - User EXEC mode - Privileged EXEC mode - Configuration mode (notice the # sign indicates this is only accessible at privileged EXEC mode.) - Interface level within configuration mode.

Router(config-router)# - Routing engine level within configuration mode. Router(config-line)# Delete Backspace TAB Ctrl-A Ctrl-R Ctrl-U Ctrl-W Ctrl-Z Up Arrow Down Arrow - Line level (vty, tty, async) within configuration mode. - Removes one character to the right of the cursor. - Removes one character to the left of the cursor. - Finishes a partial command. - Moves the cursor to the beginning of the current line. - Redisplays a line. - Erases a line. - Erases a word. - Ends configuration mode and returns to the EXEC. - Allows user to scroll forward through former commands. - Allows user to scroll backward through former commands.

Router> enable Router# configure terminal Router(config)# enable secret cisco Router(config)# ip route 0.0.0.0 0.0.0.0 20.2.2.3 Router(config)# interface ethernet0 Router(config-if)# ip address 10.1.1.1 255.0.0.0 Router(config-if)# no shutdown Router(config-if)# exit Router(config)# interface serial0 Router(config-if)# ip address 20.2.2.2 255.0.0.0 Router(config-if)# no shutdown Router(config-if)# exit Router(config)# router rip

- switches to privileged EXEC level - switches to global configuration level - configures router with an enable secret (global) - configures a static IP route (global) - switches to configure the ethernet0 interface - configures an IP address on ethernet0 (interface) - activates ethernet0 (interface) - exits back to global configuration level - switches to configure the serial0 interface - configures an IP address on serial0 (interface) - activates serial0 (interface) - exits back to global configuration level - switches to configure RIP routing engine

Router(config-router)# network 10.0.0.0 Router(config-router)# network 20.0.0.0 Router(config-router)# exit Router(config)# exit Router# copy running-config startup-config Router# disable Router> Requirement Set a console password to cisco

- adds network 10.0.0.0 to RIP engine (routing engine) - adds network 20.0.0.0 to RIP engine (routing engine) - exits back to global configuration level - exits out of configuration level - saves configuration into NVRAM - disables privileged EXEC level - indicates user is back to user EXEC level Cisco Command Router(config)#line con 0 Router(config-line)#login Router(config-line)#password cisco Router(config)#line vty 0 4 Router(config-line)#login Router(config-line)#password cisco Router(config)#line con 0 Router(config-line)#exec-timeout 0 0 Router(config)#enable password cisco Router(config)#enable secret peter Router(config-if)#no shutdown Router(config-if)#shutdown Router(config-if)clock rate 64000 Router(config-if)bandwidth 64 Note that the zeroes are not missing Router(config-if)#ip addr 10.1.1.1 255.255.255.0 Router(config)#router rip Router(config-router)#network 172.16.0.0 Router(config)#no router rip Router(config)#router igrp 200 Router(config-router)#network 172.16.0.0 Router(config)#no router igrp 200 Router(config)#ip route 172.16.1.0 255.255.255.0 172.16.2.1 5 Router(config)#no cdp run Router(config)#cdp run Router(config-if)#no cdp enable Cisco Command show version show running-config show startup-config show flash show log show interface e0 show ip interfaces brief show controllers 0 (note the space between the 's' and the '0') show cdp neighbor show cdp entry * show ip protocols show ip route show access-lists show isdn status show frame-relay pvc show frame-relay lmi show frame-relay map

Set a telnet password

Stop console timing out Set the enable password to cisco Set the enable secret password to peter. This password overrides the enable password and is encypted within the config file Enable an interface To disable an interface Set the clock rate for a router with a DCE cable to 64K Set a logical bandwidth assignment of 64K to the serial interface To add an IP address to a interface To enable RIP on all 172.16.x.y interfaces Disable RIP To enable IRGP with a AS of 200, to all interfaces Disable IGRP Static route the remote network is 172.16.1.0, with a mask of 255.255.255.0, the next hop is 172.16.2.1, at a cost of 5 hops Disable CDP for the whole router Enable CDP for he whole router Disable CDP on an interface Requirement View version information View current configuration (DRAM) View startup configuration (NVRAM) Show IOS file and flash space Shows all logs that the router has in its memory View the interface status of interface e0 Overview all interfaces on the router View type of serial cable on s0 Display a summary of connected cdp devices Display detailed information on all devices Display current routing protocols Display IP routing table Display access lists, this includes the number of displayed matches Check the router can see the ISDN switch Check a Frame Relay PVC connections show lmi traffic stats Display the frame inverse ARP table

Das könnte Ihnen auch gefallen