Showing posts with label cisco 3560. Show all posts
Showing posts with label cisco 3560. Show all posts

Wednesday, April 3, 2013

How to Use the Ping Command in the Cisco IOS?

The ping command is irreplaceable when it comes to troubleshooting. At some point, you will undoubtedly use this command to solve a networking problem. But how do you properly use this command in the Cisco IOS?

The Basics of Ping
The ping command works just like on those old submarine movies. You are on one network device and you “ping” another. When you do this, in your head think of the sound that you heard on those old submarine movies- “PPiiiiiiiiiiiing”. The sound would go out and, on the sonar operator’s-screen, he would or would not see the other submarine. This is exactly how the ping-command in networking, works. Your sonar screen is your Cisco router’s command prompt. Usage of the ping command can be as simple as this:


As you can see in this example, I simply typed ping, and the IP address of the host I wanted to ping. In response, I got five exclamation points that told me that I sent 5 ping packets out, and they were all returned (a complete success).

In other words, a ping request is sent out to the remote device, and a ping response is received back, acknowledging the request. As ping uses the ICMP protocol, these packets are technically called ICMP echo request, and ICMP echo reply. ICMP is considered the management protocol for IP. ICMP uses the IP protocol but ICMP is not TCP, or UDP. ICMP does work at Layer 3.

Note that if the ping was not successful, you would have received one of the following (instead of an exclamation point): - “.” = network server timed out - “U” = destination unreachable - “Q” = source quench (destination too busy) - “M” = could not fragment - “?” = unknown packet type - “&” = packet lifetime exceeded Besides the five exclamation points, I was also told that I was sending “5, 100-byte ICMP echoes”. This means that I actually sent five “ping packets” of 100 bytes each. I was told that the timeout was 2 seconds. That means that if a response was not received within 2 seconds, ping would decide that the packet was not going to return at all. This is a safe assumption considering 2 seconds is 2000ms and I am getting pings back in about 36ms. Notice on the last line that the “Success rate is 100 percent”. That is because it says that I sent 5 pings and received 5 ping replies back (that is the “(5/5)”). I was told that the round-trip minimum time for a ping reply to return was 36ms, the average time (of all 5 pings) for a reply to return is 36ms, and the maximum time for a ping reply to return was 40ms. If you have DNS or a local hostname configured, you can use ping with names, like this:


You should know that there are many more types of ICMP traffic other than that used for “pinging” (echo and echo-reply). ICMP is used to redirect hosts to the proper router, to inform hosts that they need to resize their packets, and many types of IP management communications. Each of these types of ICMP packets has a type number (and optionally, a code number). For example, an ICMP echo is type 8. An echo-reply is a type 0. A redirect to another router for an entire network is a type 5, code 0 (with there being possible codes of 0-3). Finally, you can abbreviate ping by only typing “p”. For example: Router# p 1.1.1.1

What Else Can I Do With Ping?
Now that you understand the basics, let’s look at an advanced version of ping. Cisco calls this “extended ping”. Extended ping will ask you many questions and “interactively” configure the options for ping. If you have never seen this before, you may be surprised at how many options the ping command can have. Here is an example:


In typing ping, by itself, I was asked a list of questions. I have put a red arrow by each of the questions for which I typed a response. On other lines, I simply pressed Enter to take the default. In this example, I still ping-ed “Router3”. I stuck with the default of 5 ping packets (but could have changed it). I kept the default of a 100 byte ping packet but could have changed this to a ping packet as large as 18,024 bytes. Next, I chose to use the extended options, where I was able to choose the source interface of my ping packets. I also chose verbose output. With verbose output, I was able to see each reply to each ICMP echo that I sent, and the time it took for that reply to return to my router. One thing you may be surprised by, is the first question that asked what protocol you want to ping with. Yes, you can ping with protocols other than IP (such as Appletalk, DECnet, and IPX), but rarely are those protocols used anymore.

How Do I Allow Ping Through An IOS Access-list?
Because ICMP is not TCP or UDP, you must specify ICMP specifically when you create an access-list (ACL). Here is an example: access-list 101 permit icmp any any echo-reply In this ACL, we are permitting ICMP traffic from any source, and any destination, as long as it is a reply to an echo request. Many administrators enter the following ACL and expect ICMP to flow through it: access-list 101 permit ip any any This ACL does NOT allow ICMP traffic. To allow ICMP and IP, you need the following two entries in your ACL: access-list 101 permit ip any any access-list 101 permiticmp any any

In summary, the ping utility is invaluable when it comes to troubleshooting network issues. While just about everyone has “pinged” something at one point or another, most people don’t know that there is more to ping than the simple ping command. Extended ping on Cisco routers and switches is a very powerful troubleshooting utility. While the ping command does use the ICMP protocol, there is much more to ICMP than just “ping”. Finally, don’t forget to save yourself three keystrokes by abbreviating the ping command with “p”. Over the years, those keystrokes add up!

