Page 201 / 757 Scroll up to view Page 196 - 200
xStack
®
DGS-3600 Series Layer 3 Gigabit Ethernet Managed Switch CLI Manual
197
config dhcp_relay option_60 delete
Purpose
This command is used to delete the DHCP Relay option 60 entry.
Syntax
config dhcp_relay option_60 delete [string <mutiword 255> {relay <ipaddr>} |
ipaddress <ipaddr> | all | default {< ipaddr>}]
Description
This can delete the entry by user specified.
When all is specified, all rules excluding the default rules are deleted.
Parameters
string
- Delete all the entry whose string is equal to the string of specified if ipaddress is not
specified
relay <ipaddr>
- Delete one entry, whose string and IP address are equal to the string and IP
address specified by the user.
all
- Delete all the entry. Default relay servers are excluded.
ipaddress
- Delete all the entry whose ipaddress is equal to the specified ipaddress.
default
- Delete the default relay ipaddress that is specified by the user.
Restrictions
Only Administrator and Operator-level users can issue this command.
Example usage:
To delete the DHCP Relay option 60 entry:
DGS-3627:admin# config dhcp_relay option_60 delete string "abc" relay 10.90.90.1
Command: config dhcp_relay option_60 delete string "abc" relay 10.90.90.1
Success
DGS-3627:admin#
show dhcp_relay option_60
Purpose
This command is used to show the DHCP Relay option 60 entry.
Syntax
show dhcp_relay option_60 {[string <mutiword 255> | ipaddress < ipaddr> | default]}
Description
This show dhcp_relay option_60 entry by the user specified.
Parameters
string
- Show the entry which’s string equal the string of specified.
ipadddress
- Show the entry whose ipaddress equal the specified ipaddress.
default
- Show the defaut behaviour of dhcp_relay option60.
Restrictions
None.
Example usage:
To show the DHCP Relay option 60 entry:
Page 202 / 757
xStack
®
DGS-3600 Series Layer 3 Gigabit Ethernet Managed Switch CLI Manual
198
DGS-3627:admin#
show dhcp_relay option_60
Command: show dhcp_relay option_60
Default processing Mode: drop
Default Servers:
10.90.90.100
10.90.90.101
10.90.90.102
Matching Rules:
String
Match Type
IP Address
---------
-----------
----------
abc
exact match
10.90.90.1
abcde
partial match
10.90.90.2
abcdefg
exact match
10.90.90.3
Total Entries
: 3
DGS-3627:admin#
config dhcp_relay option_61 state
Purpose
This command is used to configure the DHCP Relay opton 61 state.
Syntax
config dhcp_relay option_61 state [enable | disable]
Description
This decides whether dhcp_relay will process the DHCP option 61 or not.
When option_61 is enabled, if the packet does not have option 61, then the relay servers
cannot be determined based on option 61.
If the relay servers are determined based on option 60 or option 61, then per IPIF configured
servers will be ignored.
If the relay servers are not determined either by option 60 or option 61, then per IPIF
configured servers will be used to determine the relay servers.
Parameters
state
- See below:
enable
- Enable the fuction dhcp_relay use option_61 ruler to relay dhcp packet.
disable
- Disable the fuction dhcp_relay use option_61 ruler to relay dhcp packet.
Restrictions
Only Administrator and Operator-level users can issue this command.
Example usage:
To configure the state of dhcp_relay option 61:
DGS-3627:admin# config dhcp_relay option_61 state enable
Command: config dhcp_relay option_61 state enable
Success
DGS-3627:admin#
config dhcp_relay option_61 add
Purpose
This command is used to add a rule for DHCP Relay option 61.
Syntax
config dhcp_relay option_61 add [mac_address <macaddr> | string <mutiword 255>]
[relay <ipaddr> | drop]
Page 203 / 757
xStack
®
DGS-3600 Series Layer 3 Gigabit Ethernet Managed Switch CLI Manual
199
config dhcp_relay option_61 add
Description
This command adds a rule to determine the relay server based on option 61.
The match rule can base on either MAC address or a user-specified string.
Only one relay server can be specified for a MAC-address or a string,
If relay servers are determined based on option 60, and one relay server is determined based
on option 61, the final relay servers will be the union of these two sets of the servers.
Parameters
mac_address
- The client’s client-ID which is the hardware address of client.
string
- The client’s client-ID,which is specified by administrator.
relay
- Specify to relay the packet to a IP address.
drop
- Specify to drop the packet.
Restrictions
Only Administrator and Operator-level users can issue this command.
Example usage:
To add a rule for DHCP Relay option 61:
DGS-3627:admin#
config dhcp_relay option_61 add mac_address 00-11-22-33-44-55 drop
Command: config dhcp_relay option_61 add mac_address 00-11-22-33-44-55 drop
Success
DGS-3627:admin#
config dhcp_relay option_61 default
Purpose
This command is used to configure the default ruler for option 61.
Syntax
config dhcp_relay option_61 default [relay <ipaddr> | drop]
Description
Up to default server IP address can be specified.This setting will be used to determine the
rule to process those packets that have no option 61 matching rules.
The default default-rule is drop.
Parameters
relay
- Specify to relay the packet that has no option matching 61 matching rules to an IP
address.
drop
- Specify to drop the packet that have no option 61 matching rules.
Restrictions
Only Administrator and Operator-level users can issue this command.
Example usage:
To configure the default ruler for option 61:
DGS-3627:admin# config dhcp_relay option_61 default drop
Command: config dhcp_relay option_61 default drop
Success
DGS-3627:admin#
config dhcp_relay option_61 delete
Purpose
This command is used to delete an option 61 rule.
Syntax
config dhcp_relay option_61 delete [mac_address <macaddr> | string <mutiword 255>
| all]
Page 204 / 757
xStack
®
DGS-3600 Series Layer 3 Gigabit Ethernet Managed Switch CLI Manual
200
config dhcp_relay option_61 delete
Description
This command is used to delete an option 61 rule.
Parameters
mac_address
- The entry with the specified MAC address will be deleted.
string
- The entry with the specified string will be deleted.
all
- All rules excluding the default rule will be deleted.
Restrictions
Only Administrator and Operator-level users can issue this command.
Example usage:
To delete an option 61 rule:
DGS-3627:admin# config dhcp_relay option_61 delete mac_address 00-11-22-33-44-55
Command: config dhcp_relay option_61 delete mac_address 00-11-22-33-44-55
Success
DGS-3627:admin#
show dhcp_relay option_61
Purpose
This command is used to show all rulers for option 61.
Syntax
show dhcp_relay option_61
Description
This command is used to show all rulers for option 61.
Parameters
None.
Restrictions
None,
Example usage:
To show all rulers for option 61:
DGS-3627:admin# show dhcp_relay option_61
Command: show dhcp_relay option_61
Default Relay Rule:drop
Matching Rules:
Client-ID
Type
Relay rule
-----------
----
---------
00-01-02-03-04-05
MAC Address
10.1.1.1
Total Entries : 1
DGS-3627:admin#
Page 205 / 757
xStack
®
DGS-3600 Series Layer 3 Gigabit Ethernet Managed Switch CLI Manual
201
25
DHCP SERVER SCREENING COMMANDS
The DHCP Server Screening Commands in the Command Line Interface (CLI) are listed (along with the appropriate
parameters) in the following table.
The DHCP Server Screening commands allow you not only to restrict all DHCP Server packets but also to receive any
specified DHCP server packets by any specified DHCP client, it is useful when one or more than one DHCP servers are
present on the network and both provide DHCP services to different distinct groups of clients. Enabling the DHCP filter for
the first time will create both an access profile and access rule per port, following this other access rules can be created.
These rules are used to block all DHCP server packets. Similarly, the addition of a permit DHCP entry will create one
access profile and one access rule the first time the DHCP client MAC address is the client MAC address, and the Source
IP address is the same as the DHCP server’s IP address (UDP port number 67). These rules are used to permit the
DHCP server packets with specific fileds, which the user configures.
When
the DHCP Server filter function is enabled, all DHCP Server packets will be filtered from a specific port. Also, you
are allowed to create entries for specific port-based Server IP address and Client MAC address binding entries. Be aware
that the DHCP Server filter function must be enabled first. Once all settings are complete, all DHCP Server packets will
be filtered from a specific port except those that meet the Server IP Address and Client MAC Address binding.
Command
Parameters
config filter dhcp_server
[add permit server_ip <ipaddr> {client_mac <macaddr>} ports [<portlist>|all] |
delete permit server_ip <ipaddr> {client_mac <macaddr>} ports [<portlist>|all] |
ports [<portlist>|all] state [enable|disable]]
show filter dhcp_server
config filter dhcp_server trap_log
[enable | disable]
config filter dhcp_server
illegal_server_log_suppress_duration
[ 1min | 5min | 30min ]
Each command is listed in detail in the following sections.
config filter dhcp_server
Purpose
DHCP server packets except those that have been IP/client MAC bound will be filtered.
This
command is used to configure the state of the function for filtering of DHCP server packet and
to add/delete the DHCP server/client binding entry.
Syntax
config filter dhcp_server [add permit server_ip <ipaddr> {client_mac <macaddr>} ports
[<portlist>|all] | delete permit server_ip <ipaddr> {client_mac <macaddr>} ports
[<portlist>|all] | ports [<portlist>|all] state [enable|disable]]
Description
This command has two purposes: to filter all DHCP server packets on the specified port(s)
and to allow some DHCP server packets to be forwarded if they are on the pre-defined server
IP address/MAC address binding list.
Thus the DHCP server can be restricted to service a
specified DHCP client.
This is useful when there are two or more DHCP servers present on a
network.
Parameters
ipaddr
– The IP address of the DHCP server to be filtered.
macaddr
– The MAC address of the DHCP client.

Rate

4.5 / 5 based on 2 votes.

Bookmark Our Site

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

Share
Top