DHCP configuration | docsis.org

You are here

DHCP configuration

8 posts / 0 new
Last post
dkokoshi
DHCP configuration

Hello,

I want to give Different IP addresses to WAN(of the router cable modem) and different IP addresses to CPE(PC of client).
How can I distinguish in the DHCP conf one from another? Can anyone help me please?

Regards,
Dori

kwesibrunee
Should be able to use

Should be able to use subclasses to do what you want

# Match Clients as determined by option 61
class "Client" {
match if ((substring(option vendor-class-identifier,0,6) != "docsis") and (substring(option vendor-class-identifier,0,4) != "pktc"));
spawn with hardware;
}
class "Wan" {
match hardware;
};
host "routerwan" {
hardware 1:00:11:22:33:44:55;
}
subclass “wan” 1:00:11:22:33:44:55;

subnet 192.168.0.0 mask 255.255.255.0 {
allow members of "Client";
deny members of "Wan";
}

subnet 192.168.1.0 mask 255.255.255.0 {
allow members of "Wan";
deny members of "Client";
}

mbowe
Or, rather than putting the

Or, rather than putting the smarts in the DHCP config, you can let the CMTS do it

Assuming Cisco, have a read up on
"cable dhcp-giaddr policy"

kwesibrunee
that only separates the Cable

that only separates the Cable modems from the CPEs he wants to separate some of the CPEs from other of the CPEs

mbowe
OK maybe I misunderstood the

OK maybe I misunderstood the original description? its not super clear.

Capm
Hmm

I think what he's saying is that he wants the cpe in a wireless cable modem, to pull from a different IP range than the cpe behind a regular modem. I suppose it could still be a vendor class identifier option in the DHCP config, you'd just need the right field.

The only other thing I can think of he'd be talking about is a different IP for the cpe behind the wireless modem's router... which is handled by the router.... so that doesn't make sense.

dkokoshi
Thank you for your support !!

Thank you for your support !!

I can explain it better. I am using THOMSON TWG850-4 residential gateway(router). I want to activate the second wireless SSID as a HOTSPOT.
- The first SSID CLIENT is configurable by the client and is in router mode(WAN) and takes IP from the modem.
- The second SSID GUEST is in bridge mode and the device conneted after it takes IP from our DHCP server. I want to give IP the device conneted after the second SSID from a different subnet then the WAN.

How can I distinguish WAN CPE from second SSID device CPE??

Regards,
Dori

mbowe
Well, I guess the router MAC

Well, I guess the router MAC will be known (it will probably be the CM MAC + 1, 2, 3 or 4).

So based in this you could probably configure your DHCP server to match such MAC addresses and give them a static or dump them into some particular pool. Either by hardcoding the router MACs, or doing some sort of string match against the first X chars of the MAC.

Whereas the CPE on GUEST would get a generic dynamic IP.

What is the reason behind wanting to give them different IP subnets? Because you want to use different policy like lease length etc?

Log in or register to post comments