A is correct
#config t
Router A (config)#no cdp run - disable cdp on each port
Router A (config)#interface gi0/0/1 - select the port
Router A (config-if)#cdp enable - - Enable DCP on port
There is no chance any of the other option is right. because B,C and D options are enabling CDP on all ports. where we have to disable first and enable only for one port
The answer is B.
This configuration runs CDP globally on the router but disables it specifically on the interface gi0/0/0 (which presumably connects to another router, not Router C). This means CDP is still enabled on gi0/0/1, the interface connecting to Router C, allowing CDP information to be sent only to Router C.
This method effectively ensures that Router A sends CDP information only to Router C and not to any other routers connected to different interfaces.
'No CDP run' disables CDP globally, meaning that even if you do CDP enable on the interface it will not work because it is not running globally. 'CDP run'...although it is on by default...then 'no cdp enable' on G0/0/0 will allow for CDP traffic but router B will not send or receive any CDP traffic over that interfaceas it is prohibited.
it can be A because :
CDP is enabled by default at the global level and on each supported interface to send or receive CDP information.
If CDP is disabled globally, you CANNOT enable it on each interface using the cdp enable interface configuration mode command.
--https://www.cisco.com/c/en/us/td/docs/optical/cpt/r9_5/command/reference/cpt95_cr/cpt95_cr_chapter_01101.pdf
The choice between enabling Cisco Discovery Protocol (CDP) globally and disabling it on specific interfaces, or disabling it globally and enabling it on specific interfaces, depends on your specific network requirements and the default behavior you want on your device.
If you want CDP to be active on most interfaces and only need it disabled on a few, it would be more efficient to enable CDP globally and then disable it on those specific interfaces.
Conversely, if you want CDP to be inactive on most interfaces and only need it enabled on a few, it would be more efficient to disable CDP globally and then enable it on those specific interfaces.
That is not how it works. You cannot enable cdp on an interface if cdp is disabled globally. If you try to do that, you will get this message: '% Enabled CDP on this interface, but CDP is not running globally. Run "cdp run" command.' If you try to further verify by doing "show cdp neighbor gig..." on the interface where you enabled cdp while cdp is disabled globally, you will get the message: "% CDP is not enabled". So, even though it lets you enter the "cdp enable" command on the interface, cdp is not really enabled until you enable it globally with "cdp run".
CDP Configuration:
CDP is enabled by default on Cisco Device.
Disabling CDP globally and enabling on an interface is not possible.
https://learningnetwork.cisco.com/s/article/cisco-discovery-protocol-cdp-x
This section is not available anymore. Please use the main Exam Page.200-301 Exam Questions
Log in to ExamTopics
Sign in:
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
Rynurr
Highly Voted 2 years, 2 months agogewe
Highly Voted 2 years, 2 months agoriteshm42
Most Recent 1 month, 2 weeks agosecopsjedi
4 months, 3 weeks agoShaifalimittal02
7 months, 2 weeks agoadrianspa
8 months agobymrdas
9 months, 3 weeks agoBTK0311
1 year ago[Removed]
1 year agof2faf2e
1 year, 1 month agotolera
1 year, 3 months agof1ab921
5 months, 3 weeks agobaanyan
1 year, 3 months agofadeniyi
1 year, 4 months agoPyoJH
1 year, 4 months agoJunsK1e
1 year, 5 months agomatteodd90
1 year, 6 months agoNewJeans
1 year, 6 months ago