Wednesday, May 11, 2011

Gathering Interface Traffic Information Through CDP

The show cdp traffic command displays information about interface traffic, including the number of CDP packets sent and received and the errors with CDP. The following output shows the show cdp traffic command used on the R1 Router.


R1#show cdp traffic
CDP counters :
        Total packets output: 78, Input: 73
        Hdr syntax: 0, Chksum error: 0, Encaps failed: 0
        No memory: 0, Invalid packet: 0, Fragmented: 0
        CDP version 1 advertisements output: 0, Input: 0
        CDP version 2 advertisements output: 78, Input: 73

This is not really the most important information you can gather from a router, but it does show how many cdp packets are sent and received on a device.

Gathering Neighbor Information Through CDP

The show cdp neighbor command delivers information about directly connected devices. It's important to remember that CDP packets aren't passed through a Cisco Switch and that you only see what's directly attached. So this means that if your router is connected to a switch, you won't see any of the devices hooked up to that switch.
The following output shows the show cdp neighbor command used on my R1 router.

R1#show cdp neighbor
Capability Codes: R - Router, T - Trans Bridge, B - Source Route Bridge
                  S - Switch, H - Host, I - IGMP, r - Repeater

Device ID        Local Intrfce     Holdtme    Capability  Platform  Port ID
R2               Ser 1/0            158           R       7206VXR   Ser 1/0
R3               Ser 1/1            150           R       7206VXR   Ser 1/0

Okay, we are directly connected with a console cable to the R1 Router. and the router is directly connect to two devices. We have one connection to the Router R2 and one connection to the router R3. The device ID shows the configured hostname of the connected devices, the local interface is our interface, and the port ID is the remote devices' directly connected interface. All you get to review are directly connected devices.

Given table summarizes the information displayed by the show cdp neighbor command for each device.

Device ID     |     the hostname of the device directly connected.

Local Interface     |     The port or interface on which you are receiving the CDP packet.

Holdtime     |     The amount of time the router will hold the information before discarding it if no more CDP packet are received.

Capability     |     The capability of the neighbor, such as the router, switch, or repeater. the capability codes are listed at the top of the command output.

Platform     |     The type of Cisco device directly connected. In the privious coutput, A Cisco 7200 router is attached directly to the 7200 router.

Port ID     |     The neighbor device's port or interface on which the CDP packets are multicast.


Another command that'll deliver the goods on neighbor information is the show cdp neighbors detail command. this command can be run on both routers and switches, and it displays detailed information about each device connected to the device you're running the command on. Check out this router output for an example:

R1#show cdp neighbors detail
-------------------------
Device ID: R2
Entry address(es):
  IP address: 12.1.1.2
Platform: Cisco 7206VXR,  Capabilities: Router
Interface: Serial1/0,  Port ID (outgoing port): Serial1/0
Holdtime : 123 sec

Version :
Cisco IOS Software, 7200 Software (C7200-ADVENTERPRISEK9-M), Version 12.4(20)T, RELEASE SOFTWARE (fc3)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2008 by Cisco Systems, Inc.
Compiled Fri 11-Jul-08 04:22 by prod_rel_team

advertisement version: 2

-------------------------
Device ID: R3
Entry address(es):
  IP address: 13.1.1.3
Platform: Cisco 7206VXR,  Capabilities: Router
Interface: Serial1/1,  Port ID (outgoing port): Serial1/0
Holdtime : 175 sec

Version :
Cisco IOS Software, 7200 Software (C7200-ADVENTERPRISEK9-M), Version 12.4(20)T, RELEASE SOFTWARE (fc3)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2008 by Cisco Systems, Inc.
Compiled Fri 11-Jul-08 04:22 by prod_rel_team

advertisement version: 2


What are we being shown here? First, we're given the hostname and IP address of all directly connected devices. In addition to the same information displayed by the show cdp neighbor command, the show cdp neighbor detail command gives us the IOS version of the neighbor device.

The show cdp entry * command displays the same information as the show cdp neighbors detail command. Here's an example of the router output using the show cdp entry * command:

R1#show cdp entry *

