cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1576
Views
0
Helpful
3
Replies

How to configure VLAN with DHCP.. What is the use of ip helper-address...

vinothlb1
Level 1
Level 1

How to configure VLAN with DHCP.. What is the use of ip helper-address...

3 Replies 3

vishwancc
Level 3
Level 3

Hi,

Router(config)# ip dhcp pool mypool

Specify the network and subnet for the addresses you want to use from the pool.

Router(dhcp-config)# network 1.1.1.0 /8 Specify the DNS domain name for the clients.

Router(dhcp-config)#domain-name mydomain.comSpecify the primary and secondary DNS servers.

Router(dhcp-config)#dns-server 1.1.1.10 1.1.1.11 Specify the default router (i.e., default gateway).

Router(dhcp-config)#default-router 1.1.1.1 Specify the lease duration for the addresses you're using from the pool.

Router(dhcp-config)#lease 7 Exit Pool Configuration Mode.

Router(dhcp-config)#exit This takes you back to the global configuration prompt. Next, exclude any addresses in the pool range that you don't want to hand out.

For example, let's say that you've decided that all IP addresses up to .100 will be for static IP devices such as servers and printers. All IP addresses above .100 will be available in the pool for DHCP clients.

Here's an example of how to exclude IP addresses .100 and below:

Router(config)#ip dhcp excluded-address 1.1.1.0 1.1.1.100

If for some reason your DHCP server is located behind the router the DHCP discovery message had to cross the router to reach the server , these are broadcast messages which router will not forward until you give the command ip helper-address.

Chao

Vishwa

arianto.wibowo
Level 1
Level 1

Hi Vinoth,

use the following template if you use switch as DHCP server :

ip dhcp pool VLANx

network x.x.x.x x.x.x.x

default-router x.x.x.x

dns-server x.x.x.x

lease 3

If you use another device you can use command :

"ip helper-address x.x.x.x"

Amit Singh
Cisco Employee
Cisco Employee

Is it that you want to configure the DHCP pool for the hosts in the VLAN to get the DHCP address. If yes then use the commands/ DHCP pool configuration as posted by the poster above.

If you want to have the Vlan interface pick up the IP address via DHCP then you have to configure " ip address dhcp " under the SVI interface.

"IP helper-address" command is used to forward the DHCP requests over an if you have your DHCP server located in a different subnet / remote site.

http://www.cisco.com/en/US/docs/ios/12_3t/ip_addr/command/reference/ip1_i1gt.html#wp1169356

-amit singh

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:

Innovations in Cisco Full Stack Observability - A new webinar from Cisco