Cisco Interface IP Obtained from DHCP

Normally on VLAN’s and interfaces, I’m use to setting static IP’s on these. I had a situation where I had to have a WAN interface obtain an IP address from DHCP and it could not be static.

Here’s how to do it.

interface Vlan1
Description ***WAN INTERFACE***
ip address dhcp

Simple as that, yea I was unaware that I also had to change the default route.

from this

ip route Vlan1

to this

ip route Vlan1 dhcp

If you have an access list on the VLAN ensure you allow dhcp through on this. The same is for an interface if it is a Layer 3 interface.

Tagged , , , , , ,

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: