cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
996
Views
0
Helpful
5
Replies

dhcp server functionality in cisco routers and switches

sarahr202
Level 5
Level 5

Hi everybody.

1) Is Ios- based dhcp server functionality only available in cisco routers? What about ios based multilayer switch? Can these switches provide dhcp server services ?

2)   Can  a router acting as dhcp relay agent insert option 82 ?

3) By default, IOS -based dhcp server drops dhcp message containing option 82,  this behavior can be changed using :

ip dhcp intformation trusted

What about if ios-based dhcp server receive option 82 with GIADD field set to zeros, will ios-based  dhcp server still drops the dhcp message though it is configured with"ip dhcp information trusted" ?

Thanks and have a great weekend.

3 Accepted Solutions

Accepted Solutions

JohnTylerPearce
Level 7
Level 7

1) You can run an "IOS-based" dhcp server on Cisco routers and Cisco L3 switches.

2) Yes I believe it can

3) I dunno.

View solution in original post

hi,

as u already know dhcp uses giaddr field to distinguish where (which subnet) this packet is comming from, so it can assign an address from the respective pool. I remember once i read in an article; if the “giaddr” is missing or zero, then option 82 serves as refinement to the request, allowing the DHCP server to select a “sub-range” in the pool.

by the way a packet with giaddr is all good for ios dhcp.

by default; Cisco IOS dhcp server can use information provided by option 82 to allocate IP addresses. and its within the feature of dhcp class capability. this feature is enabled by default, and if not, re-enable it using: ip dhcp use class

plz Rate if it helped.

Soroush.

Hope it Helps!

Soroush.

View solution in original post

default; it accepts it as long as there is valid a giaddr field, its not zero!

Hope it Helps!

Soroush.

View solution in original post

5 Replies 5

JohnTylerPearce
Level 7
Level 7

1) You can run an "IOS-based" dhcp server on Cisco routers and Cisco L3 switches.

2) Yes I believe it can

3) I dunno.

Hi JohnTylerPearce

I found some info with regard to " ip dhcp relay information trusted" command.

"If the relay agent inserts option 82 but does not  set the giaddr field in the DHCP packet, the DHCP server interface must  be configured as a trusted interface by using the

ip dhcp relay information trusted

global configuration command. This configuration prevents the server from dropping the DHCP message. "

The question is:  what is the default behavior of an ios-based dhcp server  if it receives a dhcp message with option 82 and GIADD is set to some ip say 199.199.199.1? Will it drop it? What do we need to do to make iops based dhcp server accepts such message?

thanks and havea great weekend

hi,

as u already know dhcp uses giaddr field to distinguish where (which subnet) this packet is comming from, so it can assign an address from the respective pool. I remember once i read in an article; if the “giaddr” is missing or zero, then option 82 serves as refinement to the request, allowing the DHCP server to select a “sub-range” in the pool.

by the way a packet with giaddr is all good for ios dhcp.

by default; Cisco IOS dhcp server can use information provided by option 82 to allocate IP addresses. and its within the feature of dhcp class capability. this feature is enabled by default, and if not, re-enable it using: ip dhcp use class

plz Rate if it helped.

Soroush.

Hope it Helps!

Soroush.

Thanks Soroush

by default; Cisco IOS dhcp server can use information provided by option  82 to allocate IP addresses. and its within the feature of dhcp class  capability. this feature is enabled by default, and if not, re-enable it  using:

ip dhcp use class

Well  what I understand from above is what cisco ios dhcp sever does with information provided by option 82.  The question  is :What is the default behavior if cisco ios dhcp server receives option 82? does it drop it? does it accept it?

thanks and have a great weekend.

default; it accepts it as long as there is valid a giaddr field, its not zero!

Hope it Helps!

Soroush.
Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Review Cisco Networking products for a $25 gift card