CCNA lab Review 2. CDP and Static Routing

Source: Internet
Author: User

CDPCommand

Show cdp neighbors displays connected network devices

Show cdp display CDP Global Information

Show cdp entry * displays all information about all adjacent routers.

Show cdp entry WORD (vro name) displays all information about the vro.

Un all disable all DEBUG information

(Config) # cdp run start CDP protocol

Disconnect (Port Number) disconnects from this port

Show cdp interface (port) displays CDP information for this port

Clear cdp counter clear CDP counters

Static Routing command

R-A (config) # ip route x. x. x. x (arriving at ip segment) x. x. x. x (subnet mask) x. x. x. x (Next Hop IP address)

R-A (config) # show ip route

The following figure shows the topology.

650) this. width = 650; "src =" http://www.bkjia.com/uploads/allimg/131227/04535a2X-0.png "title =" 2.png"/>

PC-A: ip: 192.168.1.1/24gw: 192.168.1.250

Sw-A: ip: 192.168.1.2/24gw: 192.168.1.250

R-A: ip: fa0/0: 192.168.1.250

S0/3/0: 10. 0.0.1

R-B: ip: fa0/0: 192.168.2.250

S0/3/0: 10. 0.0.2

Sw-A: ip: 192.168.2.2/24gw: 192.168.2.250

PC-A: ip: 192.168.2.1/24gw: 192.168.2.250


Add a static route on the R-A and R-B

R-A (config) # ip route 192.168.2.0255.255.255.0 10.0.0.2

R-B (config) # ip route 192.168.1.0255.255.255.0 10.0.0.1


Finally verify PC-A ping PC-B


Verify CDP command

Explanation: 1. Send the CDP update information package every 60 seconds.

2. The information is kept for 180 seconds.

3. cdp Version 2

650) this. width = 650; "src =" http://www.bkjia.com/uploads/allimg/131227/04535a134-1.png "title =" 2-1.png "/>

Same as above-some default versions are 1

650) this. width = 650; "src =" http://www.bkjia.com/uploads/allimg/131227/0453591234-2.png "title =" 2-2.png "/>

Modify the Update Time and retention time of the CDP timer. The modified time is to update the 90 s retention time to 240 s)

SW1 # conf t

SW1 (config) # cdp?

Advertise-v2 CDP sends version-2 advertisements

Holdtime Specify the holdtime (in sec) to be sent in packets

Timer Specify the rate at which CDP packets are sent (in sec)

Run

SW1 (config) # cdp timer 90

SW1 (config) # cdp holdtime 240

SW1 (config )#

SW1 # show


SW1 # show cdp

Global CDP information:

Sending CDP packets every 90 seconds

Sending a holdtime value of 240 seconds

Sending CDPv2advertisements is enabled

Enable or disable cdp

Run the command: Disable no cdp run to open cdp run.

650) this. width = 650; "src =" http://www.bkjia.com/uploads/allimg/131227/04535942R-3.png "title =" 2-3.png "/>

Run the show cdp neighbors command to display connected network devices.

650) this. width = 650; "src =" http://www.bkjia.com/uploads/allimg/131227/045359C55-4.png "title =" 2-4.png "/>

Device ID: Host Name of the directly connected Device

Local interface: the port or interface for receiving CDP groups (Local devices directly controlled)

Holdtime: the amount of time that the router will save before discarding the received information.

Capability: the type of a neighboring device, such as a router, switch, or repeater.

Platform: the cisco device model that is directly connected to the router R-A.

Port ID: The interface used by the device that is directly connected to the router R-A when an update is sent.








Display details of all adjacent Devices

Command: show cdp entry * or show cdpentry + device name


650) this. width = 650; "src =" http://www.bkjia.com/uploads/allimg/131227/0453594537-5.png "title =" 2-5.png "/>

Display the cdp information of the interface. Run the command: showcdp interface.

650) this. width = 650; "src =" http://www.bkjia.com/uploads/allimg/131227/0453592300-6.png "title =" 2-55.png "/>

Disable the cdp function of an interface and run the command: Enter the interface mode after the specified Interface) no cdp enable

Open and vice versa cdpenable

Static Routing

Without adding any route in the topology in the figure, ping the PC-A in the PC-B is not available

650) this. width = 650; "src =" http://www.bkjia.com/uploads/allimg/131227/0453591548-7.png "title =" 123.png"/>

Add routes on R-A and R-B respectively

650) this. width = 650; "src =" http://www.bkjia.com/uploads/allimg/131227/0453593U5-8.png "style =" float: none; "title =" 12111.png"/>

650) this. width = 650; "src =" http://www.bkjia.com/uploads/allimg/131227/0453591L5-9.png "style =" float: none; "title =" 11111.png"/>

View the route table and perform ping test. The answer is "pass"

Where: C indicates a direct connection route, S indicates a static route, and R indicates a dynamic route.


650) this. width = 650; "src =" http://www.bkjia.com/uploads/allimg/131227/04535a950-10.png "title =" 999999.png"/>


This article is from the "beyond and beyond" blog, please be sure to keep this source http://franksyl.blog.51cto.com/3207517/1293618

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.