Configuring a DHCP pool on a cisco 2851

I created a sub interface on my cisco 2851 router with the following details:

GigabitEthernet0/1.6 is up, line protocol is up
  Hardware is MV96340 Ethernet, address is 001b.54b7.e181 (bia 001b.54b7.e181)
  Description: Test
  Internet address is 10.50.70.1/24
  MTU 1500 bytes, BW 1000000 Kbit/sec, DLY 10 usec,
     reliability 255/255, txload 1/255, rxload 1/255
  Encapsulation 802.1Q Virtual LAN, Vlan ID  70.
  ARP type: ARPA, ARP Timeout 04:00:00
  Last clearing of "show interface" counters never

What I would like to do now is create a DHCP Pool for this network and am looking for a little guidance. Any help would be appreciated.
scusackAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

scusackAuthor Commented:
Below is what I have configured.  Do I need

ip dhcp pool Test
   network 10.50.70.0 255.255.255.0
   dns-server 199.247.157.38
   default-router 10.50.70.1
   lease 3

What is the purpose of the ip dhcp excluded-address?  Is this for a range that I mat want to statically assign Ip address for devices?
0
JustInCaseCommented:
Yes, ip dhcp excluded-address is for static range - addresses that will not be in pool. IP adress of router, servers, etc.
If you are not directly attached to the router that assigns IP addresses, you may need ip helper-address x.x.x.x
0
scusackAuthor Commented:
How would I assign this DHCP pool to VLAN 70?
0
Cloud Class® Course: C++ 11 Fundamentals

This course will introduce you to C++ 11 and teach you about syntax fundamentals.

JustInCaseCommented:
Create subinterface for vlan 70 on router for network 10.50.70.0

R1# configure terminal
R1(config-subif)# interface gigabitethernet0/1.70
R1(config-subif)# encapsulation dot1q 70
R1(config-subif)# ip address 10.50.70.1

ip dhcp pool Test
   network 10.50.70.0 255.255.255.0
   dns-server 199.247.157.38
   default-router 10.50.70.1

Since host with default gateway 10.50.70.1 asks for IP address router knows ip range of addresses.

On switch you need to create trunk port with dot1q encapsulation to router, and enable VLAN 70 on trunk
0
scusackAuthor Commented:
So I actually had the following:

R1# configure terminal
R1(config-subif)# interface gigabitethernet0/1.6
R1(config-subif)# encapsulation dot1q 70
R1(config-subif)# ip address 10.50.7.1

do I need to change it to:

R1# configure terminal
R1(config-subif)# interface gigabitethernet0/1.70
R1(config-subif)# encapsulation dot1q 70
R1(config-subif)# ip address 10.50.7.1

I was just keeping with this companies existing subinterfaces for example 1.5 is for Vlan 50, 1.4 for 40 etc..
0
JustInCaseCommented:
No you don't need to change, but it is a good practice it is much easier for debugging.
when subnet is
for VLAN 70
0/1.70
encapsulation dot1q 70
ip address 10.0.70.1

for VLAN 50
0/1.50
encapsulation dot1q 50
ip address 10.0.50.1

any VLAN and IP address numbers are good...
but keep it simple - it much more easier to track VLAN-s for debugging if logic is always same
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
scusackAuthor Commented:
Excellent!

Thank You
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
IP Telephony

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.