Solved

Configuring a DHCP pool on a cisco 2851

Posted on 2014-09-11
7
639 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 27

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
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!

 
LVL 27

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 27

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Understanding FTPS File transfer is a common requirement in most Enterprises. While there are numerous ways to get a file from Point A to Point B over a network, perhaps the most common method still in use is FTP – File Transfer Protocol. FTP is …
There are no good configuration guides for HP-H3C router to LYNC on the web. :( Big statement, but we havent been able to find one yet. We did find the following document useful, but the information was not enough to use H3C router for use as a L…
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…
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…

932 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

12 Experts available now in Live!

Get 1:1 Help Now