Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. If you'd prefer to explore, try our test area to get started. And see here for current known issues.

New Member

DHCP and Vlan

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
Purple

Re: DHCP and Vlan

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

1 REPLY
Purple

Re: DHCP and Vlan

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

246
Views
0
Helpful
1
Replies