-------------------------
Device ID: R2
Entry address(es):
  IP address: 12.1.1.2
Platform: Cisco 7206VXR,  Capabilities: Router
Interface: Serial1/0,  Port ID (outgoing port): Serial1/0
Holdtime : 171 sec

Version :
Cisco IOS Software, 7200 Software (C7200-ADVENTERPRISEK9-M), Version 12.4(20)T, RELEASE SOFTWARE (fc3)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2008 by Cisco Systems, Inc.
Compiled Fri 11-Jul-08 04:22 by prod_rel_team

advertisement version: 2

-------------------------
Device ID: R3
Entry address(es):
  IP address: 13.1.1.3
Platform: Cisco 7206VXR,  Capabilities: Router
Interface: Serial1/1,  Port ID (outgoing port): Serial1/0
Holdtime : 163 sec

Version :
Cisco IOS Software, 7200 Software (C7200-ADVENTERPRISEK9-M), Version 12.4(20)T, RELEASE SOFTWARE (fc3)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2008 by Cisco Systems, Inc.
Compiled Fri 11-Jul-08 04:22 by prod_rel_team

advertisement version: 2

There isn't any difference between the show cdp neighbors detail and show cdp entry * commands. However, the show cdp entry * command has two options that the show cdp neighbors detail command does not:

R1#show cdp entry * ?
  protocol  Protocol information
  version   Version information
  |         Output modifiers
 


R1#show cdp entry * protocol
Protocol information for R2 :
  IP address: 12.1.1.2
Protocol information for R3 :
  IP address: 13.1.1.3

The preceding output of the show cdp entry * protocols command can show you just the IP addresses of each directly connected neighbor. The show cdp entry * version will show you only the IOS version of your directly connected neighbors:

R1#show cdp entry * version

Version information for R2 :
  Cisco IOS Software, 7200 Software (C7200-ADVENTERPRISEK9-M), Version 12.4(20)T, RELEASE SOFTWARE (fc3)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2008 by Cisco Systems, Inc.
Compiled Fri 11-Jul-08 04:22 by prod_rel_team


Version information for R3 :
  Cisco IOS Software, 7200 Software (C7200-ADVENTERPRISEK9-M), Version 12.4(20)T, RELEASE SOFTWARE (fc3)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2008 by Cisco Systems, Inc.
Compiled Fri 11-Jul-08 04:22 by prod_rel_team

Although the show cdp neighbors detail and show cdp entry commands are very similar, the show cdp entry command allows you to display only one line of output for each directly connected neighbor, whereas the show cdp neighbor detail command does not.

Source: CCNA: Cisco Certified Network Associate Study Guide, 6th Edition

Tuesday, May 10, 2011

Getting CDP Timers and Holdtime Information

The show cdp command gives you information about two CDP global parameters that can be configured on Cisco devices:


  • CDP Timer is how often CDP packets are transmitted out all active interfaces.
  • CDP holdtime is the amount of time that the device will hold packets received from neighbor devices.

Both Cisco routers and Cisco switches use the same parameters.

Corp#show cdp
Global CDP information:
    Sending CDP packets every 60 seconds
    Sending a holdtime value of 180 seconds
    Sending CDPv2 advertisements is enabled

Use the global commands cdp holdtime and cdp timers to configre the CDP holdtime and timers on the router:

Corp(config)#cdp ?
    advertise-v2        CDP sends version-2 advertisements
    holdtime              Specify the holdtime (in sec) to be sent in packets
    log                       Log messages generated by CDP
    run                      Enable CDP
    source-interface  Insert the interface's IP in all CDP packets
    timer                  Specify rate (in sec) at which CDP packets are sent run

You can turn off CDP completely with the no cdp run command from the global configuration mode of a router. To turn CDP off or on for an interface, use the no cdp enable and cdp enable commands. 

Source: Cisco Certified Network Associate Study Guide, 6th Edition

 

Configuring Cisco Discovery Protocol on Cisco Routers and Switches Running Cisco IOS


Introduction

