configuration in DHCP or cmts to have some cpe in one network and others in another, or what is the best way to do it | docsis.org

You are here

configuration in DHCP or cmts to have some cpe in one network and others in another, or what is the best way to do it

9 posts / 0 new
Last post
deividfiguer
configuration in DHCP or cmts to have some cpe in one network and others in another, or what is the best way to do it

Hi

I need your help,

Our company requires some users to access the Internet through another provider

How can I classify those users in dhcp so that by something special that is configured I can know that those cpe take IP in a different range than the rest?

Please someone help me with this, how can I make this work?

deividfiguer
configuration in DHCP or cmts to have some cpe in one network an

The idea I have is to add this to the docsis file that the cable modems that I want to assign a different pool to the cpe will receive.

eRouter Configuration Encodings
eRouter Vendor Specific Information:010203/506C616E457370656369616C

then in the DHCP file, add these settings

class "PlanEspecial" {
match if substring(option vendor-encapsulated-options, 0, 13) = 0x506C616E457370656369616C;
}

subnet 192.168.10.0 netmask 255.255.255.0 {
pool {
allow members of "PlanEspecial";
range 192.168.10.10 192.168.10.100;
option routers 192.168.10.1;
option domain-name-servers 8.8.8.8, 8.8.4.4;
}
}

group {
next-server 170.238.239.2;

option vendor-class-identifier "PlanEspecial";

host 777_test { hardware ethernet 50:39:55:55:09:b0; }
}

Please someone help me with this and what is the recommended way to do what I want,
which is to be able to differentiate some cable modems and then route these over a different link to the internet,
a different link to the rest of the cable modems connected to the CMTS

deividfiguer
configuration in DHCP or cmts to have some cpe in one network an

Hi

Please help me with this, I need to set this up as soon as possible

deividfiguer
configuration in DHCP or cmts to have some cpe in one network an

Hi

class "PlanEspecial" {
match if substring(option vendor-encapsulated-options, 0, 13) = 0x506C616E457370656369616C;
}
When I tried this it didn't work because it generated an error in the dhcp, the expected value must be in quotes, I modified it and tested, the dhcp was put in active state, but the cable modem that I am testing with in the lab did not receive IP in the pool range 10.2.0.25 10.2.100.254; which includes allow members of "PlanEspecial";

Cable modem take this configuration:

CASA-C100G#show cable modem 5039.5555.09b0
MAC Address IP Address US DS MAC Prim RxPwr Timing Num BPI
Intf Intf Status Sid (dBmv) Offset CPEs Enb
5039.5555.09b0 10.1.200.253 13/15.0/0* 0/7/22# online(pt) 82 7.2 2210 1 yes
online cm 1 ; offline cm 0 ; ranging cm 0
CASA-C100G#
CASA-C100G#
CASA-C100G#
CASA-C100G#show cable modem 5039.5555.09b0 cpe
CPE IP Address Method CPE MAC Address CM IP Address CM MAC Address CPE Type VRF
10.2.200.254 dhcp 5039.5555.09b3 10.1.200.253 5039.5555.09b0 CPE

I am attaching a copy of the dhcpd.conf file I am using for testing and the docsis file.

Please help me with this, I need to be able to solve this and have a configuration that allows me to route the traffic of some cable modems through a different internet link than the rest of the modems that are in the same cmts, my idea is to do it separately from the IP group of the cpe

but if there is a better way to do it, please help me with this.

These modems are going to belong to a special plan that requires me to send Internet over a different link than the one I am currently using, so this requires me to have something that differentiates them from the rest.

In the cmts Casa Systems C100G I have only one ip-bundle interface configured, as follows
interface ip-bundle 1
ip address 10.1.0.1 255.255.0.0
ip address 10.2.0.1 255.255.0.0 secondary
cable helper-address 150.218.219.3

I am very attentive to your comments

File attachments: 
deividfiguer
Using vlan to route cable modems

Hi

what was proposed It could also be done with the use of vlan, if I could indicate a vlan in the docsis file and assign this file only to the cable modems that I want to route through a different link than the rest

please help me with this

deividfiguer
configuration in DHCP or cmts to have some cpe in one network an

any help on this

deividfiguer
Have CPE in pool or different networks

Hi

I am testing using the option vendorOptions.modelNumber to identify a specific cable modem model, for testing I use the DPC3825
My intention is to be able to assign a different pool of addresses to the CPEs that are in this class.

class "test1" {
match if option vendorOptions.modelNumber = "DPC3825";
}

class "test2" {
match if (substring(option vendorOptions.modelNumber,0,7) = "DPC3825");
}

This doesn't work for me, I tried it for the CM pool and it didn't work either

The way it worked for me was with this where I indicate the mac of the cpe
class "test3" {
match if (substring(hardware,1,6) = 50:39:55:55:09:b3);
}

But I want to make it something more general, that can indicate to a group of cable modems an IP range for the CPEs that is different from the rest.

Please help me with this, I need to deliver addresses in a different range or pool to some CPEs to be able to route to the Internet through a different link than the rest.

example of dhcp file that I am using in the laboratory

ddns-update-style none;
##nuevo
authoritative;
###
# option definitions common to all supported networks...

###Nuevos comandos
# Allow leasequery i.e. source-verify dhcp
allow leasequery;

ignore client-updates;

# Remember Agent info in leases file
stash-agent-options on;

# One lease per client
one-lease-per-client true;

log-facility local0;

