D-Link DGS-3700-12G [225/338] Create access_profile

D-Link DGS-3420-52T [225/338] Create access_profile
DGS-3312SR Layer 3 Gigabit Switch
219
create access_profile
port <portlist> - Specifies a port or range of ports to be configured.
The port list is specified by listing the lowest switch number and
the beginning port number on that switch, separated by a colon.
Then the highest switch number, and the highest port number of
the range (also separated by a colon) are specified. The beginning
and end of the port list range are separated by a dash. For
example, 1:3 specifies switch number 1, port 3. 2:4 specifies
switch number 2, port 4. 1:3-2:4 specifies all of the ports between
switch 1, port 3 and switch 2, port 4 in numerical order.
all – denotes all ports on the switch.
profile_id <value 1-255> Specifies an index number that will
identify the access profile being created with this command.
Restrictions Only administrator-level users can issue this command.
Example usage:
To create an access profile that will deny service to the subnet ranging from 10.42.73.0 to 10.42.73.255:
DGS-3312SR:4#create access_profile ip vlan source_ip_mask 20.0.0.0
destination_ip_mask 10.0.0.0 dscp icmp type code permit profile_id 101
Command: create access_profile ip vlan source_ip_mask 20.0.0.0
destination_ip_mask 10.0.0.0 dscp icmp type code permit profile_id 101
Success.
DGS-3312SR
delete access_profile
Purpose Used to delete a previously created access profile.
Syntax
delete access_profile [profile_id <value 1-255>]
Description
The delete access_profile command is used to delete a
previously created access profile on the switch.
Parameters
profile_id <value 1-255> Enter an integer between 1 and 255 that
is used to identify the access profile that will be deleted with this
command. This value is assigned to the access profile when it is
created with the create access_profile command.
Restrictions Only administrator-level users can issue this command.
Example usage:
To delete the access profile with a profile ID of 1:
DGS-3312SR:4# delete access_profile profile_id 1

Содержание

Скачать