Dhcp pool config

I need to delete the dhcp pool on a cisco 2800 router and start a new one
does anybody know the commands to do this

Thanks
fbrown333Asked:
Who is Participating?
 
Jim_CoyneCommented:
ip dhcp excluded-address 70.167.180.137 70.167.180.137 <----exclude only the routers address

ip dhcp pool UNTRUSTED
   network 70.167.180.136 255.255.255.252
   dns-server 209.242.128.100
   default-router 70.167.180.137 255.255.255.252   <----Default router should be on same network, and since only this routers interface and the one guest take up all of the IPs in the network it must be 70.167.180.137 255.255.255.252
!
int fa0/1
description connected to guest VLAN
ip address 70.167.180.137 255.255.255.252

Now the router will assign the 70.167.180.138 address to the client. Also note that 70.167.180.136 255.255.255.252 is a completely different network then 70.164.104.1 255.255.255.224, so you may need to configure routing.

 
0
 
Jim_CoyneCommented:
config t
no ip dhcp pool "nameofthepool"

then recreate a new one

ip dhcp pool "newpoolname"
network x.x.x.x
dns server x.x.x.x
default route x.x.x.x
0
 
fbrown333Author Commented:
Sorry one last question what does the network ip address point to
0
WEBINAR: 10 Easy Ways to Lose a Password

Join us on June 27th at 8 am PDT to learn about the methods that hackers use to lift real, working credentials from even the most security-savvy employees. We'll cover the importance of multi-factor authentication and how these solutions can better protect your business!

 
Jim_CoyneCommented:
If you are giving out ip's in the 192.168.1.0/24 range  it would say 192.168.1.0 (basically the network that is going to recieve IP leases) Atleast one interface on the router must also be in this network.
0
 
Jim_CoyneCommented:
you can also exclude ip address with this command

ip dhcp excluded-address 192.168.1.1 192.168.1.10 (this says don't assign .1 to .10)
0
 
fbrown333Author Commented:
ok this were im stuck
when i put in the ip of my untrust router say its x.x.x.138 this is serial 0
the router makes the network ip x.x.x.136
0
 
fbrown333Author Commented:
!
ip tcp synwait-time 10
no ip dhcp use vrf connected
ip dhcp excluded-address 70.164.104.3 70.164.104.16
!
ip dhcp pool untrusted
   network 70.167.180.136 255.255.255.252
   dns-server 209.242.128.100
   default-router 70.164.104.1 255.255.255.224
!
!
here is the config but i dont get a ip from it
0
 
Jim_CoyneCommented:
for a /30 network, 136 is the network number, the next network is 140, then 144 ...etc.

70.167.180.136 is the network number
70.167.180.137 host
70.167.180.138 host
70.167.180.139 broadcast

So with this config you can only send 1 lease since this side plus the lease is two hosts.
Are you sure that is what you want to do?

maybe ip unnumbered is what you want?
0
 
fbrown333Author Commented:
what is ip unnumbered
0
 
Jim_CoyneCommented:
It basically saves IP addresses, you can have a point to point link with no ip addresses. The following is a basic example.

Side A:
int s1/0
encap ppp
ip unnumbered e0/0

Side B:
int s1/0
encap ppp
ip unnumbered e0/0

http://www.cisco.com/warp/public/701/20.html
0
 
fbrown333Author Commented:
no, I had this working at one time but I forgot how I had it
my internet router is pluged into a untrust switch and thats were I pug in vistors or when I need a out side ip, this way the visitors dont become part of my network.

this is how it works
internet - router - switch - firewall

my dchp address should be for the users pluged into the switch.
0
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.

All Courses

From novice to tech pro — start learning today.