Page 161 / 757 Scroll up to view Page 156 - 160
xStack
®
DGS-3600 Series Layer 3 Gigabit Ethernet Managed Switch CLI Manual
157
config bpdu_protection ports
shutdown
- Shut down the port when the port enters under_attack state.
Restrictions
Only Administrator and Operator-level users can issue this command.
Example usage:
To set the port state enable and drop mode:
DGS-3627:admin# config bpdu_protection ports 1 state enable mode drop
Commands: config bpdu_protection ports 1 state enable mode drop
Success.
DGS-3627:admin#
config bpdu_protection recovery_interval
Purpose
Used to configure bpdu_protection recovery timer.
Syntax
config bpdu_protection recovery_timer [<sec 60-1000000> | infinite]
Description
When a port enters under attack state, it can be disabled or blocked based on the
configuration. The state can be recovered manually or by the auto recovery mechanism. This
command is used to configure the auto-recovery timer. To manually recover the port, the
user needs to disable and re-enable the port.
Parameters
recovery_timer
- Specified the bpdu_protection Auto-Recovery recovery_timer. The default
value of recovery_timer is 60.
infinite
- The port will not be auto recovered.
<sec 60 –1000000>
- The timer (in seconds) used by the Auto-Recovery mechanism to
recover the port. The valid range is 60 to 1000000.
Restrictions
Only Administrator and Operator-level users can issue this command.
Example usage:
To configure the bpdu_protection recovery_timer to 120 seconds for the entire switch:
DGS-3627:admin# config bpdu_protection recovery_timer 120
Commands: config bpdu_protection recovery_timer 120
Success.
DGS-3627:admin#
config bpdu_protection
Purpose
Used to configure bpdu_protection trap state or log state.
Syntax
config bpdu_protection [trap | log ] [ none | attack_detected | attack_cleared | both ]
Description
The config bpdu_protection trap command is used to configure the bpdu_protection trap state
or state for the entire switch.
Parameters
trap
- To specify the trap state.
log
- To specify the log state.
none
- Neither attack_detected nor attack_cleared is trapped or logged.
attack_detected
- Events will be logged or trapped when the BPDU attacks is detected.
Page 162 / 757
xStack
®
DGS-3600 Series Layer 3 Gigabit Ethernet Managed Switch CLI Manual
158
config bpdu_protection
attack_cleared
- Events will be logged or trapped when the BPDU attacks is cleared.
both
- The events of attack_detected and attack_cleared shall be trapped or logged.
Restrictions
Only Administrator and Operator-level users can issue this command.
Example usage:
To config the bpdu_protection trap state as both for the entire switch:
DGS-3627:admin# config bpdu_protection trap both
Commands: config bpdu_protection trap both
Success.
DGS-3627:admin#
enable bpdu_protection
Purpose
Used to enable bpdu_protection globally.
Syntax
enable bpdu_protection
Description
The enable bpdu_protection command is used to enable bpdu_protection function globally for
the entire switch.
Parameters
None.
Restrictions
Only Administrator and Operator-level users can issue this command.
Example usage:
To enable bpdu_protection function globally for the entire switch:
DGS-3627:admin# enable bpdu_protection
Commands: enable bpdu_protection
Success.
DGS-3627:admin#
disable bpdu_protection
Purpose
Used to disalbe bpdu_protection globally.
Syntax
disable bpdu_protection
Description
The disable bpdu_protection command is used to disable bpdu_protection function globally
for the entire switch.
Parameters
None.
Restrictions
Only Administrator and Operator-level users can issue this command.
Example usage:
To disable bpdu_protection function globally for the entire switch:
Page 163 / 757
xStack
®
DGS-3600 Series Layer 3 Gigabit Ethernet Managed Switch CLI Manual
159
DGS-3627:admin# disable bpdu_protection
Commands: disable bpdu_protection
Success.
DGS-3627:admin#
show bpdu_protection
Purpose
Used to show bpdu_protection status.
Syntax
show bpdu_protection {ports {<portlist> }}
Description
The show bpdu_protection command is used to display bpdu_protection global configuration
or per port configuration and current status.
Parameters
portlist
- Specified a range of ports to be configured.
Restrictions
None.
Example usage:
To show the bpdu_protection for the entire switch:
DGS-3627:admin#
show bpdu_protection
Commands: show bpdu_protection
BPDU Protection Global Settings
---------------------------------------
BPDU Protection status
: Enabled
BPDU Protection Recovery Time
: 60 seconds
BPDU Protection Trap State
: None
BPDU Protection Log State
: None
DGS-3627:admin#
To show the bpdu_protection status ports 1-12:
DGS-3627:admin#
show bpdu_protection ports 1-12
Commands: show bpdu_protection ports 1-12
Port
State
Mode
Status
------ ------------ ----------- ----------
1
Enabled
shutdown
Normal
2
Enabled
shutdown
Normal
3
Enabled
shutdown
Normal
4
Enabled
shutdown
Normal
5
Enabled
shutdown
Under Attack
6
Enabled
shutdown
Normal
7
Enabled
shutdown
Normal
8
Enabled
shutdown
Normal
9
Enabled
shutdown
Normal
10
Enabled
Block
Normal
11
Disabled
shutdown
Normal
12
Disabled
shutdown
Normal
DGS-3627:admin#
Page 164 / 757
xStack
®
DGS-3600 Series Layer 3 Gigabit Ethernet Managed Switch CLI Manual
160
16
CABLE DIAGNOSTICS COMMAND LIST
The Cable Diagnostics commands in the Command Line Interface (CLI) are listed (along with the appropriate
parameters) in the following table.
Command
Parameters
cable_diag ports
[<portlist> | all]
Each command is listed, in detail, in the following sections.
cable_diag ports
Purpose
This command is used to configure the cable diagnostics.
Syntax
cable_diag ports [<portlist> | all]
Description
For FE port, two pairs of cable will be diagnosed. For GE port, four pairs of cable will be
diagnosed. The type of cable error can be open, short, or crosstalk.
Open means that the cable in the error pair does not have a connection at the specified
position.
Short means that the cables in the error pair has a short problem at the specified position,
Crosstalk means that the cable in the error pair has a crosstalk problem at the specified
position.
When a port is in link-up status, the test will obtain the distance of the cable. Since the status
is link-up, the cable will not have the short or open problem. But the test may still detect the
crosstalk problem.
When a port is in link-down status, the link-down may be caused by many factors.
1.
When the port has a normal cable connection, but the remote partner is powered off,
the cable diagnosis can still diagnose the health of the cable as if the remote partner
is powered on.
2.
When the port does not have any cable connection, the result of the test will indicate
no cable.
3.
The test will detect the type of error and the position where the error occurs.
Note that this test will consume a low number of packets. Since this test is for copper cable,
the port with fiber cable will be skipped from the test. For combo port, the test will always be
applied to the copper media only.
Parameters
<portlist>
- Enter a list of ports used for the configuration here.
all
– Specifies that all the ports will be used for this test.
Restrictions
Only Administrator and Operator-level users can issue this command.
Example usage:
Test the cable on port 1-2:
Page 165 / 757
xStack
®
DGS-3600 Series Layer 3 Gigabit Ethernet Managed Switch CLI Manual
161
DGS-3627:admin# cable_diag ports 1-2
Command: cable_diag ports 1-2
Perform Cable Diagnostics ...
Port
Type
Link Status
Test Result
Cable Length(M)
-----------------------------------------------------------------------------
1
GE
Link up
OK
2
2
GE
Link down
Pair 1 Open
at 1M
Pair 2 Open
at 1M
Pair 3 Short
at 2M
Pair 4 Open
at 2M
DGS-3627:admin#

Rate

4.5 / 5 based on 2 votes.

Bookmark Our Site

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

Share
Top