Page 201 / 351 Scroll up to view Page 196 - 200
201
CONFIG Commands
28
IP address
4
Yes
29 - 31
Flag
1
Yes
32
IP address
4
Yes
33
IP address and mask list
Multiples of 8
Yes
34
Flag
1
Yes
35
Unsigned 4 byte integer
4
Yes
36
Flag
1
Yes
37
Unsigned 1 byte integer
1
Yes
38
Unsigned 4 byte integer
4
Yes
39
Flag
1
Yes
40
String (up to 100 characters)
N
Yes
41 - 42
IP address list
Multiples of 4
Yes
43
Vendor-specific
String
Yes
44 - 45
IP address list
Multiples of 4
Yes
46
Unsigned 1 byte integer
1
Yes
47
String (up to 100 characters)
N
Yes
48 - 49
IP address list
Multiples of 4
Yes
50
IP address
4
No
51
Unsigned 4 byte integer
4
No
52
Unsigned 1 byte integer
1
No
53
Unsigned 1 byte integer
1
Yes
54
IP address
4
Yes
55
String (up to 100 characters)
N
No
56
String (up to 100 characters)
N
Yes
57
Unsigned 2 byte integer
2
Yes
58 - 59
Unsigned 4 byte integer
4
No
60
String (up to 100 characters)
N
Yes
61
String (up to 100 characters)
N
No
62
String (up to 100 characters)
N
Yes
63
Complex
N
No
Option
Data Format
Data Size
(bytes)
Can
Configure
Page 202 / 351
202
64
String (up to 100 characters)
N
Yes
65
IP address list
Multiples of 4
Yes
66 - 67
String (up to 100 characters)
N
Yes
68 - 76
IP address list
Multiples of 4
Yes
77
Pascal string list (length byte + data)
N
Yes
78 - 79
Complex
N
No
80
Empty
0
No
81
Complex
N
No
82
Sub-option list
N
Yes
83
Complex
N
No
84
Undefined
??
Yes
85
IP address list
Multiples of 4
Yes
86 - 87
Unicode String
Multiples of 2
Yes
88
Encoded DN list
N
Yes
89
IP address list
Multiples of 4
Yes
90
Complex
N
No
91 - 97
Undefined/Weakly defined
??
Yes
98
String (up to 100 characters)
N
Yes
99 - 115
Undefined/Weakly defined
??
Yes
116
Flag
1
Yes
117
Unsigned 2 byte integer list
Multiples of 2
Yes
118
IP address
4
Yes
119
Encoded DN list 2
N
Yes
120
Encoded DN list or IP Address list
N
Yes
121 - 125
Complex
N
No
126 - 127
Undefined
N
Yes
128
IP address list
Multiples of 4
Yes
129 - 223
Undefined/Weakly defined
??
Yes
224 - 254
Private Use
N
Yes
Option
Data Format
Data Size
(bytes)
Can
Configure
Page 203 / 351
203
CONFIG Commands
set dhcp gen-option data-type [ ascii | hex | dotted-decimal ]
Specifies the DHCP gen-option data type:
ascii
,
hex
or
dotted-decimal
.
set dhcp gen-option data
data
Specifies the
gen-option
data.
If the
data-type
is
ascii
, then any printable character + octal representations
(e.g.”\0007”) and hex representations (e.g. “\xA4”).
If the
data-type
is
hex
, then an even number of hex characters (e.g.
“0123456789AbcdEf”
If the
data-type
is
dotted-decimal
, then a series of numbers between 0 and 255, sep-
arated by a period (.). IP addresses are generally represented in this form.
249 (note)
Microsoft uses this instead of 121
N
Yes
255
Empty
0
No
Option
Data Format
Data Size
(bytes)
Can
Configure
Page 204 / 351
204
DHCP Option Filtering
Beginning with Firmware Version 7.7, support for DHCP option filtering is provided via the
filterset settings.
set dhcp filterset name "
string
" rule
n
type [ dhcp-option |
hw-address | requested-option ]
Specifies a DHCP filterset named string as one of three possible types:
The rule can either specify an option and option contents,
dhcp-option
; a client hardware
address range,
hw-address
; or an option the client is requesting,
requested-option
. For
hw-address
, you will need to enter
start-address
and
end-address
values; for the others
a
dhcp-option
parameter must be set.
By default a rule is of type
dhcp-option
, for backwards compatibility.
set dhcp filterset name "
string
" rule
n
dhcp-option [ 0...
255 ]
Creates a DHCP filterset named
string
, for example “settopbox,” with rule number
n
.
Up to two filtersets can be added. Your Gateway supports a single LAN DHCP server
instance, but an additional filterset is available for use when bridging, to block undesired
DHCP traffic. Up to 8
rules
can be created in the filterset, which are evaluated in order.
dhcp-option
determines which DHCP option should be compared. A typical value would be
to use option 60 data for comparison, but allowing this value to be configured permits
more flexibility.
set dhcp filterset name "settopbox" rule 1 type dhcp-option
set dhcp filterset name "
string
" rule
n
match-action
[ pass | discard | continue ]
Assigns a match action to the filterset. If set to
pass
the
match-pool
address is shown.
set dhcp filterset name "
string
" rule
n
absent-action
Page 205 / 351
205
CONFIG Commands
[ pass | discard | continue ]
Assigns an absent action to the filterset. If set to
pass
the
absent-pool
address is hid-
den.
set dhcp filterset name "
string
" rule
n
match-option-group
"
option_group
*"
Assigns the option group named
option_group
to match.
set dhcp filterset name "
string
" rule
n
match-str "
match_string
*"
Assigns a match string to the filterset. The
match-str
string will be compared against the
DHCP DISCOVER option data. This string can contain multiple “*” and “?” wildcard substi-
tutions.
set dhcp filterset name "
string
" rule
n
match-pool
ip_address
Specifies the start IP address of the range within a DHCP pool where that range will be
used to allocate an address if the wildcard matches.
The value 0.0.0.0 means regular processing; 255.255.255.255 means discard.
set dhcp filterset name "
string
" rule
n
absent-pool
ip_address
Specifies the start IP address of the range within a DHCP pool where that range will be
used to allocate an address if the option in the DHCP packet is not present.
The value 0.0.0.0 means regular processing; 255.255.255.255 means discard.
Example
Netopia-3000/9450000 (dhcp)>> sc
set dhcp option server
set dhcp start-address 192.168.1.33
set dhcp end-address 192.168.1.63
set dhcp lease-time 01:00:00:00
set dhcp filterset name "settopbox" rule 1 dhcp-option 60
set dhcp filterset name "settopbox" rule 1 match-str "STB*"
set dhcp filterset name "settopbox" rule 1 match-pool

Rate

4 / 5 based on 1 vote.

Bookmark Our Site

Press Ctrl + D to add this site to your favorites!

Share
Top