This document explains how to configure Cisco Discovery Protocol (CDP) on Cisco routers and switches that run Cisco IOS®. Specifically, the document covers how to enable, verify, and disable CDP on Cisco devices and some know issues related to CDP.
CDP is a Cisco proprietary Layer 2 protocol that is media- and protocol-independent, and runs on all Cisco-manufactured equipment that includes:
  • routers
  • bridges
  • access servers
  • switches
A Cisco device enabled with CDP sends out periodic interface updates to a multicast address in order to make itself known to neighbors. Since it is a layer two protocol, these packets (frames) are not routed. Use of SNMP with the CDP MIB allows network management applications to learn the device type and the SNMP agent address of neighboring devices, and to send SNMP queries to those devices. CDP uses the CISCO-CDP-MIB.

Prerequisites

Requirements

There are no specific requirements for this document.

Components Used

This document is not restricted to specific software and hardware versions. This document applies to all Cisco routers and switches running Cisco IOS as well as router modules such as WS-X4232-L3, RSM, and MSFC.
The information in this document was created from the devices in a specific lab environment. All of the devices used in this document started with a cleared (default) configuration. If your network is live, make sure that you understand the potential impact of any command.

Conventions

Refer to Cisco Technical Tips Conventions for more information on document conventions.

Configure Cisco Discovery Protocol

Enable/Disable CDP on a Cisco IOS Device

CDP is enabled on Cisco routers by default. If you prefer not to use the CDP capability, disable it with the no cdp run command. In order to reenable CDP, use the cdp run command in global configuration mode.
You can verify whether CDP is enabled or disabled on your Cisco device using the show cdp neighbors command.
Router#show cdp neighbors
 % CDP is not enabled           

!--- This message indicates that CDP is disabled on this device.

Router#
This command output indicates that CDP is enabled on the device, but no neighbor devices are discovered or connected to this device.
Router#show cdp neighbors
Capability Codes: R - Router, T - Trans Bridge, B - Source Route Bridge
                  S - Switch, H - Host, I - IGMP, r - Repeater

Device ID        Local Intrfce     Holdtme    Capability  Platform  Port ID
Router# 

Router#show cdp
Global CDP information:
        Sending CDP packets every 60 seconds
        Sending a holdtime value of 180 seconds
        Sending CDPv2 advertisements is  enabled
Router#
This command output shows that CDP is enabled and some neighbor devices are discovered by CDP protocol.
Router#show cdp neighbors 
Capability Codes: R - Router, T - Trans Bridge, B - Source Route Bridge
                  S - Switch, H - Host, I - IGMP, r - Repeater

Device ID        Local Intrfce     Holdtme    Capability  Platform  Port ID
R2-AGS           Ser 1              129          R        2500      Ser 0
R6-2500          Eth 0              144          R        4000      Eth 0
Router#
The show cdp neighbors command displays this information:
  • type of device that is discovered
  • name of the device
  • number and type of the local interface (port)
  • number of seconds the CDP advertisement is valid for the port
  • device type
  • device product number
  • port ID
The show cdp neighbors detail and show cdp entry commands displays additional information about the neighboring devices that include network-layer protocol information and version.
router#show cdp neighbors detail 
------------------------- 
Device ID: lab-7206 
Entry address(es): 
IP address: 172.19.169.83 
Platform: cisco 7206VXR, Capabilities: Router 
Interface: Ethernet0, Port ID (outgoing port): FastEthernet0/0/0 
Holdtime : 123 sec 
Version : 
Cisco Internetwork Operating System Software 
IOS (tm) 5800 Software (C5800-P4-M), Version 12.1(2) 
Copyright (c) 1986-2002 by Cisco Systems, Inc. 
advertisement version: 2 
Duplex: half 
------------------------- 
Device ID: lab-as5300-1 
Entry address(es): 
IP address: 172.19.169.87 
Platform: cisco AS5300, Capabilities: Router 
--More--

!--- Output is suppressed.
 
