Sei sulla pagina 1di 1

BASIC ROUTER OPERATION AUTO INSTALL

To get to the user mode Press enter (and a password if required) Router broadcasts to get its own TCP/IP addressing BOOTP
To get to te privileged mode Router>enable Router broadcasts again to locate the file server ip addr TFTP
To get back to the user mode Router#disable
Break key <shift>+<ctrl>+6 ‘x’ CONFIGURING A SERIAL INTERFACE
Move to the begin of the cmd line Ctrl+A Is it DTE or DCE? Router# Show controller serial 0/0
Move to the end of the cmd line Ctrl+E Enter sub interface mode Router (config)#interface serial 0/0
To move forward one character Ctrl+F (or right arrow key) Set clock rate on DCE Router(config-if)#clockrate 64000
To move back one character Ctrl+B (or left arrow key) Set the bandwidth Router(config-if)#bandwidth 64
To repeat the previous cmd Ctrl+P (or up arrow) Enable the interface Router(config-if)#no shutdown
To exit the router Router>Exit (or logoff) Check the interface status Router#show interface serial 0/0
To repeat the most recent (last) cmd Ctrl+N (or down arrow) Router#show ip interface brief
To move back one word Esc+B
To move forward one word Esc+F TCP/IP CONFIGURATION
To erase a word Ctrl+W Disable IP routing on a router Router(config)#no ip routing
To erase a line Ctrl+U Put an IP address on an interface Router(config)#interface FA 0/0
To redisplay a line Ctrl+R Router(config-if)#ip address 208.10.10.3 SNM
To auto complete a cmd <tab> Router(config-if)#exit
Configure RIP Router(config)#router rip
To end config mode and return to privileged Router#Ctrl+Z Router(config-router)network (net id neighbor)
To show the command buffer Router>show history Router(config-router)network (net id neighbor)
To set the command buffer size Router>terminal history size Disable RIP routing Router(config)#no router rip
To disable advanced editing features Router>terminal no editing Configure IGRP Router(config)#router igrp 300
T re-enable advanced editing features Router>terminal editing Router(config-router)network (net id neighbor)
Router(config-router)network (net id neighbor)
VIEWING ROUTER INFORMATION Disable IGRP routing Router(config)#no router igrp 300
View IOS version Router#show version View the IP routing table Router#show ip route
View current configuration file (RAM) Router#show running-config View RIP debug Router#debug ip rip
View saved configuration file (NVRAM) Router#show startup-config View IGRP debug Router#debug ip igrp events
View IOS version, size of IOS and free space Router#show flash Router# debug ip igrp transactions
View CPU utilization Router#show processes cpu
View info about programs in RAM Router#show processes CONFIGURATION-REGISTER
Display interfaces on router and their status Router#show interface ROM monitor mode (prompt will be > or rommom> Router(config)#config-reg 0X000
Display the IP interf on router and their status Router#show ip interface Boot from ROM and enter RXBOOT mode Router(config)#config-reg 0X001
Display which protocols are configured Router#show protocol Boot from ROM and check NVRAM for startup cmds Router(config)#config-reg 0X002/F
Display IP protocol info Router#show ip protocol RXboot (diagnostics mode, use b to continue boot) Router(config)#config-reg 0X2000
Boot from ROM use NVRAM (upgrade flash in run) Router(config)#config-reg 0X2101
CISCO DISCOVERY PROTOCOL Boot from ROM skip NVRAM (disaster recovery) Router(config)#config-reg 0X2141
View info over neighboring Cisco devices Router#show cdp neighbors (detail) Boot from Flash use NVRAM (normal procedure) Router(config)#config-reg 0X2102
View interface info, default encap,cdp update Router#show cdp interface Boot from Flash skip NVRAM (password recovery) Router(config)#config-reg 0X2142
View a neighbors detail Router#show cdp entry RouterB
View cdp update and holdtime freq Router#show cdp ACCES LISTS
Change update freq Router#cdp timer 90 (60 = default) <1-99> <1300-1999> IP standard access list
Change the cdp holdtime entry of a neighbor Router#cdp holdtime 240 <100-199> <2000-2699> IP extended access list
Turn off cdp on an interface Router(config-if)#no cdp enable <200-299> Protocol type-code access list
Cdp is enabled globally, cdp enabled by default Router(config )#cdp run <300-399> DECnet access list
<400-499> XNS standard access list
MANAGING CONFIGURATION FILES <500-599> XNS extended access list
Run the initial configuration dialog Router#setup <600-699> Apple talk access list
Reboot and reload the startup config(NVRAM) Router#reload <700-799> 48 bit MAC address list
Enter global configuration mode Router#configure terminal <800-899> IPX standard access list
Copy config file from RAM to NVRAM Router#cpoy running-config startup-config <900-999> IPX extended access list
Copy config file from NVRAM to RAM Router#copy startup-config running-config <1000-1099> IPX SAP access list
Erase the configuration file in NVRAM Router#erase startup-config <1100-1199> Extended 48 bit MAC address
Copy startup-config file from TFTP to NVram Router#copy tfpt startup-config <1200-1299> IPX summary address access list
Copy startup-config file from NVram to TFTP Router#copy startup-config tftp View which lists are applied to an interface Router#show ip interface serial 0/0
Copy startup-config file from TFTP to RAM Router#copy tftp running-config View all access lists on the router Router#show access-lists
Copy startup-config file from RAM to TFTP Router#copy running-config tftp View IP access list only Router#show IP access-lists
Backup the IOS to file server Router#copy flash tftp
Upgrade the IOS from a fileserver Router#copy tftp flash IP STANDARD ACCESS-LISTS (1-99 & 1300-1999)
Tell router which IOS file in flash to boot from Router(config)#boot system flash (name) Deny 211.1.1.0/24 on port FA 0 Router(config)#access-list 1 deny 211.10.10.0 0.0.0.255
Tell router which IOS to request from the tftp Router(config)#boot system tftp (name) ip Permit all others Router(config)#access-list 1 pemit any
Tell router to boot from IOS in ROM Router(config)#boot rom any = (0.0.0.0 255.255.255.255)
Apply the access list to an if Router(config-if)#ip access-group 1 in/out
PASSWORD Deny host 211.1.1.2/24 on FA 0 Router(config)#access-list 8 deny host 211.1.1.2
Set the “enable” secret password Router(config)#enable secret cisco Permit all others Router(config)#access-list 8 pemit any
Set the “enable” password Router(config)#enable cisco Apply the access list to an if Router(config-if)#ip access-group 8 in/out
Set the console port password Router(config)#line con 0
Router(config-line)#login IP EXTENDED ACCESS-LISTS (100-199 & 2000-2699)
Router(config-line)#password class -Deny www access to all hosts on the netw 4.4.4.0
Set the password for Telnet Router(config)#line vty 0 4 -Router(config)#access-list 101 deny tcp 4.4.4.0 0.0.0.255 any eq 80/www/ftp/.ftp-data
Router(config-line)#login >Stop host 2.2.2.2 from telneting to host 3.3.3.3 via if FA 0
Router(config-line)#password class >Router(config)#access-list 101 deny tcp host 2.2.2.2 host 3.3.3.3 eq 23
Set the password for Auxiliary port Router(config)#line aux 0 >Permit access to vty lines Router(config-if)#ip access-class 101
Router(config-line)#login Permit all others Router(config)#access-list 101 ip pemit any any
Router(config-line)#password class Apply the access list to an if Router(config-if)#ip access-group 101 in/out
To encrypt passwords Router(config)#service password-encryption
To de-encrypt passwords Router(config)#no service password-encryption
WILDCARDMASK 0 . 0 . 0 ..255
ROUTER IDENTIFICATION SUBNETMASK 255.255.255. 0
Message of the day MOTD Router(config)#banner motd #message#
Give the router a hostname Router(config)#hostname Lab_A /30 = WCM 3 /27 = WCM 31 /24 = WCM 255
Name a link (description) Router(config-if)#description ………….. /29 = WCM 7 /26 = WCM 63 /23 = WCM 511
/28 = WCM 15 /25 = WCM 127 /22 = WCM 1023

Potrebbero piacerti anche