option space docsis-mta;
option docsis-mta.dhcp-server-1 code 1 = ip-address;
option docsis-mta.dhcp-server-2 code 2 = ip-address;
option docsis-mta.provision-server code 3 = { integer 8, string };
option docsis-mta.as-req-as-rep-1 code 4 = { integer 32, integer 32, integer 32 };
option docsis-mta.as-req-as-rep-2 code 5 = { integer 32, integer 32, integer 32 };
option docsis-mta.krb-realm-name code 6 = string;
option docsis-mta.tgs-util code 7 = integer 8;
option docsis-mta.timer code 8 = integer 8;
option docsis-mta.ticket-ctrl-mask code 9 = integer 16;
option docsis-mta-pkt code 122 = encapsulate docsis-mta;
option docsis-mta.dhcp-server-1 150.218.219.3;
option docsis-mta.provision-server 0 "\003ert\003com\002co\000";
option docsis-mta.krb-realm-name "\005BASIC\0011\000";

########################################################
# Map option 43 values for Docsis modems
option space vendorOptions;
option vendorOptions.deviceType code 2 = string;
option vendorOptions.serialNumber code 4 = string;
option vendorOptions.hardwareVersion code 5 = string;
option vendorOptions.softwareVersion code 6 = string;
option vendorOptions.bootRomVersion code 7 = string;
option vendorOptions.oui code 8 = string;
option vendorOptions.modelNumber code 9 = string;
option vendorOptions.docsisVendor code 10 = string;
option vendorOptions-pkt code 43 = encapsulate vendorOptions;

set model = option vendorOptions.modelNumber;

log (info, model);

###############################################

# Cable Modem Class
class "CM" {
# only match if first 6 chars of option 61 are docsis
match if (substring(option vendor-class-identifier,0,6) = "docsis");
spawn with hardware;
}

# Match MTAs that Identify themselves as pktc
class "MTA" {
match if (substring(option vendor-class-identifier,0,5) = "pktc1");
spawn with hardware;
}

# Match Clients as determined by option 61
class "CPE" {
match if ((substring(option vendor-class-identifier,0,6) != "docsis") and (substring(option vendor-class-identifier,0,4) != "pktc"));
spawn with hardware;
}

class "test1" {
match if option vendorOptions.modelNumber = "DPC3825";
}

class "test2" {
match if (substring(option vendorOptions.modelNumber,0,6) = "DPC3825");
}

class "test3" {
match if (substring(hardware,1,6) = 50:39:55:55:09:b3);
}

shared-network CMTS3 {
next-server 150.218.219.3;
subnet 10.1.0.0 netmask 255.255.0.0 {
option domain-name-servers 150.218.219.3, 8.8.8.8, 4.2.2.2;
#option subnet-mask 255.255.255.0;
option routers 10.1.0.1;

pool {
range 10.1.0.2 10.1.200.254;
deny members of "MTA";
deny members of "CPE";
allow members of "CM";
#deny unknown-clients;
option time-offset -18000;
option host-name = host-decl-name;
option domain-name "codinet.net.co";
option domain-name-servers 150.218.219.3, 8.8.8.8, 4.2.2.2;
default-lease-time 604800;
max-lease-time 604800;
#min-lease-time 302400;
option log-servers 150.218.219.3;
option time-servers 150.218.219.3;
next-server 150.218.219.3;
option docsis-mta.dhcp-server-1 150.218.219.3;
}

}

subnet 10.2.0.0 netmask 255.255.0.0 {
#allow unknown-clients;
option domain-name-servers 150.218.219.3, 8.8.8.8, 4.2.2.2;
# Unknown clients
#option subnet-mask 255.255.255.0;
option routers 10.2.0.1;
next-server 150.218.219.3;
pool {
range 10.2.0.25 10.2.100.254;
allow members of "test3";
deny members of "CM";
#deny members of "CPE";
#deny known clients;
#allow unknown-clients;
option domain-name-servers 150.218.219.3, 8.8.8.8, 4.2.2.2;
max-lease-time 1209600;
min-lease-time 1209600;
default-lease-time 1209600;
next-server 150.218.219.3;
}

pool {
range 10.2.101.25 10.2.200.254;
allow members of "CPE";
deny members of "test3";
deny members of "CM";
#deny members of "CPE";
#deny known clients;
#allow unknown-clients;
option domain-name-servers 150.218.219.3, 8.8.8.8, 4.2.2.2;
max-lease-time 1209600;
min-lease-time 1209600;
default-lease-time 1209600;
next-server 150.218.219.3;
}

}

}

filename "sinservicio.cfg";

group {
next-server 150.218.219.3;
filename = "100mb_down_10mb_up.cfg";
option bootfile-name = "100mb_down_10mb_up.cfg";
host 777_test { hardware ethernet 50:39:55:55:09:b0; }
}

# Local
subnet 150.218.219.0 netmask 255.255.255.128 {

}

deividfiguer
configuration in DHCP or cmts to have some cpe in one network an

Hi

Please help me with this

deividfiguer
assign two different networks to CPEs

Hi

I attach a diagram to better explain my need,

I need to classify some users in a class or something that allows some CPEs to take a network range of 10.2.0.0/16 and others the range of 10.3.0.0/16

In order to be able to route the CPEs of the 10.2.0.0/16 network through an internet providerA and the 10.3.0.0/16 network through another providerB

Please help me how can I do this

File attachments: 
Log in or register to post comments