Cisco Shortcut Guide: Difference between revisions
No edit summary |
No edit summary |
||
Line 305: | Line 305: | ||
<br><br><br><br><br><br><br><br><br><br> | |||
== EIGRP == | == EIGRP == | ||
Revision as of 19:57, 23 April 2012
Basic Tips
|
Do you want to get out of a long list without having to scroll through everything? (For example show run)
Are you in a config mode and wish to issue a show command?
Do the following to keep those pesky log messages from disrupting your typing:
|
|
The following examples will have full versions of common commands next to the shortest versions(These will not necessarily work on all versions of routers or switches).
Clear the Configurations
Switch>enable
Switch#erase startup-config Switch#delete flash:vlan.dat (This step only needed for switches that have vlans added) Switch#reload |
Switch>en
Switch#era st Switch#del vlan.dat Switch#rel |
Basic Configurations
Router#configuration terminal
Router(config)#enable secret cisco Router(config)#banner motd #Authorized access only!# Router(config)#line console 0 Router(config-line)#password class Router(config-line)#login Router(config-line)#no ip domain-lookup Router(config)#hostname R1 R1(config)#copy running-config startup-config |
Router#configuration terminal
Router(config)#enable secret cisco Router(config)#banner motd #Authorized access only!# Router(config)#line console 0 Router(config-line)#password class Router(config-line)#login Router(config-line)#no ip domain-lookup Router(config)#hostname R1 R1(config)#copy run start |
Assign Addresses
Router#configuration terminal
Router(config)#interface fastethernet 0/0 Router(config-if)#ip address 192.168.1.1 255.255.255.0 Router(config-if)#description Crossover cable to R2 Router(config-if)#no shutdown Router(config-if)#interface serial 0/0/0 Router(config-if)#ip address 192.168.2.1 255.255.255.0 Router(config-if)#clock rate 64000 Router(config-if)#end Router#show ip interfaces brief |
Router#conf t
Router(config)#int f0/0 Router(config-if)#ip add 192.168.1.1 255.255.255.0 Router(config-if)#des Crossover cable to R2 Router(config-if)#no sh Router(config-if)#int s0/0/0 Router(config-if)#ip add 192.168.2.1 255.255.255.0 Router(config-if)#clock r 64000 Router(config-if)#end Router#sh ip int bri |
RIP
Router(config)#router rip
Router(config-router)#version 2 Router(config-router)#network 192.168.0.0 Router(config-router)#end Router#show ip route Router#show ip protocols |
Router(config)#router rip
Router(config-router)#ver 2 Router(config-router)#net 192.168.0.0 Router(config-router)#end Router#sh ip route Router#sh ip proto |
EIGRP
Router(config)#router eigrp 1
Router(config-router)#network 192.168.0.0 Router(config-router)#no auto-summary Router(config-router)#redistribute static Router(config-router)#ip route 0.0.0.0 0.0.0.0 s0/0/0 |
Router(config)#rout eigrp 1
Router(config-router)#net 192.168.0.0 Router(config-router)#no auto Router(config-router)#red stat Router(config-router)#ip rou 0.0.0.0 0.0.0.0 s0/0/0 |
Switchport Security
Swtich(config)#interface fastethernet 0/6
Swtich(config-if)#switchport mode access Swtich(config-if)#switchport access vlan 10 Swtich(config-if)#switchport port-security Swtich(config-if)#switchport port-security maximum 5 Swtich(config-if)#switchport port-security mac-address 1111.2222.3333 Swtich(config-if)#switchport port-security violation shutdown Swtich(config-if)#do show port-security |
Swtich(config)#interface fastethernet 0/6
Swtich(config-if)#switchport mode access Swtich(config-if)#switchport access vlan 10 Swtich(config-if)#switchport port-security Swtich(config-if)#switchport port-security maximum 5 Swtich(config-if)#switchport port-security mac-address 1111.2222.3333 Swtich(config-if)#switchport port-security violation shutdown Swtich(config-if)#do show port-security |
VTP
Switch(config)#vtp version 2
Switch(config)#vtp mode client Switch(config)#vtp domain CISCO Switch(config)#vtp password cisco Switch(config)#vtp pruning Switch(config)#do show vtp status |
Switch(config)#vtp version 2
Switch(config)#vtp mode client Switch(config)#vtp domain CISCO Switch(config)#vtp password cisco Switch(config)#vtp pruning Switch(config)#do show vtp status |
NAT/PAT
Router(config)#ip nat pool POOL 192.168.100.1 192.168.100.50 netmask 255.255.255.0
Router(config)#access-list 1 permit 172.168.0.0 0.0.0.255 Router(config)#ip nat inside source list 1 pool POOL overload Router(config)#interface fastethernet 0/0 Router(config-if)#ip nat inside Router(config-if)#interface fastethernet 0/0 Router(config-if)#ip nat outside |
Router(config)#ip nat pool POOL 192.168.100.1 192.168.100.50 netmask 255.255.255.0
Router(config)#access-list 1 permit 172.168.0.0 0.0.0.255 Router(config)#ip nat inside source list 1 pool POOL overload Router(config)#interface fastethernet 0/0 Router(config-if)#ip nat inside Router(config-if)#interface fastethernet 0/0 Router(config-if)#ip nat outside |
EIGRP
Router(config)#router eigrp 1
Router(config-router)#network 192.168.0.0 Router(config-router)#no auto-summary Router(config-router)#redistribute static Router(config-router)#ip route 0.0.0.0 0.0.0.0 s0/0/0 |
Router(config)#rout eigrp 1
Router(config-router)#net 192.168.0.0 Router(config-router)#no auto Router(config-router)#red stat Router(config-router)#ip rou 0.0.0.0 0.0.0.0 s0/0/0 |