cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
546
Views
0
Helpful
1
Replies

DHCP and Vlan

nkateko
Level 1
Level 1

i've got a 1700 router with subinterface fast ethernet 2 assigned to vlan 2 with dot1q trunking.i want to setup dhcp on the router.the native vlan is not used.i'm only using vlan 2.will the hosts receive ip addresses automatically for vlan 2 or do i need to setup helper addresses ?

1 Accepted Solution

Accepted Solutions

pkhatri
Level 11
Level 11

Hi,

You can indeed set up the router to be a DHCP server, which means that you will not need to configure any helper addresses.

If a DHCPDISCOVER message comes in over your fastethernet sub-interface, the router will respond with an address.

Here's a sample config:

service dhcp

!

ip dhcp pool DCHPPool1

network ! network and mask you want to assign

default-router ! ip address of router

dns-server

!

ip dhcp excluded-address

(since you don't want it handing out addresses such as the router's address)

Hope that helps - pls rate the post if it does.

Regards,

Paresh

View solution in original post

1 Reply 1

pkhatri
Level 11
Level 11

Hi,

You can indeed set up the router to be a DHCP server, which means that you will not need to configure any helper addresses.

If a DHCPDISCOVER message comes in over your fastethernet sub-interface, the router will respond with an address.

Here's a sample config:

service dhcp

!

ip dhcp pool DCHPPool1

network ! network and mask you want to assign

default-router ! ip address of router

dns-server

!

ip dhcp excluded-address

(since you don't want it handing out addresses such as the router's address)

Hope that helps - pls rate the post if it does.

Regards,

Paresh