Take the 2-minute tour ×
Network Engineering Stack Exchange is a question and answer site for network engineers. It's 100% free, no registration required.

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!

share|improve this question

1 Answer 1

up vote 8 down vote accepted

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.

share|improve this answer
1  
Note: not all switches support this. ('tho modern ones should) –  Ricky Beam Mar 21 at 1:30
    
I suppose it all depends on the IOS version and switch model. –  eric Apr 8 at 18:23

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.