DHCP Server

Hi All

i dont know if this is a configuration problem or id10t error. :confused:

I am running v3.10 on a RB1000 as a router in my office with about 50 users connecting to it. The ROS is my DHCP server which hands out addresses to all my users, which have a variety of PC and MAC’s.
The problem comes in where the IP address gets assigned and yet they cannot go on the internet or receive mail but not all the users just a few and randomly. Strange thing is i can ping other machines on the network just not the gateway (ROS).
The log file tells me that the IP has been assigned. And i have no firewall rules enabled.

here is my configuration:

/ip dhcp-server
add add-arp=yes address-pool=dhcp_pool1 always-broadcast=yes authoritative=after-2sec-delay bootp-support=static disabled=no interface=Office_Lan lease-time=52w1d name=dhcp1
/ip dhcp-server config
set store-leases-disk=5h
/ip dhcp-server lease
add address=192.168.0.210 comment="" disabled=no mac-address=00:13:02:B1:0B:21 server=dhcp1
add address=192.168.0.214 client-id=1:0:1e:c2:bd:ee:8c comment="" disabled=no mac-address=00:1E:C2:BD:EE:8C server=dhcp1
add address=192.168.0.212 comment="" disabled=no mac-address=00:16:6F:3D:14:5F server=dhcp1
add address=192.168.0.211 client-id=1:0:17:f2:ee:5f:53 comment="" disabled=no mac-address=00:17:F2:EE:5F:53 server=dhcp1
add address=192.168.0.215 comment="" disabled=no mac-address=00:12:F0:E0:71:7B server=dhcp1
add address=192.168.0.216 always-broadcast=yes client-id=1:0:1f:3b:21:a9:43 comment="" disabled=no mac-address=00:1F:3B:21:A9:43 server=dhcp1
add address=192.168.0.149 client-id=1:0:13:49:a5:27:26 comment="Static for Accounting Package" disabled=no mac-address=00:13:49:A5:27:26 server=dhcp1
add address=192.168.0.86 comment="" disabled=no mac-address=00:1E:52:83:AD:77
/ip dhcp-server network
add address=192.168.0.0/24 comment="" dns-server=168.210.2.2,196.36.166.16,196.14.239.2 gateway=192.168.0.254 netmask=24 ntp-server=192.168.0.254

Will appreciate any help :slight_smile:

Greetings!

Do you have a gateway assigned?
/ip route add gateway=xxx.xxx.xxx.xxx
Replace xxx.xxx.xxx.xxx with your gateway.

You might also need a NAT entry too. If there is no other masquerade, then:
/ip firewall nat add chain=srcnat action=masquerade out-interface=ether1
if ether1 is the way to the internet.

Hi there

Yea i have a gateway and i the masquerade is there
The weird thing is when the clients connect in the log it tells me that it has assigned them a IP but they cannot even ping the gateway or the actual RB that is handing out the IP’s
This morning again i had the issue this time thank goodness only with two staff members.
This is making me grey!! :open_mouth: :slight_smile:

Maybe you should check the settings on the pcs… also check the ARP table in ROS. I believe the problem is in the pcs settings

I assume you are using arp=reply-only on your interface. Can you check MT arp table to see if the arp entry is there? Can you check the leases and see the lease? Is it possible there is another DHCP server handing out IPs?

Thanks for the replies. I was using proxy-arp on the interface. I have changed it to reply-only will see if that makes a difference.

The entries are in the ARP table and in the lease table too. The lease time is set to 1 year and sometimes the IP’s do not dissapear out of the lease table i asume this is because i have set the lease time to be 1 year?

I have also changed all the machines according to this article and will wait and see this morning if anyone does have issues again.
http://support.microsoft.com/kb/928233

I must say on the Vista machines the problem seems to have gone - but unfortunately still there on the XP machines. :frowning:

Just a update here. v3.11 sorted this problem :confused: :sunglasses: