Home | Site Map | Cisco How ToNet How To | Wireless |Search | Forums | Services | Donations | Careers | About Us | Contact Us|

Cisco useful commands

Cisco Router, Firewall, VPN, SDM, ASA and Switch

Cisco useful commands

Postby blin » Mon Nov 16, 2009 8:58 pm

Web Cisco Useful Commands ...
Useful Commands. Can I schedule to reload Cisco PIX · Command to find devices directly connected Cisco equipment · How to schedule to reload Cisco router ...
www.howtocisco.com/cisco/usefulcommands.htm

"term mon" - show real time log, use
How to Configure and Troubleshoot Cisco
http://www.howtocisco.com

Tablet and Smartphone Setup Guide
http://www.quicksetupguide.com
blin
Site Admin
 
Posts: 2364
Joined: Wed Dec 31, 1969 7:00 pm
Location: Chicago, USA

Re: Cisco useful commands

Postby lifelong76 » Mon Feb 22, 2010 4:05 am

Hi according to me one of the most important abilities a network administrator can have is the know-how to get information out of his network devices so he can find out what's going on with the network. In most networks, the staple of information gathering has been the "show" commands. Here are my top ten commands to know and love:
• Show version: Start simple; this command gives up time, info about your software and hardware and a few other details.
• Show ip interface brief: This command is great for showing up/down status of your IP interfaces, as well as what the IP address is of each interface. It's mostly useful for displaying critical info about a lot of interfaces on one easy to read page.
• Show interface: This is the more popular version of the command that shows detailed output of each interface. You'll usually want to specify a single interface or you'll have to hit 'page down' a lot. This command is useful because it shows traffic counters and also detailed info about duplex and other link-specific goodies.
• Show ip interface: This often overlooked command is great for all the configuration options that are set. These include the switching mode, ACLs, header compression, ICMP redirection, accounting, NAT, policy routing, security level, etc. Basically, this command tells you how the interface is behaving.
• Show ip route: This indispensable command shows your routing table, which is usually the primary purpose of the box. Get to know the options on this command.
• Show arp: Can't ping a neighbor? Make sure you're getting an arp entry.
• Show running-config: This is an easy one. It tells you how the box is configured right now. Also, "show startup-config" will tell you how the router will be configured after the next reboot.
• Show port: Similar to the show interface command on routers, this command gives you the status of ports on a switch.
• Show vlan: With the trend toward having lots of VLANs, check this command to make sure your ports are in the VLANs you think they are. Its output is very well designed.
• Show tech-support: This command is great for collecting a lot of info. It basically runs a whole bunch of other show commands, and spits out dozens of pages of detailed
output, designed to be sent to technical support. But, it's also useful for other purposes.
lifelong76
 
Posts: 4
Joined: Thu Nov 15, 2007 12:06 am

Re: Cisco useful commands

Postby chicagotech » Wed Jun 02, 2010 7:19 pm

Show a single port configuration, for example,
sh run int g0/1
Building configuration...

Current configuration : 126 bytes
!
interface GigabitEthernet0/1
switchport trunk encapsulation dot1q
switchport mode trunk
channel-group 2 mode active
end
Networking, Internet, Routing, VPN Troubleshooting on http://www.ChicagoTech.net
How to Setup Windows, Network, VPN & Remote Access on http://www.HowToNetworking.com
chicagotech
Site Admin
 
Posts: 6352
Joined: Mon Nov 27, 2006 1:24 pm
Location: Chicago USA

Re: Cisco useful commands

Postby guest » Mon Jun 20, 2011 8:39 pm

To show the command line start a command or word, using show run | begin, for example,
Switch#sh run | begin vlan 600
switchport trunk native vlan 600
switchport mode trunk
spanning-tree portfast
....
Tablet and Smartphone Setup Guide
http://www.quicksetupguide.com

Troubleshooting Vista Wireless
http://chicagotech.net/
guest
 
Posts: 9024
Joined: Mon Nov 27, 2006 1:10 pm

Re: Cisco useful commands

Postby guest » Mon Jun 20, 2011 8:41 pm

to Show all command lines with a word, use show run | incl, for example
Switch#sh run | incl vlan 600
switchport trunk native vlan 600
Tablet and Smartphone Setup Guide
http://www.quicksetupguide.com

Troubleshooting Vista Wireless
http://chicagotech.net/
guest
 
Posts: 9024
Joined: Mon Nov 27, 2006 1:10 pm

Re: Cisco useful commands

Postby guest » Mon Jul 25, 2011 10:45 am

To show uptime, run show tech-support.
Tablet and Smartphone Setup Guide
http://www.quicksetupguide.com

Troubleshooting Vista Wireless
http://chicagotech.net/
guest
 
Posts: 9024
Joined: Mon Nov 27, 2006 1:10 pm

Re: Cisco useful commands

Postby chicagotech » Mon Jul 25, 2011 4:48 pm

To configure range ports, use int range command. For example,
conf t
int range g0/20 - 24
no shutdown
Networking, Internet, Routing, VPN Troubleshooting on http://www.ChicagoTech.net
How to Setup Windows, Network, VPN & Remote Access on http://www.HowToNetworking.com
chicagotech
Site Admin
 
Posts: 6352
Joined: Mon Nov 27, 2006 1:24 pm
Location: Chicago USA


Return to Cisco

Your Ad Here

Who is online

Users browsing this forum: No registered users and 0 guests