Hi Nitesh,
That used to be a possible option when CDPBypass feature was available on older IOS codes, however, that feature was removed due to the following reasons:
• Lack of Visibility: Phones are effectively invisible since they access the network
without generating any kind of accounting record or syslog
• Lack of Access Control: Since the phones are not authenticated, their identity is not
validated prior to allowing access. Anyone who can spoof CDP can access the voice network.
• Lack of Authorization: Without an authentication event, the phone cannot be authorized
with a dynamic ACL or dynamic VLAN.
• Incompatibility: CDP Bypass cannot be used with WebAuth or dynamic ACL assignment for
data devices.
• No support for 3rd party phones: CDP Bypass only works with Cisco phones.
• Not supported across all switch platforms: The 3560e and 3750e platforms do not support
CDP Bypass.
This is documented on the following link:
http://www.cisco.com/c/en/us/products/collateral/ios-nx-os-software/identity-based-networking-services/config_guide_c17-605524.html#wp9000480
Note:Please mark it as answered if it helps to clarify your concern.