Switch – SVI as a DHCP client

dhcpinterfacemac addressswitchvlan

Can a Cisco switch be configured to have a management interface (or SVI, or VLAN interface) become a DHCP client, therefore obtaining its own IP address on the respective network?

This is out of curiousity, as I have not been able to come across the correct options in the CLI.

It may not be possible due to the same MAC address of the virtual interface being used in various transmissions on the switch, but please let me know!

Best Answer

You can configure an SVI as a dhcp client by using the following command within the SVI.

ip address dhcp

The same command is used on physical interfaces as well.

Related Topic