Engineering Journal
Engineering Journal
show
access-lists List access lists
arp ARP table
buffers Buffer pool statistics
configuration Contents of Non-Volatile memory
controllers Interface controller status
debugging State of each debugging option
dialer Dialer parameters and statistics
extended Extended Interface Information
flash System Flash information
flh-log Flash Load Helper log buffer
history Display the session command history
hosts IP domain-name, lookup style, name servers, and host table
interfaces Interface status and configuration
ip IP information
isdn ISDN information
line TTY line information
logging Show the contents of logging buffers
memory Memory statistics
privilege Show current privilege level
processes Active process statistics
protocols Active network routing protocols
queue Show queue contents
queueing Show queueing configuration
reload Scheduled reload information
route-map route-map information
running-config Current operating configuration
sessions Information about Telnet connections
smf Software MAC filter
stacks Process stack utilization
startup-config Contents of startup configuration
subsys Show subsystem information
tcp Status of TCP connections
terminal Display terminal configuration parameters
users Display information about terminal lines
version System hardware and software status
Cisco>en
Cisco#wr term <--- Shows the running configuration
Building configuration...
Current configuration:
!
version 11.2
no service udp-small-servers
no service tcp-small-servers
!
hostname Cisco
!
interface Ethernet0
ip address 192.168.1.1 255.255.255.0
!
interface Serial0
ip address 192.168.6.1 255.255.255.0
encapsulation frame-relay
frame-relay lmi-type ansi
!
interface Serial1
ip address 192.168.4.2 255.255.255.0
encapsulation frame-relay
bandwidth 1536
keepalive 5
frame-relay map ip 192.168.4.1 101 IETF
!
router rip
version 2
network 192.168.4.0
network 192.168.6.0
neighbor 192.168.6.2
neighbor 192.168.4.1
!
ip classless
ip route 0.0.0.0 0.0.0.0 192.168.6.2
ip route 0.0.0.0 0.0.0.0 192.168.4.1
!
line con 0
line aux 0
line vty 0 4
login
!
end
Router#wr term
interface Ethernet0
ip address 38.150.93.1 255.255.255.0
no ip directed-broadcast
Router#wr term
interface Serial0
ip address 38.21.10.100 255.255.255.0
ip broadcast-address 38.21.10.255
ip access-group 106 in
encapsulation frame-relay
bandwidth 56
no fair-queue
frame-relay map ip 38.21.10.1 500 IETF
Router#wr term
Within the configuration, you will see an ip route section.
Router#wr term
ip access-group 104 in
ip access-group 105 out
This means that access-group 104 is the inbound filter set and
access-group 105 is the outbound filter set.
Then, continue to look in the configuration for the access-list statements:
Router#wr term
interface Serial0
ip address 38.21.10.100 255.255.255.0
ip broadcast-address 38.21.10.255
ip access-group 106 in
encapsulation frame-relay
bandwidth 56
no fair-queue
frame-relay map ip 38.21.10.1 500 IETF
Cisco#config t
Enter configuration commands, one per line. End with CNTL/Z.
Cisco(config)#ip route DEST.DEST.DEST.DEST MASK.MASK.MASK.MASK GATE.GATE.GATE.GATE
where: DEST.DEST.DEST.DEST = The destination network the static route is for
MASK.MASK.MASK.MASK = The subnet mask of the destination network
GATE.GATE.GATE.GATE = The gateway of the static route
Example route statement:
ip route 38.222.75.0 255.255.255.0 38.20.5.1
Cisco(config)#^Z (hit <control> z)
Cisco#wr mem
Building configuration...
[OK]
test.com>en
The password should be the same as the one used to telnet in.
Password:
test.com#show config
NOTE: Record what interface the dialer map IP line is under because you will need to
use that interface when changing the number.
test.com#config t
test.com(config)#interface BRI0
Add in the new dialer map IP line with the new phone number:
test.com(config)# [control] z
Save changes:
test.com#show config
Router#configure terminal
Router(config)#interface Serial0
Router(config-if)#no ip access-group 104 in
Router(config-if)#no ip access-group 105 out
Router(config-if)# Hit CTRL-Z
Router#wr mem
Building configuration...
[OK]
Router#
Router#configure terminal
Router(config)#interface Serial0
Router(config-if)#ip access-group 104 in
Router(config-if)#ip access-group 105 out
Router(config-if)# Hit CTRL-Z
Router#wr mem
Building configuration...
[OK]
Router#
Cisco#ping <hostname>
Example:
Cisco#ping 38.8.14.2
By these command you can see the statistics and different processes of the router.
sh processes - shows active processes running on router
sh process cpu - shows cpu statistics
sh mem - shows memory statistics
sh flash - describes the flash memory and displays the size of files and the amount of free flash
memory
sh buffers - displays statistics for router buffer pools; shows the size of the Small, Middle, Big,
Very Big, Large and Huge Buffers
sh stacks - shows reason for last reboot, monitors the stack use of processes and interrupts
routines
IP Commands
CDP Commands (Cisco Discovery Protocol uses layer 2 multicast over a SNAP-capable link to
send data):
IPX Commands
Other Commands:
Routing Protocols
RIP, IGPR and OSPF are the routing protocols and here is a list of the commands for the
working on the routing protocols.
Configure RIP:
router rip
network 157.89.0.0
network 208.1.1.0
Other RIP Commands:
debug ip rip - view RIP debugging info
Configure IGRP:
router IGRP 200
network 157.89.0.0
network 208.1.1.0
Other IGRP Commands:
debug ip igrp events - view IGRP debugging info
debug ip igrp transactions - view IGRP debugging info
Access Lists
Here is a list of the Access list command of a router.
sh ip int ser 0 - use to view which IP access lists are applies to which int
sh ipx int ser 0 - use to view which IPX access lists are applies to which int
sh appletalk int ser 0 - use to view which AppleTalk access lists are applies to which int
View access lists:
sh access-lists
sh ip access-lists
sh ipx access-lists
sh appletalk access-lists
Apply standard IP access list to int eth 0:
access-list 1 deny 200.1.1.0 0.0.0.255
access-list 1 permit any
int eth 0
ip access-group 1 in
Apply Extended IP access list to int eth 0:
access-list 100 deny tcp host 1.1.1.1 host 2.2.2.2 eq 23
access-list 100 deny tcp 3.3.3.0 0.0.0.255 any eq 80
int eth 0
ip access-group 100 out
Apply Standard IPX access list to int eth 0:
access-list 800 deny 7a 8000
access-list 800 permit -1
int eth 0
ipx access-group 800 out
Apply Standard IPX access list to int eth 0:
access-list 900 deny sap any 3378 -1
access-list 900 permit sap any all -1
int eth 0
ipx access-group 900 out
WAN Configurations Commands
Networking over WAN is the main functionality of a router. The most common use of a router is
for the WAN connectivity. Here is a list of the commands for the different methods of the WAN
connectivity.
PPP Configuration
Point to point protocol is a method for the WAN connectivity and you will find here some
commands of PPP.
encapsulation pppppp authentication <chap or pap here>
ppp chap hostname <put router name here>
ppp pap sent-username <put user name here>
sh int ser 0 - use to view encapsulation on the interface
Frame-Relay Configuration
One of the methods for the WAN connectivity is the Frame Relay. Find here some basic
commands for the WAN connectivity through Frame Relay.
encapsulation frame-relay ietf - use IETF when setting up a frame-relay network between a
Ciscorouter and a non-Cisco router
frame-relay lmi-type ansi - LMI types are Cisco, ANSI, Q933A; Cisco is the default; LMI type is
auto-sensed in IOS v11.2 and up
frame-relay map ip 3.3.3.3 100 broadcast - if inverse ARP won't work, map Other IP to Your
DLCI # (local)
keep alive 10 - use to set keep alive
sh int ser 0 - use to show DLCI, LMI, and encapsulation info
sh frame-relay pvc - shows the configured DLCI's; shows PVC traffic stats
sh frame-relay map - shows route mapssh frame-relay lmi - shows LMI info
Miscellaneous Commands
In the last but not least here is a list of the some miscellaneous and useful commands
sh controller t1 - shows status of T1 lines
sh controller serial 1 - use to determine if DCE or DTE device
(config-if)#clock rate 6400 - set clock on DCE (bits per second)
(config-if)#bandwidth 64 - set bandwidth (kilobits)
There are two main EXEC modes for entering the Cisco switch commands:
User Mode
Privileged Mode
There are two primary methods for accessing a Cisco manageable switch to use command line
interface.
Telnet is a utility used for remotely login to a device. To telnet a Cisco IOS switch from your
computer, you have to type the following command on the CMD terminal of your computer:
Telnet 192.168.0.253
Followings are some basic commands of Cisco Catalyst 1900 switch commands:
Show running-config: This command displays the memory status of the Cisco Catalyst
1900 switch
Show interfaces: This command displays the detailed information about all the
interfaces of Cisco Catalyst 1900 switch.
Show interfaces Ethernet 0/1: This command displays the detailed information
about a specific 10baseT Ethernet interface of the Cisco Catalyst 1900 switch
Show interfaces Fast Ethernet 0/26: This command displays the detailed information
about a specific 100baseT Fast Ethernet interface of the Cisco Catalyst 1900 switch
Show ip: This command displays the ip configuration of the Cisco Catalyst 1900
switch
Show Mac-address-table security: This command displays the address table size and
the addressing security of each interface of the Cisco Catalyst 1900 switch.
Show VLAN: This command displays the status of current VLANs enabled on the Cisco
Catalyst 1900 switch.
Show VLAN-membership: This command displays the VLAN membership of all the
ports on the Cisco Catalyst 1900 switch.
Show Spantree 1: This command displays the complete information about the spanning
tree protocol 1 that is by default enabled on the Cisco Catalyst 1900 switch.
Copy nvram tftp: //host/dst_file: This command is used to send the configuration to a
TFTP server.
Copy tftp: //host/src_file nvram: This command is used to download the configuration
from a TFTP server.
Delete nvram: This command is used to reset the system configuration to factory
defaults.
Show version: This command displays the hardware and software status of the Cisco
switch
Show flash: This command displays the files and directories in the flash of the Cisco
switch
Show interfaces: This command displays the detailed information about all the
interfaces of the Cisco switch
Show interfaces fast Ethernet 0/x: This command displays the detailed information
about the specific interface of the Cisco switch
Show-mac-address-table: This command displays the MAC address of the devices that
are directly connected with any port of the switch.
Show port-security: [interface] [address]: This command displays the port security
options on the interface
Show history: This command displays the last ten commands that are executed in the
switch configuration
Show line: This command is used to view the brief information about all the lines of the
Cisco switch
Show line console 0: This command is used to view the detailed information about the
specific line of the Cisco switch
Erase startup-config: This command is used to erase the nvram of the Cisco switch
Configure terminal: This command is used to enter in the global configuration mode of
the Cisco switch
Hostname: This command is used to assign the hostname of the Cisco switch
Enable password: This command is used to set the enable password of the Cisco switch
Enable secret: This command is used to set the encrypted password of the Cisco switch
that is used for entering in the privileged mode
Interface VLAN 1: This is a global configuration command used to configure the VLAN
interface of the Cisco switch
Interface fast Ethernet 0/x: This command is used to configure the specific interface of
the Cisco switch
IP address: This command is used to configure the ip address of any interface of the
Cisco switch
Speed: This command is used to set the speed for the interface of the Cisco switch
Duplex: This command is used to set the duplex setting for the interface of the Cisco
switch
Line console 0: This command is used to enter in the specific line configuration mode of
the Cisco switch
Password: This command is used to set the password of any line of the Cisco switch