Dhcp help
Matt Faggione
mattf at etex.net
Fri Jan 9 21:47:49 UTC 2009
I am trying to set up a shared network for my set top boxes to pull address
from. The Occam blades ip address is 10.22.0.21 it is a member of the
10.22.0.0/24 network and this is where the stb ip request comes from. We
want the stb to pull a 10.22.64.x address, because this is a different
subnet all together we need to set up a shred network. Every time we reboot
a stb it gets and address from the wrong subnet. The request comes from
10.22.0.21 and in get 10.101.1.101. 10.101.1.3 is the server ip and we have
a small range in there for testing, this is not what we want the occam stb's
to pull.
############################################################################
###
# Global configurations
############################################################################
###
ddns-update-style ad-hoc;
default-lease-time 10000000;
max-lease-time 20000000;
allow bootp;
# Set this to your domain name
option domain-name "minervanetworks.com";
# Enter your DNS servers separated by commas ','
option domain-name-servers ;
# Extra stuff for multicast booting
option space AMINO;
option AMINO.address code 1 = ip-address;
option AMINO.port code 2 = integer 16;
option AMINO.product code 3 = text;
option AMINO.option code 4 = text;
option AMINO.version code 5 = text;
option AMINO.middleware code 6 = ip-address;
option AMINO.mw_port code 7 = integer 16;
############################################################################
###
# Amino Bootstrap image definition
# --------------------------------
# Defines the image which an Amino 103/110/500 will use if it is multicast
# aware and starts up with a blank flash.
#
# Note: This IP address must match the bootstrap IP address defined for the
# particular STB model (bootstrap.XXX) in /etc/mcastbootd.conf
############################################################################
###
# 110
class "AMINET11x mboot"
{
match if (option
vendor-class-identifier="aminoAMINET11xmboot") or
((substring( option
vendor-encapsulated-options, 2, 9)="AMINET11x")
and (substring( option
vendor-encapsulated-options, 13, 5)="mboot"));
vendor-option-space AMINO;
option AMINO.address 225.50.50.54;
option AMINO.port 11111;
}
# 500
class "AMINET5xx mboot"
{
match if (option
vendor-class-identifier="aminoAMINET5xxmboot") or
((substring( option
vendor-encapsulated-options, 2, 9)="AMINET5xx")
and (substring( option
vendor-encapsulated-options, 13, 5)="mboot"));
vendor-option-space AMINO;
option AMINO.address 225.50.50.64;
option AMINO.port 11111;
}
############################################################################
###
# Amino signed image definition
# -----------------------------
# Defines the complete signed image which an Amino 103/110/500 will listen
for
# when it is sent the upgrade command.
#
# Note: This IP address must match the bootstrap IP address defined for the
# particular STB model (mc.thinkXXX) in /etc/mcastbootd.conf
############################################################################
###
# 110
class "aminet110 multicast image"
{
match if (option
vendor-class-identifier="Aminoaminet110upgrd") or
((substring( option
vendor-encapsulated-options,2,9)="aminet110")
and (substring( option
vendor-encapsulated-options,13,5)="upgrd"));
vendor-option-space AMINO;
option AMINO.address 225.50.50.55;
option AMINO.port 11111;
}
# 500
class "aminet500 multicast image"
{
match if (option
vendor-class-identifier="Aminoaminet500upgrd") or
((substring( option
vendor-encapsulated-options,2,9)="aminet500")
and (substring( option
vendor-encapsulated-options,13,5)="upgrd"));
vendor-option-space AMINO;
option AMINO.address 225.50.50.65;
option AMINO.port 11111;
}
############################################################################
###
# Amino response when booting
# ---------------------------
# Defines the iTvManager multicast resource IP the STB will listen for when
it
# has been successfully flashed.
#
# The multicast IP address (option AMINO.middleware) must match the
# STB Boot stream for the Amino Module setting which is configured in the
# IP HEADEND->Setup page of the Admin application. It is likely that all
three
# STB models (103/110/500) will point to the same multicast resource IP.
#
# This section is only reached when the STB is/has been successfully
flashed.
############################################################################
###
# 110
class "aminet11x fisys"
{
match if (option
vendor-class-identifier="Aminoaminet110fisys") or
((substring( option
vendor-encapsulated-options,2,9)="aminet110")
and (substring( option
vendor-encapsulated-options,13,5)="fisys"));
vendor-option-space AMINO;
option AMINO.middleware 239.255.5.5;
option AMINO.mw_port 4545;
}
# Aminet500 - response when booting
class "aminet500 fisys"
{
match if (option
vendor-class-identifier="Aminoaminet500fisys") or
((substring( option
vendor-encapsulated-options,2,9)="aminet500")
and (substring( option
vendor-encapsulated-options,13,5)="fisys"));
vendor-option-space AMINO;
option AMINO.middleware 239.255.5.5;
option AMINO.mw_port 4545;
}
################## ENTONE SETTOP SPACE #################################
option space ENTONE;
option ENTONE.SIGNATURE code 99 = text;
option ENTONE.FIRMWARE_VERSION code 100 = text;
option ENTONE.FIRMWARE_FILENAME code 101 = text;
option ENTONE.APP_URL code 102 = text;
option ENTONE.RFS_URL code 103 = text;
option ENTONE.CENT_FTP code 104 = text;
option ENTONE.DECODER_APP_FALLBACK code 105 = text;
option ENTONE.ENTONEINI code 106 = text;
option ENTONE.DECODER_LOADER_VERSION code 110 = text;
option ENTONE.DECODER_LOADER_FILENAME code 111 = text;
option ENTONE.DECODER_LOADER_FALLBACK code 112 = text;
option ENTONE.DECODER_APP_VERSION code 113 = text;
option ENTONE.DECODER_APP_FILENAME code 114 = text;
####################
### Hydra 2 ########
####################
class "HYDRA-FIRMWARE-1" {
match if substring (option vendor-class-identifier, 0, 16) =
"HYDRA-FIRMWARE-1";
filename "ftp://10.101.1.3/entone/rtr_P5R4B1E.dat";
next-server 10.101.1.3;
default-lease-time 3600; # 1 hour
max-lease-time 3600; # 1 hour
}
class "HYDRA-FIRMWARE-2" {
match if substring (option vendor-class-identifier, 0, 16) =
"HYDRA-FIRMWARE-2";
filename "ftp://10.101.1.3/entone/rtr_P5R4B1E.dat";
next-server 10.101.1.3;
default-lease-time 3600; # 1 hour
max-lease-time 3600; # 1 hour
}
class "HYDRA-BOOT" {
match if substring (option vendor-class-identifier, 0, 10) = "HYDRA-BOOT";
filename "entone/mvthink.verimatrix_P5R5B1D_MV_3.1.16.bin"; #ftp download
vendor-option-space ENTONE;
option ENTONE.SIGNATURE "ENTONE-HYDRA";
option ENTONE.FIRMWARE_VERSION "3.3";
option ENTONE.FIRMWARE_FILENAME "ftp://10.101.1.3/entone/rtr_P5R4B1E.dat";
next-server 10.101.1.3;
default-lease-time 31536000;
max-lease-time 31536000;
}
class "Entone-Hydra-MS" {
match if substring (option vendor-class-identifier, 0, 15) =
"Entone-Hydra-MS";
vendor-option-space ENTONE;
option ENTONE.ENTONEINI "entone/entone_boot.ini"; #http download
next-server 10.101.1.3;
default-lease-time 3600; # 7 days
max-lease-time 3600; # 7 days
}
####################
### Hydra HD #######
####################
# For BBL
class "ENTONE-HDBOOT-SMP"{
match if substring (option vendor-class-identifier, 0,
17)="ENTONE-HDBOOT-SMP";
filename
"http://10.101.1.3/entone/pkg.742G_SP1_MV_fresco-3.2.0.14.NoCA.tar.gz";
option ENTONE.DECODER_APP_VERSION "742G_SP1_MV_fresco-3.2.0.14"; #Do not
remove
option ENTONE.DECODER_APP_FILENAME
"entone/pkg.742G_SP1_MV_fresco-3.2.0.14.NoCA.tar.gz"; #Do not remove
vendor-option-space ENTONE;
#option log-servers 10.101.1.3;
next-server 10.101.1.3;
}
# For APP
class "ENTONE-HDAPP-SMP" {
match if substring (option vendor-class-identifier, 0,
16)="ENTONE-HDAPP-SMP";
vendor-option-space ENTONE;
option ENTONE.DECODER_APP_VERSION "742G_SP1_MV_fresco-3.2.0.14"; #Do not
remove
option ENTONE.DECODER_APP_FILENAME
"entone/pkg.742G_SP1_MV_fresco-3.2.0.14.NoCA.tar.gz"; #Do not remove
option ENTONE.ENTONEINI
"http://10.101.1.3/entone/entone_boot.ini";
#option log-servers 10.101.1.3;
next-server 10.101.1.3;
}
class "Occam_Test_Video"
{
match if (binary-to-ascii (10,8, ".", packets(24,3)) = "10.22.0") and
(suffix(option Agent.circuit-id, Minerva-Video) = "6");
default-lease-time 43200; # 12 hours
max-lease-time 43200; # 12 hours
}
shared-network Occam
{
subnet 10.22.0.0 netmask 255.255.255.0
{
}
############################################################################
###
# Subnet declarations
# ---------------------------
# The subnet declaration example below will handle all Amino 110 and
# Thomson Copperhead and Viper for a particular subnet. Note: It is
required
# to have a subnet decleration for local subnet even if this dhcp server is
not
# serving any addresses on this range
############################################################################
###
# This should handle all STBs (Copperhead, Viper and Amino110) on the
# 192.168.5.0 network
subnet 10.101.1.0 netmask 255.255.255.0
{
option routers 10.101.1.254;
option broadcast-address 10.101.1.255;
range dynamic-bootp 10.101.1.100 10.101.1.220;
}
###Occam Pine Acres/video###
subnet 10.22.64.0 netmask 255.255.192.0 {
option broadcast-address 10.22.127.255;
option subnet-mask 255.255.192.0;
option routers 10.22.64.1;
option domain-name-servers 10.3.3.10,10.3.3.11;
option root-path "US/Central";
option time-servers 10.3.3.10;
option ntp-servers ;
pool {
range 10.22.64.1 10.22.127.254;
allow members of "Occam_Test_Video";
}
}
# Thomson Viper
#if substring ( option vendor-class-identifier,0,13) =
"Thomson_Viper"
#{
###########################################################################
# Thomson Viper unicast boot
# -------------------------------
# filename = path to vxWorks
# options extensions-path = path to load.txt
# next-server = points to the iTvManager
boot server
###########################################################################
#filename
"/itvmgr/stb/thomsonboot/bootable/viper/vxWorks";
#option extensions-path
"/itvmgr/stb/thomsonboot/bootable/viper/load.txt";
#next-server 192.168.5.165;
###########################################################################
# Thomson Viper multicast TFTP boot
# --------------------------------------
# filename = path to viper.vxWorks.bin (at
the TFTP root)
# option extensions-path = path to
mload.viper.txt (at the TFTP root)
# option root-path = points to the
iTvManager boot server running tftp_tmm
###########################################################################
#filename "viper.vxWorks.bin";
#option extensions-path "mload.viper.txt";
#option root-path "192.168.5.165";
# This should always point to the iTvManager
boot server
#next-server 192.168.5.165;
#}
# Amino 110
if substring ( option vendor-encapsulated-options,13,5) =
"aminet110"
{
filename "AMINET.txt";
}
if substring ( option vendor-encapsulated-options,13,5) =
"aminet11x"
{
filename "AMINET.txt";
}
}
#END
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/dhcp-users/attachments/20090109/fd787c78/attachment.html>
More information about the dhcp-users
mailing list