Solved

Configuring a DHCP pool on a cisco 2851

Posted on 2014-09-11
7
662 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 Jovic
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
Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

 
LVL 30

Expert Comment

by:Predrag Jovic
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 Jovic earned 500 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

Industry Leaders: 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!

Question has a verified solution.

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

This is the first one of a series of articles I’ll be writing to address technical issues that are always referred to as network problems. The network boundaries have changed, therefore having an understanding of how each piece in the network  puzzl…
Learn how to PXE Boot both BIOS & UEFI machines with DHCP Policies and Custom Vendor Classes
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…
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…

707 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