?
Solved

Configuring a DHCP pool on a cisco 2851

Posted on 2014-09-11
7
Medium Priority
?
670 Views
Last Modified: 2014-09-11
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.
0
Comment
Question by:scusack
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
7 Comments
 

Author Comment

by:scusack
ID: 40316995
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
 
LVL 30

Expert Comment

by:Predrag
ID: 40317019
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
 

Author Comment

by:scusack
ID: 40317040
How would I assign this DHCP pool to VLAN 70?
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 30

Expert Comment

by:Predrag
ID: 40317067
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
 

Author Comment

by:scusack
ID: 40317085
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
 
LVL 30

Accepted Solution

by:
Predrag earned 2000 total points
ID: 40317122
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
 

Author Comment

by:scusack
ID: 40317166
Excellent!

Thank You
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Almost all Internet protocol telephones have built-in switches at the back that allow you to connect your personal computer to one port and use the other port to connect your phone to to a Cisco switch.   Why we need to connect the PC to the pho…
As companies replace their old PBX phone systems with Unified IP Communications, many are finding out that legacy applications such as fax do not work well with VoIP. Fortunately, Cloud Faxing provides a cost-effective alternative that works over an…
Viewers will learn how to properly install and use Secure Shell (SSH) to work on projects or homework remotely. Download Secure Shell: Follow basic installation instructions: Open Secure Shell and use "Quick Connect" to enter credentials includi…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question