dhcp cisco806 basic setup question/problem...

I have a cisco 806 router.

Two(2) ethernet ports on the router.

Ethernet1 is connected to the internet, (receiving it's ip from an external dhcp server).

Ethernet0 is connected to my LAN,(static routing is working fine).

I want the router to assign IP's to internal machines,(which don't have static IPs assigned), using dhcp. The IP's it is to assign are the range: 192.168.0.129192.168.0.254.

It wont assign anything! What am I missing?

Partial config follows: /////////////////////////////////////////// ! version 12.2 ! ip dhcp pool main import all network 192.168.0.128 255.255.255.128 default-router 192.168.0.1 ! interface Ethernet0 ip address 192.168.0.1 255.255.255.0 no ip redirects ip nat inside no cdp enable hold-queue 32 in hold-queue 100 out ! interface Ethernet1 ip address dhcp no ip unreachables ip nat outside no cdp enable ! ip nat inside source list 101 interface Ethernet1 overload ! access-list 101 permit ip 192.168.0.0 0.0.0.255 any ! ///////////////////////////////////////////

Reply to
Captain
Loading thread data ...
  1. Please post izOS version in use

  1. Suggested config change

! configure default route

ip route 0.0.0.0 0.0.0.0 dhcp

  1. debug DHCP

conf t logging buffer 10000 debug no logging console end

wri mem

clear log debug ip dhcp server events debug ip dhcp server packets

Post debug output

Reply to
Merv

Version 12.2(2) "flash:c806-sy6-mz.122-2.XI.bin"

dhcp is not an option here.

Reply to
Captain

I do this a lot and it works.

I have no idea if this is the issue however your DHCP pool and your LAN address have inconsistent netmasks.

ip dhcp excluded-address 192.168.0.1 192.168.0.127 ip dhcp pool main import all network 192.168.0.0 255.255.255.0 default-router 192.168.0.1

Is what I use.

Merv said:- ip route 0.0.0.0 0.0.0.0 dhcp

Thanks. Not seen that one, in the UK ADSL is usually PPPoA.

Reply to
anybody43

Thanks, that did the job!

//////////////////////////////////////////////////////////// >

Reply to
Captain

Cabling-Design.com Forums website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.