×

Warning message

  • Cisco Support Forums is in Read Only mode while the site is being migrated.
  • Cisco Support Forums is in Read Only mode while the site is being migrated.

Cisco ASA DHCP Server and Relay agent

Answered Question
Apr 4th, 2014
User Badges:

Hi Guys,

 

Is it possible to allow DHCP Server on some of the interfaces/subinterfaces and DHCP relay agent on other subinterface on a Cisco ASA?

 

I have a Cisco ASA what is DHCP server for several vlans.

I need MAC address reservation on one. As ASA doesn't support this feature I decided to set on the my Cisco switch.

The switch is connected to the ASA (there is no DHCP server on this subinterface)

IP of the switch is on a different subinterface like MAC reservation (10.50.30.100 interface sun_devices).

When I wish to activate the DHCP relay agent I got the following error message:

 

asa01(config)#dhcprelay server 10.50.30.100 sun_devices
asa01(config)#dhcprelay setroute sun_admins
asa01(config)#dhcprelay timeout 60

asa01(config)# dhcprelay enable sun_admins
DHCPRA: can't enable DHCP Relay when DHCPD is running on any interface
       Use the 'no dhcpd enable <server_ifc>' command
       on any interface that has been enabled.
dhcprelay command failed

 

Many thanks!

 

 

 

 

Correct Answer by Ruben C about 3 years 4 months ago

optional you can push all DHCP scopes for the switch and apply the dhcp relay on firewall interfaces
 

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 5 (1 ratings)
Loading.
Correct Answer
Ruben C Fri, 04/04/2014 - 04:06
User Badges:
  • Bronze, 100 points or more
  • Community Spotlight Award,

    Portuguese Best Publication, April 2017

optional you can push all DHCP scopes for the switch and apply the dhcp relay on firewall interfaces
 

Steve Block Fri, 04/04/2014 - 04:30
User Badges:

Yes, that's an option, but I want to keep other DHCP servers on the ASA.

Ruben C Fri, 04/04/2014 - 04:45
User Badges:
  • Bronze, 100 points or more
  • Community Spotlight Award,

    Portuguese Best Publication, April 2017

i guess you are running dhcp enable on the interface you are trying using relay. You need to delete first the scope/interface config regarding it. If it still not working check if for that version has caveats about it

Steve Block Fri, 04/04/2014 - 05:18
User Badges:

These are sub-interfaces of a physical interface.

ethernet 0/1.3 sun_devices

ethernet 0/1.123 sun_admins

ethernet 0/1.124 further vlans...

DHCP hasn't set to sun_devices and sun_admins, but enabled on the further VLANs.

Need I remove DHCP server from all sub-interfaces?

Ruben C Fri, 04/04/2014 - 06:44
User Badges:
  • Bronze, 100 points or more
  • Community Spotlight Award,

    Portuguese Best Publication, April 2017

remove the pool and DHCP associated that particular interface and apply the dhcprelay command and the dhcprelay server

Steve Block Fri, 04/11/2014 - 00:43
User Badges:

I tried this suggestion, but didn't work. I think, if there is a dhcp server on the ASA there is no way to DHCP Relay on it. Finally I moved all of the DHCPs to the layer 3 switch.

Actions

This Discussion