Cisco Systems DHCP relay agent versus Option 3; Routers Option

Bookmark this page:  YahooMyWeb Yahoo!  Google Google  Windows Live Favorites Windows Live  del.icio.us del.icio.us  digg digg  Add to Netscape Netscape
Subject Author Date
DHCP relay agent versus Option 3; Routers Option lcorrigan 09-25-06
Posted by lcorrigan on September 25, 2006, 10:20 am
Please log in for more thread options
Could someone explain to me the difference between using a router as a
DHCP relay agent (option 82) and configuring option 3 (routers option)
on the DHCP server?
I currently need to set up a server to use option 3 to reproduce an
issue in a test environment but I need a good "real-life" scenario to
assist. Would it be something like this for option 3?

DHCPclient >>>>>>> Remote router >>>>>>> DHCP Server
Where the "DHCP Server" would send the "Remote Router" client-side IP
address in the option 3 section of the DHCP Offer ? Or does the the
remote router need to be set as a relay-agent to have this make sense?

Would it ever make sense to have:

DHCPclient>>>>>>>DHCP Server, where Option 3 is still necessary in the
DHCP Offer? ie: Option 3 contains the DHCP Server's client side
address?

I already know how to set up option 3 and relay agents / helper ip
address but just need more on the theory of the option 3 and the
scenarios where it would be used.
Any help on this would be appreciated.


Posted by Roman Nakhmanson on September 25, 2006, 6:02 pm
Please log in for more thread options
Hi

here is real-life scenario:

host-----10.1.1.0/24--router1---router2----router3---router4-------10.1.12.0/24----DHCP-server

router1 has ip-helper dhcp-server-ip

make sure ALL routers from host to server DON'T have "no service dhcp"
(usually it's enabled by default)

on the server (here is part of the config file for isc-dhcpd):
subnet 10.1.1.0 netmask 255.255.255.0 {
range 10.1.1.101 10.1.1.200;
option routers 10.1.1.1;
}

hope that helped
Roman Nakhmanson




Icorrigan wrote:
> Could someone explain to me the difference between using a router as a
> DHCP relay agent (option 82) and configuring option 3 (routers option)
> on the DHCP server?
> I currently need to set up a server to use option 3 to reproduce an
> issue in a test environment but I need a good "real-life" scenario to
> assist. Would it be something like this for option 3?
>
> DHCPclient >>>>>>> Remote router >>>>>>> DHCP Server
> Where the "DHCP Server" would send the "Remote Router" client-side IP
> address in the option 3 section of the DHCP Offer ? Or does the the
> remote router need to be set as a relay-agent to have this make sense?
>
> Would it ever make sense to have:
>
> DHCPclient>>>>>>>DHCP Server, where Option 3 is still necessary in the
> DHCP Offer? ie: Option 3 contains the DHCP Server's client side
> address?
>
> I already know how to set up option 3 and relay agents / helper ip
> address but just need more on the theory of the option 3 and the
> scenarios where it would be used.
> Any help on this would be appreciated.


Posted by lcorrigan on September 27, 2006, 1:18 pm
Please log in for more thread options

Roman Nakhmanson wrote:
> Hi
>
> here is real-life scenario:
>
>
host-----10.1.1.0/24--router1---router2----router3---router4-------10.1.12.0/24----DHCP-server
>
> router1 has ip-helper dhcp-server-ip
>
> make sure ALL routers from host to server DON'T have "no service dhcp"
> (usually it's enabled by default)
>
> on the server (here is part of the config file for isc-dhcpd):
> subnet 10.1.1.0 netmask 255.255.255.0 {
> range 10.1.1.101 10.1.1.200;
> option routers 10.1.1.1;
> }
>
> hope that helped
> Roman Nakhmanson
>
>
>
>
> Icorrigan wrote:
> > Could someone explain to me the difference between using a router as a
> > DHCP relay agent (option 82) and configuring option 3 (routers option)
> > on the DHCP server?
> > I currently need to set up a server to use option 3 to reproduce an
> > issue in a test environment but I need a good "real-life" scenario to
> > assist. Would it be something like this for option 3?
> >
> > DHCPclient >>>>>>> Remote router >>>>>>> DHCP Server
> > Where the "DHCP Server" would send the "Remote Router" client-side IP
> > address in the option 3 section of the DHCP Offer ? Or does the the
> > remote router need to be set as a relay-agent to have this make sense?
> >
> > Would it ever make sense to have:
> >
> > DHCPclient>>>>>>>DHCP Server, where Option 3 is still necessary in the
> > DHCP Offer? ie: Option 3 contains the DHCP Server's client side
> > address?
> >
> > I already know how to set up option 3 and relay agents / helper ip
> > address but just need more on the theory of the option 3 and the
> > scenarios where it would be used.
> > Any help on this would be appreciated.


Similar ThreadsPosted
DHCP relay agent versus Option 3; Routers Option September 25, 2006, 10:20 am
Option 82 in ios dhcp server March 11, 2005, 8:09 am
Dhcp Relay Agent And Acl On Sw 3750, DHCP Relay Agent and ACL on Sw 3750 September 4, 2006, 9:50 pm
Cisco DHCP Relay Agent - strange thing.. January 20, 2006, 8:26 am
DHCP Configuration - Relay Agent - IP Address Assignment August 12, 2007, 8:42 am
SSH only option January 21, 2008, 5:17 am
SSH username and password only option May 29, 2008, 2:44 pm
VPN Client / save-password option July 10, 2005, 8:01 am
Option 130 ascii "MITEL IP PHONE" October 12, 2009, 4:40 am
Cisco VPN Client - save password option December 26, 2005, 7:43 am
snmp notification option "syslog" gone AWOL on IOS 12.3 (5b) IP Plus April 10, 2006, 8:03 pm
snmp notification option "syslog" gone AWOL on IOS 12.3 (5b) IP Plus April 10, 2006, 10:25 pm
Range as option within NAT command - for Cisco people April 24, 2006, 10:01 am
Adding Option 82 to a Windows 2003 Server October 3, 2006, 2:25 pm
Cisco Wireless APs and Backhauling Question no hardwired option February 25, 2007, 10:24 pm
Residential Cabling Guide

Home Cabling Guide

Finally, an instantly downloadable book that saves you thousands in home improvement dollars! Enjoy living in 21st century technology-advanced home while increasing its selling value and competitive advantage on the real estate market. Whether your cabling is for home office or high-tech leisure, you can wire your home yourself or learn "wirish" to speak with your cabling contractors in their language!

Learn More