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



Monday, March 28, 2011

Earn 400$ per Month working at Home in Pakistan

Today I am going to tell you a secret of how to earn 400$ per month working at home in Pakistan. This is the method I use and now I am earning more than 400$ per month from this site. I think this is the easiest job on internet which everybody can do even a 10 year old child can earn from this website. Imagine how easy it is to earn money from this website. The website I am going to tell you is online from last three years now and paying regularly. No scams, No fees, its 100% Free. In Pakistan I transfer money from this site to my Alertpay account and then I request my money from Alertpay via Wire transfer and receive here in Pakistan within four days. I have an ATM card through which I withdraw my money, so the purpose of telling this is I don’t have to go to the bank either.

Now you are wondering what kind of work this is. Well this is an advertising website which advertises ads of multinational companies and you and I are like customers who visit their sites. Every time you visit some company site you earn some cents but this is not enough money. There is an affiliate system as well for you which mean you can tell this website to your Friends, Cousins, Colleagues, Neighbor or internet friends. So when they signup through your refer link, they are in your down list which means when they visits ads you also earn money. All you have to do is to tell this website to your friends. But for this you have to wait 30 days. Yes after joining the website you have to work independently for 30 days.




After 30 days website will allow you to refer this site to your friends. Then come the real part. From the next month of joining you have to tell this website to 30 friends. But remember all these 30 friends have to use different computer and internet connection other wise all your accounts will be blocked. So when you have 30 friends signup under you, you are ready to earn huge money from this website. Here I tell you that you earn 50% of clicks money generated by your referrals. All this setup is totally free and once you have 30 friends it’s a lifetime earning machine for you.

How I earn 400$ from this website:


At the beginning you may notice that your earnings are too slow. Yes that’s correct I have also come from this phase when my earning was too low that I wanted to quit from this website but my friend told me that it’s the patience that matter here. You keep visiting websites and motivate your friends too. The magical part is that when your friends also refer to their friends you also earn money from them as many as 300 friends. But this is not going to happen over night. Your part is that you have to tell this website to 30 friends and then work daily. After each month this website adds 30 more friends into your account (which were referred by your friend not by you). So the process goes on and after one year you have 300 friends in your account and you are earning 200$ per month. After 1 year of working this site regards your efforts and upgraded you to their Golden Membership, which means that from next month your earnings will be double e.g. if you were earning 200$ previously then after Golden Membership you earn 400$ per month.

Things to Remember:


1. First month you only earn 1.2$ from this site.

2. From second month you can withdraw your money through Alertpay Bank Account as low as 2 Dollars.

3. From second month you can also refer this website to 30 your friends through your refer link and hence your earnings will increase.

4. Each your friend must use unique Computer and Internet connection.

5. From third month your referral list grows and after 1 year you have 300 referrals automatically.

6. You earn 50% of what your referrals earn.

7. After 1 year you get Golden Membership.

8. After Golden Membership your earning will double.

9. With one click of a button your earnings are transferred from your account to your Alertpay bank account.

10. You can withdraw atleast 20$ from Alertpay bank Account to your local bank account(MCB, ABL, UBL SCB etc) in Pakistan via wire transfer, Credit card or through Cross Check.

11. Enjoy life time earnings.


:::CLICK FOLLOWING BANNERS TO SIGN UP AND EARN MONEY NOW:::















































AmenBux

























CoolGrand BUX












UJMR












NxtBux












aeBux - The Success Continues! 












SYNBux.com - A Place to Earn online!












vcBux












Twinbux - A Place to Earn online!


























































































Thursday, March 17, 2011

Behind the scenes: A release three weeks in the making


LAHORE: 
The federal and provincial governments, and the intelligence agencies, had been working since February 21 to ensure Raymond Davis’ release through the Qisas and Diyat laws,The Express Tribune has learnt.
Three weeks ago, the Interior Ministry sought the particulars including the addresses of the family members of the men Davis shot so it could contact them and prepare their passports, sources said.
The Punjab government, meanwhile, used police and other officials to put pressure on the heirs of the deceased to accept payment of blood money in return for pardoning Davis, the sources said.
The sources said that PML-N chief Nawaz Sharif had assured US Senator John Kerry when he visited Pakistan in mid-February that even if the federal government did not produce documents in the Lahore High Court showing Davis to have diplomatic immunity, the Punjab government would help get the CIA contractor pardoned through the payment of Diyat.
The sources said that the federal and provincial governments and the country’s intelligence agencies all agreed on one thing: that Davis must  be released via the courts through the payment of Diyat to minimise the public uproar at his release.
They said that they had made a secret agreement on February 21 to facilitate the release of Davis in this manner. Around this time, the US authorities also began preparing to fulfil the formalities regarding compensation and visas, the sources said.
Neighbours of the families say that their houses had been locked for the last two days and they had not been seen. Lawyer Asad Manzoor Butt, who represented them at the previous hearing, said he had been trying to contact them since March 14 but their phones were off.
When Punjab Chief Minister Shahbaz Sharif was asked by a reporter in London yesterday about the provincial government allegedly kidnapping the family, Sharif denied this and told the reporter to ask the federal government.
Meanwhile, according to Daily Express, Davis travelled on a special US plane from Lahore airbase to Bagram and the Intelligence Bureau and police were not in the loop. He was flown out without an exit stamp on his passport.
The Allama Iqbal Airport’s radar system received a short message on Wednesday that a special aircraft would touch down at the PAF base. Airport officials were told nothing else.
Quoting sources, Daily Express said that under instructions from sensitive agencies, the Punjab chief secretary, home secretary, inspector general of police and inspector general of prisons crafted the exit plan on March 15.
The sources added that the families of Faizan and Faheem had been shifted to Islamabad via the Motorway. They would first be taken to Dubai since the issuance of US visas would take time.
Published in The Express Tribune, March 17th, 2011.


-->Join me: http://www.facebook.com/pages/PMLN/191309634234285