Solved

Configuring a DHCP pool on a cisco 2851

Posted on 2014-09-11
7
635 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
  • 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 26

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
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 
LVL 26

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 26

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

Scale it in WD Gold

With up to ten times the workload capacity of desktop drives, WD Gold hard drives employ advanced technology to deliver among the best in reliability, capacity, power efficiency and performance.

Join & Write a Comment

SSL is a very common protocol used these days when browsing the web.  The purpose is to provide security to communication, but how does it do it?  There are several pieces at work that have to be setup before SSL will even work and it requires both …
We recently endured a series of broadcast storms that caused our ISP to shut us down for brief periods of time. After going through a multitude of tests, we determined that the issue was related to Intel NIC drivers on some new HP desktop computers …
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…

760 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

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now