VM201 is being a rogue DHCP server

Hi,

I recently obtained a VM201 and have it set up with a static IP address (DHCP disabled). Then I noticed that a rogue DHCP server had shown up in my network, assigning IP addresses to clients. It turns out that it’s the VM201 that is giving out IP addresses (actually, it seems to only give out 192.168.10.2 in my case - to everyone!):

tcpdump: listening on eth0, link-type EN10MB (Ethernet), capture size 96 bytes
11:33:08.517599 IP (tos 0x0, ttl 100, id 687, offset 0, flags [none], proto UDP (17), length 328) 192.168.10.194.bootps > 255.255.255.255.bootpc: BOOTP/DHCP, Reply, length 300, xid 0x13a2ca1a, Flags [none] (0x0000)
          Client-IP 192.168.10.2
          Your-IP 192.168.10.2
          Client-Ethernet-Address dc:71:44:83:a6:56 (oui Unknown) [|bootp]

I can’t find a way to turn that off which is quite a big problem for me as I don’t want clients on my network to get IP addresses that are assigned by the VM201.

Details:

Ethernet Relay Card Build: 1236 Build date: Sep 07 2012 08:56:42 TCPIP Stack: v5.42 I really hope that someone can help me here.

We will need some more information to look into this. What devices are on your network and how is everything connected?

[quote]I recently obtained a VM201 and have it set up with a static IP address (DHCP disabled).[/quote]What IP adres?

[quote]Then I noticed that a rogue DHCP server had shown up in my network, assigning IP addresses to clients.[/quote]How did you notice? What clients got which IP addresses?

[quote]It turns out that it’s the VM201 that is giving out IP addresses (actually, it seems to only give out 192.168.10.2 in my case - to everyone!):[/quote]How did you know that it turned out ot be the VM201? And who is everyone?

What is your understanding of networks?

I’m quite advanced when it comes to networks. The VM201 has the IP address 192.168.10.194 in 192.168.10.0/24, a DHCP server is active there but the VM201 has been configured with a static IP address:

IP Address: 192.168.10.194
Gateway:    192.168.10.1
Subnet:     255.255.255.0
Prim. DNS:  192.168.10.10
Sec. DNS:   192.168.10.11

MAC Address: 00:04:A3:8D:6C:27 (Microchip Technology)

This is the same IP address that is sending out the DHCP responses, as can be seen in the tcpdump that I pasted earlier, and the DHCP dump below:

---------------------------------------------------------------------------

  TIME: 2013-04-08 13:55:59.246
    IP: 192.168.10.194 (0:4:a3:8d:6c:27) > 255.255.255.255 (ff:ff:ff:ff:ff:ff)
    OP: 2 (BOOTPREPLY)
 HTYPE: 1 (Ethernet)
  HLEN: 6
  HOPS: 0
   XID: 8d204027
  SECS: 0
 FLAGS: 0
CIADDR: 192.168.10.2
YIADDR: 192.168.10.2
SIADDR: 0.0.0.0
GIADDR: 0.0.0.0
CHADDR: dc:71:44:83:a6:56:00:00:00:00:00:00:00:00:00:00
 SNAME: .
 FNAME: .
OPTION:  53 (  1) DHCP message type         5 (DHCPACK)
OPTION:  51 (  4) IP address leasetime      60 (60s)
OPTION:  54 (  4) Server identifier         192.168.10.194
OPTION:   1 (  4) Subnet mask               255.255.255.0
OPTION:   3 (  4) Routers                   192.168.10.194
OPTION:   6 (  4) DNS server                192.168.10.194

Seeing as both the IP address and MAC address match those of the VM201, I am confident that it’s the VM201 that’s running a DHCP server. I noticed because I saw clients getting IP addresses that they’re not supposed to have. The VM201 seems to give out only one IP address, 192.168.10.2. It seems to give this to every client that asks (hence ‘everyone’).

This seems to be caused by the DHCP server that seems to be compiled in in your TCP/IP stack, as the ‘STACK_USE_DHCP_SERVER’ define in TCPIPConfig.h seems to be enable the ‘functionality’ that i’m currently seeing:

#define STACK_USE_DHCP_SERVER // Single host DHCP server

If this is the case then this can probably be easily solved by removing the define and recompiling the TCP/IP stack.