router#show cdp entry lab-7206 
------------------------- 
Device ID: lab-7206 
Entry address(es): 
IP address: 172.19.169.83 
Platform: cisco 7206VXR, Capabilities: Router 
Interface: Ethernet0, Port ID (outgoing port): FastEthernet0/0/0 
Holdtime : 123 sec 
Version : 
Cisco Internetwork Operating System Software 
IOS (tm) 5800 Software (C5800-P4-M), Version 12.1(2) 
Copyright (c) 1986-2002 by Cisco Systems, Inc. 
advertisement version: 2 
Duplex: half

Enable/Disable CDP on an Interface

When CDP is enabled globally using the cdp run command, it is enabled by default on all supported interfaces (except for Frame Relay multipoint subinterfaces) to send and receive CDP information. You can disable CDP on an interface that supports CDP with the no cdp enable command.
Router#show cdp neighbors 
Capability Codes: R - Router, T - Trans Bridge, B - Source Route Bridge
                  S - Switch, H - Host, I - IGMP, r - Repeater

Device ID        Local Intrfce     Holdtme    Capability  Platform  Port ID
R2-AGS           Ser 1              129          R        2500      Ser 0
R6-2500          Eth 0              144          R        4000      Eth 0
Router#
On this router, CDP is enabled on Serial 1 and Ethernet 0 interfaces. Disable CDP on the Serial 1 interface and verify if the neighbor device is discovered on the serial 1 interface, as this output shows:
Router#configure terminal
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)#interface s1
Router(config-if)#no cdp enable
Router(config-if)#^Z
Router#4w5d: %SYS-5-CONFIG_I: Configured from console by console
The router does not remove the entry for the neighbor on CDP disabled interface unless the hold time expires. This output shows that the router discovered neighbor only on Ethernet 0 interface.
Router#show cdp neighbors
Capability Codes: R - Router, T - Trans Bridge, B - Source Route Bridge
                  S - Switch, H - Host, I - IGMP, r - Repeater

Device ID        Local Intrfce     Holdtme    Capability  Platform  Port ID
R6-2500          Eth 0              149          R        4000      Eth 0
Router#
Use the show running-config command in order to find whether CDP is enabled/disabled on a particular interface on your device.
Router#show running-config int s1
Building configuration...

Current configuration : 94 bytes
!
interface Serial1 ip address 40.40.40.1 255.255.255.0 
ip router isis  
no cdp enable                   

!--- This command indicates that CDP is disabled on the Serial 1 interface.

end

Router#
Note: You cannot enable/disable CDP on an interface unless it is enabled globally using the cdp run command.



Sourece:: Cisco Website



Monday, May 9, 2011

Hubs

In the beginning of Ethernet, 10Base-5 used a very thick cable that was hard to work with (it was nicknamed thicknet). 10Base-2, which latter replaced 10Base-5, used a much smaller cable, similar to that used for cable TV. 10Base-2 was nickname thin-net. These cable technologies required large metal couplers called N connectors (10Base-5) and BNC connectors (10Base-2). These Networks also required special terminators to be installed at the end of cable runs. When these couplers or terminators were removed. the entire network would stop working. These cables formed the physical backbones for Ethernet networks.

With the introduction of Ethernet running over unshielded twisted pair (UTP) cables terminated with RJ45 connectors, hubs became the new backbones in most installations. Many companies attached hubs to their existing thin-net networks to allow greater flexibility as well. Hubs were made to support UTP and BNC 10Base-2 installations but UTP was so much easier to work with that it became the de factor standard.

A Hub is simple a means of connecting Ethernet cables together so that their  signals can be repeated to every other connected cable on the hub. Hubs may also be called repeaters for this reason, but it is important to understand that while a hub is a repeater, a repeater is not necessarily a hub.

A repeater repeats a signal. Repeaters are usually used to extend a connection to a remote host, or to connect a group of users who exceed the distance limitation of 10Base-T. In other words, if a usable distance of a 10Base-T cable is exceeded, a repeater can be placed in line to increase the usable distance.

Segments are divided by repeaters or hubs. Figure 2-1 shows a repeater extending the distance between a server and a personal computer.


A hub is like a repeater, except that while a repeater may have only two connectors, a hub can have many more; that is, it repeats a signal over many cables as opposed to just one. Figure 2-2 shows a hub connecting several computers to a network.


When designing Ethernet networks, repeater and hubs get treated the same way. The 5-4-3 Rule of Ethernet design states that between any two nodes on an Ethernet network, there can be only five segments, connected via four repeaters, and only three of the segments can be populated. This rule, which seems odd in the context of today's networks, was the source of much pain for those who didn't understand it.

A hubs became less expensive, extra hubs were often used as repeaters in more complex networks. Figure 2-3 shows an example of how two remote groups of users could be connected using hubs on each end and a repeater in the middle.


Hubs are very simple devices. Any signal received on any port is repeated out every other port. Hubs are purely physical and electrical devices, and do not have a presence on the network (Except possibly for management purposes). They do not alter frames or make decisions based on them in any way.

Figure 2-4 illustrates how hubs operate. As you might imagine, this model can become problematic in larger networks. The traffic can become so intensive that the network becomes saturated--if someone prints a large file, everyone on the network will suffer while the file is transferred to the printer over the network.


If another device is already using the wire, the sending device will wait a bit, and then try to transmit again. When two stations transmit at the same time, a collision occurs. Each station records the collision, backs off again, and then retransmits. On every busy networks, a lot of collisions will occur.

With a hub, more stations are capable of using the network at any given time. Should all of the stations be active, the network will appear to be slow because of the excessive collisions.

Collisions are limited to network segments. An Ethernet network segment is a section of network where devices can communicate using layer-2MAC addresses. To communicate outside of an Ethernet segment, an additional device, such as a router, is required. Collisions are also limited to collision domains. A collision domain is an area of an Ethernet network where collisions can occur. If one station can prevent another from sending because it has the network in use, these stations are in the same collision domain.

A broadcast domain is the area of an Ethernet network where a broadcast will be propagated. Broadcasts stay within a layer-3 network (unless forwarded), which is usually bordered by a layer-3 device such as a router. Broadcasts are sent through switches (layer-2 devices), but stop at router.

Figure 2-5 shows a network of hubs connected via a central hub. when a frame enters the hub on the bottom left on port 1, the frame is repeated out every other port on that hub, which includes a connection to the central hub. The central hub is turn repeats the frame out every port, propagating it to the remaining hubs in the network. This design replicates the backbone idea, in that every device on the network will receive every frame sent to the network.

   
In large networks of this type, new problems can arise. Late Collisions occur when two stations successfully test for a clear network, and then transmit, only to then encounter a collision. This condition can occur when the network is so large that the propagation of a transmitted frame from one end of the network to the other takes longer than the test used to detect whether the network is clear.

One of the major problems when using hubs is the possibility of broadcast storms. Figure 2-6 shows the situation.

The only way to resolve a broadcast storm is to break the loop. Shutting down and restarting the network devices will just start the cycle again. Because hubs are not generally manageable, it can be quite a challenge to find a layer-2 loop in a crisis.

Hubs have a lot of drawbacks, and modern networks rarely employ them. Hubs have long since been replaced by switches, which offer greater speed, automatic loop detection, and a host of additional features.

Source:: O'Reilly-Network Warrior

Sunday, May 8, 2011

What is Network?

A Computer Network can be defined as "Two or more computer connected by some means through which they are capable of sharing information." There are many types of Network such as:

1. Local Area Networks
2. Wide Area Networks
3. Metropolitan Area Networks
4. Campus Area Networks
5. Ethernet Networks
6. Token Ring Networks
7. Fiber Distributed Data Interface Networks
8. Asynchronous Transfer Mode Networks
9. Frame Relay networks
10. T1 Networks
11. DS3 Networks
12. Bridged Networks
13. Routed Networks
14. Point to Point Networks
and many names.

If you're old enough to remember the program Laplink, which allowed you to copy files from one computer to another over a special parallel port cable, you can consider that connection a network as well. it wasn't very scalable (Only two computers), or very fast, but it was a means of sending data from one computer to another via a connection.