More Related Cisco Networking Tips:
3560 switch, cisco 3560 series switch, catalyst 3560, 3560 series switch

Friday, March 9, 2012

How to Configure a DHCP Relay on a Cisco Catalyst 4500 Switch?

Dynamic Host Configuration Protocol (DHCP) is a protocol for assigning dynamic IP addresses to hosts on a local network. WS-C3560E-12D-S DHCP also delivers TCP/IP configuration parameters such as the subnet mask and the default router. DHCP simplifies network administration because the DHCP server keeps track of IP addresses rather than requiring an administrator to manage the task manually.

For DHCP to operate correctly, all host computers need to contact the DHCP server. Routers by default do not forward host broadcasts beyond their own subnet. A DHCP relay agent forwards DHCP packets over routers that do not support the forwarding of these types of packets. A DHCP relay agent is a type of routing protocol that enables DHCP hosts to obtain IP addresses from a DHCP server on a different subnet.

A DHCP relay agent is usually run on a router. The Cisco Catalyst 4500 series switches have routing capabilities. Therefore a Cisco Catalyst 4500 is the appropriate place to run a DHCP relay agent.

How to Configure a DHCP Relay on a WS-C3560E-12D-E Catalyst 4500 Switch?
1. Log in to the Cisco device using an interactive text-oriented communications facility via a virtual terminal application, such as SSH or Telnet. When a login has succeeded, a read-only command-line prompt appears, such as "Switch>."

2. Type the command "enable" at the "Switch>" prompt. Type the password into the switch. The command-line changes to a enabled prompt, such as "Switch#."

3. Type the command "config terminal" at the "Switch#" prompt, and press the "Return" key. The "config terminal" command modifies the prompt to "Router (config) #."

4. Type the command "interface WS-C3560E-12SD-E FastEthernet<slot/port>" at the "Router(config)#" prompt, and press the "Return" key. This command modifies the prompt to "Router(config-if)#."

5. Type the command "ip helper-address <IP address>" at the "Router(config-if)#" prompt. This command enables the forwarding of DHCP packets to a different subnet.

6. Hold down the "Control" and "Z" keys simultaneously at the "Router(config-if)#" prompt. This takes the router back to the "Router#" prompt. The DHCP relay agent is now configured to support forwarding of DHCP packets.

Thursday, December 15, 2011

Cisco 3560 Switches Vs.Cisco 3750 Series


“Is a Cisco 3560G switch capable of L3 operation (inter-VLAN IP routing), like a 3750 and 6500 can?”Of course, 3750G is much better.cisco 3560 ws c3560g 24ps e
“Can a Cisco 3750 switch apply access lists to inter-vlan routing, if so, how?”

The Cisco Catalyst 3750is usually being asked and compared with Cisco 3560 series. Both have their own user fans. Which is better, more suitable?

Let’s find answer from users’ comments:
The similarity:Both have comparable chassis configurations; support PoE; have similar MLS capabilities; have similar backplanes and throughput performance.

The only thing that really comes to mind is that multiple 3750's can be stacked.Cisco pitches both these switches as medium/enterprise level access switches. In my opinion though, they are perfectly adequate as a distribution switch in the right environment.