You are 100% correct, we will do our best to get this problem fixed as soon as possible. We still have some other pending bugfixes and feature changes for the VM201, so this may take a little bit of time.

Thank you for reporting this problem

To solve this problem will will need to perform some studying and testing.
We will try to have an update early next week.

Hi.

I have the same problem. When do you think you have a update for the card ?
And where can i find the update ?

Regards Snix

Which operating system are you on? Linux, Windows, Mac OSX, …?

I’m running Windows 7 32/64 bit and IOS on our Iphones/Ipad. We have 2 Android mobiles too.

It seems like all the devices that is set to DHCP, get the IP adress as gateway to the router. Instead af 192.168.1.1 it gets 192.168.1.160 whitch are the fixed ip for VM210.

It’s really a problem, when do you think there is a update ready?

I am having a similar problem, appears the VM201 is acting a DHCP server and confusing our network.

Plugged the VM201 into our work network over the weekend, come Monday morning and none of the staff could obtain an IP address automatically on the client machines.

Unplugged the VM201 and everything returned to normal.

We have a Windows 2012 server acting as the domain controller and DNS server.
A Netgear cable router acting as the DHCP server.
All client machines configured to obtain IP address automatically
And the VM201 has a fixed IP address

Any news on the update?

We are currently working on a tool to easily update the firmware.

For those skilled with command line tools, there is an image file available to upload to the VM201

Download the image file: VM201Build1315.bin

Go to the Windows command prompt and upload the image with tftp:

tftp <vm201-ip-address> put "VM201Build1315.bin"

You may need to install tftp via the Add/Remove Windows Features

Hi!
I have the same problem and tested updating however the vm201 does not accept the firmware
Wireshark shows the the tftp transfer beeing retried but vm201 does not ACK the file.

I’m running linux and i’m executing “tftp VM201-ipaddress -c put VM201Build1315.bin”

Has anyone succeeded with the upgrade?

///Tromas

I had the same problem with the tftp upload failing when using an linux based tftp client/third party windows tftp client. It only worked using the ‘stock’ Windows tftp client for me.

Also, we’ve been running with the latest firmware for a while now (after I had been contacted by a Velleman technician) and the problems I mentioned earlier have been resolved.

Thanks, worked on windows.
Couldn’t really just let this go. Running a wireshark trace while “putting” the file I found a difference in the trace.

Linux sets the “Don’t Fragment” (0x02) flag on the TFTP UDP data packets, In windows this is set to 0x00.

I can’t find any option in linux tftp client to set the option, guess echoing 1 or 0 into something in /proc/sys/net/ipv4/ would do the trick.

This was a nasty problem (for me at least)! The VM201 was just one of quite a number of changes I recently added to my network (I know…). It took me some time to figure out that some new device was acting as a new, second DHCP server, handing out “illegal” IP addresses, or actually constantly the same one: 192.168.1.2 in my case, after which I ran into lots of different issues. Initially it did not appear to make sense that the VM201 would also act as a DHCP server but after (eventually…) unplugging it and seeing things going to normal again in my rather complex home network I decided to take a deeper look into the VM201 fora and issues. And voila, I ran into this entry.

Using a Windows XP SP3 computer I managed to upload the bin file to the VM201 using TFTP (Windows7 did not respond to a TFTP command). I have not yet tested whether this firmware fixes my problem but will test that in the next couple of days. Just wanted to reassure others that my firmware release 1236 indeed did have a similar problem and that I eventually successfully managed to TFTP the new firmware to the VM201.

Further to the above, herewith confirming that the VM201 no longer acts as a DHCP server after successfully installing the latest firmware linked earlier in this thread.

Thank you for helping; hope this helps others too.

I don’t know if i’m the only one who still struggling to download the the image file: VM201Build1315.bin
the link you pointed doesn’t work.
please post a valid one.
I’m waitting.

Best Regards.
justin.

The link is working perfectly. It is probably your browser that is desperately trying to figure out what application to open it in instead of simply downloading it.

Downloading the zipped version will probably be less of a problem

Thank you very much; this on work perfectly.
Thaks a lot.

Best Regards.
Justin.

Sory,
Next question: how to updat the device(VM201)?
in the GUI no way,(i don’t see) please help me.

best regards.

Currently this is done using the Windows command prompt
viewtopic.php?f=37&t=8981#p35141