How to disable CDP on multiple sub-interfaces from physical bearer

cdpcisco-commands

You can enable flow on the physical bearer and it will automatically add the flow configuration to any subsequent sub-interfaces using ip route-cache flow.

Is there any way to disable/enable CDP on the physical interface and it automatically cascades to the sub-interfaces?

I need to enable CDP on 350 devices for the LAN facing ports only via a script, the WAN interface is always g0/0 but sites have a variety of VRFs/sub-interfaces.

Best Answer

CDP is not sent per subinterface. CDP is sent to a specific, link-only, multicast address that is sent either on the physical interface, or only one subinterface. Cisco has a document, Behavior of Cisco Discovery Protocol between Routers and Switches, that describes the behavior

enter image description here

You can disable CDP on the physical and subinterfaces by disabling is on the physical interface.