Networks are often distinguished by their reach. LANs, WANs, MANs, and CANs are all examples of network types defined by their areas of coverage. LANs are, as their name implies, Local to something--Usually a single building or floor. WANs cover broader areas, and are usually used to connect LANs. WANs can span the globe, and there's nothing that says they couldn't go farther. MANs are common in areas where technology like Metropolitan Area Ethernet is possible; they typically connect LANs within a given geographical region such as a city or town. A CAN is similar to a MAN, but is limited to a campus (a campus is uauallly defined as a group of buildings under the control of one entity, such as a college or a single company).

Source:: O'Reilly-Network Warrior (2007) Book

CISCO DISCOVERY PROTOCOL (CDP)

Cisco Discovery Protocol (CDP) is primarily used to obtain protocols addresses of neighboring devices and discover the platform of those devices. CDP can also be used to show information about the interfaces your router uses. CDP is media and Protocols-independent, and runs on all Cisco-Manufactured equipment including routers, bridges, access servers, and Switches.

PING & EXTENDED PING

Ping is used to test network connections. It can be used to determine if a remote device can be reached across the network. Most ping tools use Internet Control Message Protocol (ICMP). They send request messages to a target network address at periodic intervals and measure the time it takes for a response message to arrive. these tools typically support options like

1. How many times to send request?
2. How large of a request message to send?
3. How long to wait for each reply?
4. The output of ping varies depending on the tool. Standard results includes

It is often believed that "Ping" is an abbreviation for Packet Internet Groper. The ICMP ECHO REQUEST and ECHO REPLY messages are sent and received by the ping command. In fact, when people say that they "sent a ping packet", they really mean that they sent an ICMP echo request. The Echo Request simple means that the host to which it is addressed should reply to the packet. the Echo Reply is the ICMP message type that should be used in the reply. The Echo Request includes some data that can be specified by the ping command; whatever data is sent in the Echo Request is sent back in the Echo Reply.

CODES THAT THE PING COMMAND RECEIVES IN RESPONSE TO ITS ICMP ECHO REQUEST::

!   =   ICMP Echo Reply received
.    =   Nothing was received before the ping command timed out
U   =  ICMP unreachable (Destination) received
N   =  ICMP unreachable (Network) received
P   =  ICMP unreachable (Port) received
Q  =  ICMP Source Quench received
M =  ICMP can't Fragment Message Received
?   =  Unknown Packet Received




Monday, April 4, 2011

TOP PTC SITES FOR EARN MONEY ONLINE

EARN MONEY ONLINE BY SIGNUP.. THIS IS THE LIST OF TOP PTC SITES. YOU CAN EARN MORE THAN 400 DOLLARS EVERY MONTH..... DONT WAIT. JUST SIGN UP NOW AND EARN MORE AND MORE.






AmenBux


CoolGrand BUX

UJMR

NxtBux


SYNBux.com - A Place to Earn online!

vcBux

Twinbux - A Place to Earn online!




BuxEzo







Saturday, April 2, 2011

How to Earn money from NeoBux with New Changes


NeoBux the No.1 PTC website in the world and ranked 34 in Pakistan has implemented some new changes. Since the implementation of the new rates, much has been stated by angry members that they don’t have the time to sit around clicking the whole day. Its very difficult for standard members to earn money now. NeoBux new changes forced you to buy Golden membership in order to earn decent money. So standard members have to implement some sort of strategy in order to earn money. Here are few tips for you.

1. Find some means to invest at-least $5 into your rental balance.
2. Rent no more than 10 referrals.
3. leave the balance amount for recycle and extension.
4. After 4 days recycle those referrals who have not made a single click.
5. Continue managing your account; do not overdo recycle; save sufficient to extend at-least 150days.
6. After extending rent more 10 referrals.
7. Continue this way and you’ll soon be earning enough to buy the golden membership.
8. If you wish to invest more and go golden, I advise you to consider first renting at-least 250 referrals before you take the Golden membership. (Its a waste of money and time to be a Golden member without at-least 250 referrals)
9. One more thing – Click daily. If you miss one day you will not earn from your referrals the next day.

Sign Up Now To start your earning now::

Tayyab Arif