WIZnet Developer Forum

Serial command for setting DHCP range

Hello,

I’m trying to use a serial command to set the DHCP start/end range (ie ) but it doesn’t work for me.

Here is the command sequence that I have used

<+++><Sv1.1.28><S192.168.16.11_192.168.16.50>
Okay I have now set DHCP and read the setting so now I try to set it:
<WH192.168.0.10_192.168.0.99><2>><S192.168.16.11_192.168.16.50>
<2> means incorrect parameters, so lets try using the example code from the serial configuration guide:
<WH192.168.1.10_192.168.1.100><2>><S192.168.16.11_192.168.16.50>
Maybe I need leading zeros
<WH192.168.001.010_192.168.001.0100><2>><S192.168.16.11_192.168.16.50>

If I change the command through the web interface I and read the results I get:
<S192.168.0.11_192.168.0.50>

Please help.

Thankyou for your time,
Paul

Hi

I think that you have to change your device IP using command.
Currently, Your Device IP might be 192.168.16.1 or 192.168.16.254. So It’s DHCP pool range can use 192.168.16.11 ~ 192.168.16.50.
You can’t use 192.168.xxx.xxx ~ 192.168.xxx.xxx range excepted 192.168.16.xxx address.

So I recommand that you will change your device IP using <WI192.168.0.xxx> if you want use range of IP ( 192.168.0.xxx ~ 192.168.0.xxx )

Hello,

Sorry for my absence but unfortunately that doesn’t seem to be the problem
<S192.168.0.1>
<S255.255.255.0>
<S192.168.0.1>

<S192.168.16.10_192.168.16.102>
<WH192.168.0.10_192.168.0.100><2>

You can see that my IP address is already set correctly.

Hello,

Actually a little more information:
(In case it matters this is using the DEV kit)

<S192.168.0.1>
<S192.168.16.10_192.168.16.102>
<WH192.168.16.10_192.168.16.102>
<WH192.168.16.10_192.168.16.100>
<WH192.168.0.2_192.168.0.3><2>
<WH192.168.0.20_192.168.0.30><2>
<WH192.168.16.14_192.168.16.104>
<WH192.168.0.14_192.168.0.104><2>

So it seems like this command only works if I am not changing the subnet. Is this a bug?

Paul

Hello Paul

Please try it again as below.

<GO0> <WT0_192.168.1.254_255.255.255.0_192.168.1.1_0.0.0.0> <WI192.168.10.254> <WS255.255.255.0> <WH192.168.10.101_192.168.10.200>

With these command scenario, it worked well.

Hello,

I tried again and I’m afraid it still doesn’t work:

<WT0_192.168.1.254_255.255.255.0_192.168.1.1_0.0.0.0>
<WI192.168.10.254>
<WS255.255.255.0>
<WH192.168.10.101_192.168.10.200><2>

You can see that the WH command returns <2>.

<Sv1.1.28>
Is my version old?

Paul

Hello

Please try it again as below.

[code]
<WT0_192.168.1.254_255.255.255.0_192.168.1.1_0.0.0.0>
<WI192.168.10.254>
<WS255.255.255.0>
<WH192.168.10.101_192.168.10.200>

[/code]

Hello

About this issue, I asked to s/w engineer of WizFi630, and he recommend .

Because there can be another dhcp servers in AP-mode-network, so there are some limitation with .

How about using the instead of as below?

<GO1> <WT0_192.168.1.254_255.255.255.0_192.168.1.1_0.0.0.0> <WI192.168.11.254> <WS255.255.255.0> <WH192.168.11.101_192.168.11.200>

Hello,

I can confirm that I can set the DHCP start IP address on the LAN ports using Gateway mode.
But I must use AP-MODE.

I want to construct a network with multiple WizFi630 modules.
Each module has 2 IP ports bridged together.
One module has a static IP address and is set to DHCP mode (the router)
All the other modules should be set to DHCP client mode.

I must be able to control the DHCP range to my range (192.168.0.xxx).

Is there anyway that I can do this through the serial interface in AP-MODE only (given that the WH command doesn’t work in AP mode).

Thanks,
Paul

But, in my guess, is almost same like except WAN interface.

You can just set WizFi630 as and set with dummy static IP.
Then, I think that WizFi630 can run like .

To implement what you want in AP mode, WizFi630-S/W needs to be modified.

Thanks.

Copyright © 2017 WIZnet Co., Ltd. All Rights Reserved.