The ws c3560g 24ps e catalyst 3560 is an ideal access layer switch for small enterprise wiring closets or branch office environments that are using their LAN infrastructure for the deployment of new products and applications such as IP telephones, wireless access points, video surveillance, building management systems, and remote video kiosks. Customers can deploy network-wide intelligent services, such as advanced QoS, rate limiting, access control lists (ACLs), multicast management, and high-performance IP routing - while maintaining the simplicity of traditional LAN switching. Embedded in the Catalyst 3560 is the Cisco Cluster Management Suite (CMS) Software, which allows users to simultaneously configure and troubleshoot multiple Cisco Catalyst desktop switches using a standard Web browser. Cisco CMS Software provides configuration wizards that greatly simplify the implementation of converged networks and intelligent network services.
Product Details
Device Type Switch - 24 ports - L3 - Managed
Enclosure Type Desktop - 1U
Ports 24 x 10/100/1000 + 4 x Gigabit SFP
Performance Forwarding performance (64-byte packet size) : 38.7 mpps
MAC Address Table Size 12K entries
Routing Protocol RIP-1, RIP-2, HSRP, static IP routing, RIPng
Remote Management Protocol SNMP 1, RMON 1, RMON 2, RMON 3, RMON 9, Telnet, SNMP 3, SNMP 2c, HTTP, SSH-2
Features Full duplex capability, Layer 3 switching, Layer 2 switching, auto-sensing per device, IP-routing, DHCP support, auto-negotiation, ARP support, trunking, MPLS support, VLAN support, auto-uplink (auto MDI/MDI-X), IGMP snooping, traffic shaping, manageable, Spanning Tree Protocol (STP) support, Rapid Spanning Tree Protocol (RSTP) support, Multiple Spanning Tree Protocol (MSTP) support, DHCP snooping, Dynamic Trunking Protocol (DTP) support, Port Aggregation Protocol (PAgP) support, Trivial File Transfer Protocol (TFTP) support, Access Control List (ACL) support, Quality of Service (QoS), DHCP server, Virtual Route Forwarding-Lite (VRF-Lite), MLD snooping, Dynamic ARP Inspection (DAI), Time Domain Reflectometry (TDR), Per-VLAN Spanning Tree Plus (PVST+), Cisco EnergyWise technology, Uni-Directional Link Detection (UDLD), Link Aggregation Control Protocol (LACP)
Compliant Standards IEEE 802.3, IEEE 802.3u, IEEE 802.3z, IEEE 802.1D, IEEE 802.1Q, IEEE 802.3ab, IEEE 802.1p, IEEE 802.3x, IEEE 802.3ad (LACP), IEEE 802.1w, IEEE 802.1x, IEEE 802.1s
Power AC 120/230 V ( 50/60 Hz )
Dimensions (WxDxH) 44.5 cm x 37.8 cm x 4.4 cm
Weight 5.4 kg
Manufacturer Warranty Limited lifetime warranty


The new Cisco Catalyst 3750 Series switches are an innovative product line that improves LAN operating efficiency by combining industry-leading ease of use and the highest resiliency available for stackable switches. This new product series represents the next generation in desktop switches, and features Cisco StackWise technology, a 32-Gbps stack interconnect that allows customers to build a unified, highly resilient switching system - one switch at a time. For mid-sized organizations and enterprise branch offices, the Cisco ws c3560g 24ps e poe Series eases deployment of converged applications and adapts to changing business needs by providing configuration flexibility, support for converged network patterns, and automation of intelligent network-services configurations. In addition, the Cisco Catalyst 3750 Series is optimized for high-density Gigabit Ethernet deployments and includes a diverse range of switches that meet access, aggregation, or small-network backbone-connectivity requirements.PRODUCT FEATURES:24 Ethernet 10/100/1000 ports;32-Gbps, high-speed stacking bus;Innovative stacking technology;1 RU stackable, multilayer switch;Enterprise-class intelligent services delivered to the network edge;SMIinstalled;Basic RIP and static routing, upgradeable to full dynamic IP routing.

Product Details
Device Type Switch - 24 ports - L3 - Managed - stackable
Enclosure Type Rack-mountable - 1U
Ports 24 x 10/100/1000
Performance Switching capacity : 32 Gbps ¦ Forwarding performance : 35.7 Mpps
MAC Address Table Size 12K entries
Jumbo Frame Support Yes
Routing Protocol RIP-1, RIP-2, HSRP, static IP routing, RIPng
Remote Management Protocol SNMP 1, RMON 1, RMON 2, RMON 3, RMON 9, Telnet, SNMP 3, SNMP 2c, SSH, CLI
Features Flow control, full duplex capability, Layer 3 switching, auto-sensing per device, IP-routing, DHCP support, auto-negotiation, ARP support, VLAN support, auto-uplink (auto MDI/MDI-X), IGMP snooping, traffic shaping, stackable, Spanning Tree Protocol (STP) support, Rapid Spanning Tree Protocol (RSTP) support, Multiple Spanning Tree Protocol (MSTP) support, Dynamic Trunking Protocol (DTP) support, Port Aggregation Protocol (PAgP) support, Trivial File Transfer Protocol (TFTP) support, Access Control List (ACL) support, Quality of Service (QoS), RADIUS support, Jumbo Frames support, Cisco StackWise Technology, Cisco 3560 series EnergyWise technology, Uni-Directional Link Detection (UDLD), Rapid Per-VLAN Spanning Tree Plus (PVRST+), Link Aggregation Control Protocol (LACP), Remote Switch Port Analyzer (RSPAN)
Compliant Standards IEEE 802.3, IEEE 802.3u, IEEE 802.3z, IEEE 802.1D, IEEE 802.1Q, IEEE 802.3ab, IEEE 802.1p, IEEE 802.3x, IEEE 802.3ad (LACP), IEEE 802.1w, IEEE 802.1x, IEEE 802.3ae, IEEE 802.1s
Power AC 120/230 V ( 50/60 Hz )
Dimensions (WxDxH) 44.5 cm x 32.6 cm x 4.4 cm
Weight 4.6 kg
Manufacturer Warranty Limited lifetime warranty