ECS2020-28T

Edge-Core ECS2020-28T, ECS2020-10P, ECS2020-10T, ECS2020-28P User manual

  • Hello! I am an AI chatbot trained to assist you with the Edge-Core ECS2020-28T User manual. I’ve already reviewed the document and can help you find the information you need or explain it in simple terms. Just ask your questions, and providing more details will help me assist you more effectively!
CLI Reference Guide
www.edge-core.com
ECS2020
10/28-Port Gigabit Web Smart
PoE & Non-PoE Switch
Software Release v1.0.0.0
CLI Reference Guide
ECS2020-10T
Web-smart Gigabit Ethernet Switch
with 8 10/100/1000BASE-T (RJ-45)
and 2 Gigabit SFP Ports
ECS2020-10P
Web-smart Gigabit Ethernet Switch
with 8 10/100/1000BASE-T (RJ-45) 802.3af/at PoE Ports
and 2 Gigabit SFP Ports
ECS2020-28T
Web-smart Gigabit Ethernet Switch
with 24 10/100/1000BASE-T (RJ-45)
and 4 Gigabit SFP Ports
ECS2020-28P
Web-smart Gigabit Ethernet Switch
with 24 10/100/1000BASE-T (RJ-45) 802.3af/at PoE Ports
and 4 Gigabit SFP Ports
E022019-CS-R02
About This Guide
This guide includes detailed information on the switch software, including how to
operate and use the management functions of the switch. To deploy this switch
effectively and ensure trouble-free operation, you should first read the relevant
sections in this guide so that you are familiar with all of its software features.
Who Should Read This
Guide?
This guide is for network administrators who are responsible for operating and
maintaining network equipment. The guide assumes a basic working knowledge of
LANs (Local Area Networks), the Internet Protocol (IP), and Simple Network
Management Protocol (SNMP).
Related
Documentation
This guide focuses on switch software configuration through the CLI.
For information on how to manage the switch through the Web management
interface, see the following guide:
Web Management Guide
Documentation
Notice
This documentation is provided for general information purposes only. If any
product feature details in this documentation conflict with the product datasheet,
refer to the datasheet for the latest information.
Contents
1 MTU .................................................................................................................................. 14
2 Link-Aggregate Port Commands ................................................................................... 15
2.1
Configure relevant commands .................................................................................................... 15
link-aggregation load-balance .......................................................................................... 15
link-aggreation ................................................................................................................. 15
Interface link-aggreation ................................................................................................... 16
2.2
Display relevant commands ........................................................................................................ 16
show link-aggregation ...................................................................................................... 16
3 Port mirroring commands .............................................................................................. 18
3.1
Configure-relevant commands .................................................................................................... 18
monitor session ................................................................................................................ 18
3.2
Display-relevant commands ........................................................................................................ 19
show monitor .................................................................................................................... 19
4 Port isolation commands ............................................................................................... 20
4.1
Configure-relevant commands .................................................................................................... 20
isolate-port ....................................................................................................................... 20
4.2
Display-relevant commands ........................................................................................................ 20
show isolate-port .............................................................................................................. 20
5 Port speed limit ............................................................................................................... 22
5.1
Configure-relevant commands .................................................................................................... 22
rate-limit ........................................................................................................................... 22
5.2
Display-relevant commands ........................................................................................................ 22
show rate-limit .................................................................................................................. 22
6 Storm control .................................................................................................................. 24
6.1
Configure-relevant commands .................................................................................................... 24
storm-control .................................................................................................................... 24
6.2
Display-relevant commands ........................................................................................................ 25
Show storm-control .......................................................................................................... 25
7 Port Security ................................................................................................................... 26
7.1
Configure-relevant commands .................................................................................................... 26
Port-security ..................................................................................................................... 26
7.2
Display-relevant commands ........................................................................................................ 26
show port-security ........................................................................................................... 26
8 NTP/SNTP COMMANDS .................................................................................................. 28
8.1
NTP Configure-relevant commands ............................................................................................ 28
server ............................................................................................................................... 28
show ntp/sntp status ......................................................................................................... 28
9 EEE .................................................................................................................................. 30
10 DDOS PROTECTION ....................................................................................................... 31
10.1
Configuration ddos protection ..................................................................................................... 31
Turn on DDOS protection ................................................................................................. 31
Turn off DDOS protection ................................................................................................ 32
10.2
show DDOS protection ............................................................................................................... 32
11 CPU Guard ....................................................................................................................... 34
11.1
Configuration CPU Guard ........................................................................................................... 34
11.2
show CPU Guard ........................................................................................................................ 35
12 Dual Configuration .......................................................................................................... 36
12.1
Backup the configuration file ....................................................................................................... 36
12.2
Restore Configuration ................................................................................................................. 36
13 RMON .............................................................................................................................. 38
13.1
rmon event .................................................................................................................................. 38
13.2
rmon alarm ................................................................................................................................. 39
13.3
rmon history ................................................................................................................................ 40
13.4
clear rmon interface statistics ..................................................................................................... 41
13.5
show rmon interface statistics ..................................................................................................... 42
13.6
show rmon event ........................................................................................................................ 42
13.7
show rmon alarm ........................................................................................................................ 43
13.8
show rmon history ...................................................................................................................... 44
14 ARP Inspection ................................................................................................................ 45
14.1
arp inspection ............................................................................................................................. 45
14.2
arp inspection rate-limit ............................................................................................................... 45
14.3
arp inspection trust ..................................................................................................................... 46
14.4
arp inspection validate ................................................................................................................ 47
14.5
clear arp inspection statistics ...................................................................................................... 47
14.6
show arp inspection .................................................................................................................... 48
14.7
show arp inspection interface ..................................................................................................... 48
15 Flow Control Commands ................................................................................................ 50
15.1
Flow Control Configuration Commands ...................................................................................... 50
flowcontrol ........................................................................................................................ 50
16 VLAN COMMANDS .......................................................................................................... 51
16.1
Configure commands .................................................................................................................. 51
VLAN description .............................................................................................................. 51
vlan .................................................................................................................................. 52
switch mode ..................................................................................................................... 52
Management VLAN .......................................................................................................... 53
16.2
Configure different types of VLAN .............................................................................................. 54
Access VLAN ................................................................................................................... 54
Trunk allowed VLAN ........................................................................................................ 54
Trunk native VLAN ........................................................................................................... 55
Hybrid VLAN .................................................................................................................... 56
Hybrid native VLAN .......................................................................................................... 57
16.3
Display-relevant commands ....................................................................................................... 58
show vlan ......................................................................................................................... 58
17 Voice VLAN ..................................................................................................................... 59
17.1
Configure commands .................................................................................................................. 59
voice VLAN ...................................................................................................................... 59
voice-vlan mode ............................................................................................................... 59
voice VLAN OUI ............................................................................................................... 60
voice VLAN aging-time and cos ....................................................................................... 61
17.2
Display relevant commands ....................................................................................................... 61
show voice VLAN .............................................................................................................. 61
18 Surveillance VLAN .......................................................................................................... 63
18.1
Configure commands .................................................................................................................. 63
surveillance VLAN ............................................................................................................ 63
surveillance-vlan mode .................................................................................................... 63
surveillance VLAN OUI .................................................................................................... 64
surveillance VLAN aging-time and cos ............................................................................ 65
18.2
18.2 Display relevant commands ................................................................................................ 65
18.2.1 show surveillance VLAN ......................................................................................... 65
19 DHCP-snooping .............................................................................................................. 67
19.1
Configure commands .................................................................................................................. 67
DHCP-Snooping .............................................................................................................. 67
DHCP-Snooping trust ...................................................................................................... 68
dhcp snooping for vlan ..................................................................................................... 68
enable
dhcp snooping option 82 ..................................................................................... 69
option 82 of remote-ID .................................................................................................... 70
option 82 of CID .............................................................................................................. 70
DHCP snooping policy .................................................................................................... 71
19.2
19.2 Display relevant commands ................................................................................................ 72
19.2.1 show DHCP-Snooping .......................................................................................... 72
20 Loopback-detection ....................................................................................................... 74
20.1
Configure commands .................................................................................................................. 74
Loopback-detection .......................................................................................................... 74
20.2
Display relevant commands ........................................................................................................ 75
show loop-detection ......................................................................................................... 75
21 Spanning-tree ................................................................................................................. 76
21.1
Configure Commands ................................................................................................................. 76
spanning-tree enable ....................................................................................................... 76
spanning-tree mode ......................................................................................................... 77
spanning-tree forward-time .............................................................................................. 77
spanning-tree hello-time .................................................................................................. 78
spanning-tree max-age .................................................................................................... 79
spanning-tree max-hops .................................................................................................. 79
spanning-tree pathcost method ....................................................................................... 80
spanning-tree priority ....................................................................................................... 81
spanning-tree mst configure ............................................................................................ 81
spanning-tree enable ....................................................................................................... 82
spanning-tree bpdu .......................................................................................................... 83
spanning-tree cost ........................................................................................................... 84
spanning-tree guard ......................................................................................................... 84
spanning-tree link-type ..................................................................................................... 85
spanning-tree portfast edgeport ....................................................................................... 86
spanning-tree priority ....................................................................................................... 86
spanning-tree bpdu [filtering|flooding] .............................................................................. 87
spanning-tree trap ............................................................................................................ 87
21.2
Display relevant commands ........................................................................................................ 88
show spanning-tree .......................................................................................................... 88
22 DHCP v4 server ............................................................................................................... 90
22.1
Configure commands .................................................................................................................. 90
DHCP v4 server ............................................................................................................... 90
22.2
Display relevant commands ........................................................................................................ 91
show ip dhcp server ......................................................................................................... 91
23 ipv4 client ........................................................................................................................ 92
23.1
Configure commands .................................................................................................................. 92
23.1.1 ipv4 client ............................................................................................................. 92
23.2
Display relevant commands ........................................................................................................ 93
show ip DHCP.................................................................................................................... 93
24 24 ipv6 Client ................................................................................................................... 94
24.1
Configure commands .................................................................................................................. 94
ipv6 client ......................................................................................................................... 94
24.1
Display relevant commands ........................................................................................................ 94
24.1.1 show ipv6 DHCP ............................................................................................................... 94
25 IGMP Snooping ............................................................................................................... 96
25.1
command related to configuration .............................................................................................. 96
ip igmp snooping .............................................................................................................. 96
ip igmp snooping version ................................................................................................. 96
Ip igmp snooping vlan ...................................................................................................... 97
Ip igmp snooping fast-leave ............................................................................................. 99
ip igmp snooping suppression ......................................................................................... 99
ip igmp snooping unknown-multicast action ................................................................... 100
ip igmp snooping vlan mrouter ....................................................................................... 101
ip igmp snooping vlan mrouter learn .............................................................................. 102
ip igmp snooping vlan static ........................................................................................... 103
ip igmp snooping vlan querier ........................................................................................ 103
ip igmp snooping vlan querier version ............................................................................ 104
ip igmp snooping vlan querier last-member-query-count ............................................... 105
ip igmp snooping vlan querier last-member-query-interval ............................................ 106
ip igmp snooping vlan querier max-response-time ........................................................ 107
ip igmp snooping vlan querier query-interval ................................................................. 107
ip igmp snooping vlan robustness-variable .................................................................... 108
ip igmp profile ................................................................................................................. 109
profile range ................................................................................................................... 110
ip igmp filter .................................................................................................................... 110
25.2
Commands related to display and monitoring .......................................................................... 111
clear ip igmp snooping statistics ..................................................................................... 111
clear ip igmp snooping groups ........................................................................................ 112
show ip igmp snooping ................................................................................................... 113
show ip igmp snooping vlan ........................................................................................... 114
show ip igmp snooping forward-all ................................................................................. 114
show ip igmp snooping groups ....................................................................................... 115
show ip igmp snooping mrouter ...................................................................................... 116
show ip igmp snooping querier ....................................................................................... 117
26 MLD Snooping ............................................................................................................... 118
26.1
MLD Snooping configuration commands ................................................................................. 118
ipv6 mld snooping .......................................................................................................... 118
ipv6 mld snooping version ............................................................................................. 118
ipv6 mld snooping vlan .................................................................................................. 119
ipv6 mld snooping vlan immediate-leave ....................................................................... 120
ipv6 mld snooping report-suppression ........................................................................... 120
ipv6 mld snooping unknown-multicast action ................................................................. 121
ipv6 mld snooping vlan static-router-port ....................................................................... 122
ipv6 mld snooping vlan router learn ............................................................................... 122
ipv6 mld snooping vlan static-group ............................................................................... 123
26.2
Commands related to display and monitoring .......................................................................... 124
clear ipv6 mld snooping statistics ................................................................................... 124
clear ipv6 mld snooping groups ...................................................................................... 125
show ipv6 mld snooping ................................................................................................. 126
show ipv6 mld snooping vlan ......................................................................................... 127
show ipv6 mld snooping forward-all ................................................................................ 127
show ipv6 mld snooping groups ..................................................................................... 128
show ipv6 mld snooping router ....................................................................................... 129
27 Path detection ............................................................................................................... 131
27.1
ping ........................................................................................................................................... 131
27.2
traceroute ................................................................................................................................. 132
28 Access Control List ...................................................................................................... 133
28.1
Configure commands ................................................................................................................ 133
standard ip access-list .................................................................................................... 133
extended ip access-list ................................................................................................... 133
ACE configuration .......................................................................................................... 134
standard ip access-list deny|permit .................................................................................. 135
extended ip access-list deny|permit ............................................................................... 136
ip access-list commit ...................................................................................................... 137
standard ipv6 access-list ................................................................................................. 137
extended ipv6 access-list ............................................................................................... 138
ipv6 ACE configuration ................................................................................................... 138
standard ipv6 access-list deny|permit ................................................................................ 139
extended ipv6 access-list deny|permit ............................................................................ 140
ipv6 access-list commit .................................................................................................. 140
mac access-list extended ................................................................................................. 141
mac ACE configuration .................................................................................................. 142
mac access-list deny|permit ........................................................................................... 142
mac access-list commit .................................................................................................. 143
28.2
Display commands ................................................................................................................... 144
28.2.1 show access-list ................................................................................................... 144
29 802.1X ............................................................................................................................ 145
29.1
Configure commands ................................................................................................................ 145
authentication dot1x ....................................................................................................... 145
authentication dot1x ....................................................................................................... 145
authentication port-control ............................................................................................. 146
authentication host-mode ............................................................................................... 147
29.2
Display commands ................................................................................................................... 147
show authentication ........................................................................................................ 147
30 AAA ................................................................................................................................ 149
30.1
Configure commands ............................................................................................................... 149
radius host ..................................................................................................................... 149
TACACS host ................................................................................................................. 150
aaa authentication enable .............................................................................................. 150
aaa authentication login ................................................................................................. 151
line console .................................................................................................................... 151
line telnet ........................................................................................................................ 152
line ssh ........................................................................................................................... 153
30.2
Display commands ................................................................................................................... 154
show radius .................................................................................................................... 154
show tacacs ................................................................................................................... 154
show aaa authentication enable list .................................................................................. 155
show aaa authentication login list ...................................................................................... 155
31 SSH ................................................................................................................................ 157
31.1
Configure commands ............................................................................................................... 157
ip ssh .............................................................................................................................. 157
32 SSL ................................................................................................................................ 158
32.1
Configure commands ................................................................................................................ 158
ssl ................................................................................................................................... 158
ssl replace ...................................................................................................................... 158
33 QoS ................................................................................................................................ 160
33.1
Configure commands ................................................................................................................ 160
qos trust ......................................................................................................................... 160
qos queue schedule ....................................................................................................... 160
qos map cos-queue ....................................................................................................... 161
qos map dscp-queue ..................................................................................................... 162
qos map weight .............................................................................................................. 162
qos queue strict-priority-num ......................................................................................... 163
33.2
Display commands ................................................................................................................... 163
show qos ......................................................................................................................... 163
show qos queueing .......................................................................................................... 164
show qos map cos-queue............................................................................................... 165
show qos map dscp-queue ............................................................................................... 165
34 POE commands ............................................................................................................ 167
34.1
configure command .................................................................................................................. 167
PoE enable .................................................................................................................... 167
poe mode ....................................................................................................................... 168
poe max-power .............................................................................................................. 169
poe alloc-power .............................................................................................................. 170
poe timer enable ............................................................................................................ 171
poe timer configuration .................................................................................................. 172
34.2
Display relevant commands ...................................................................................................... 173
show poe interface ......................................................................................................... 173
show poe interfaces ....................................................................................................... 174
show poe powersupply .................................................................................................. 174
show poe timer ............................................................................................................... 175
35 SNMP command ........................................................................................................... 176
35.1
SNMP configuration commands ............................................................................................... 176
snmp enable .................................................................................................................. 176
no snmp enable ............................................................................................................. 177
snmp enable traps ........................................................................................................ 178
snmp-server community ................................................................................................. 178
snmp-server host ........................................................................................................... 179
snmp trap auth ............................................................................................................... 180
snmp trap link-status ...................................................................................................... 181
snmp trap restart ............................................................................................................ 181
snmp trap stp ................................................................................................................. 182
35.2
SNMP display relevant commands ........................................................................................... 183
show snmp-status .......................................................................................................... 183
show snmp trap .............................................................................................................. 183
show community ............................................................................................................ 184
show snmp host ............................................................................................................. 185
36 lldp settings .................................................................................................................. 186
36.1
lldp settings ............................................................................................................................... 186
LLDP enable .................................................................................................................. 186
lldp rx ............................................................................................................................. 186
LLDP tx-interval ............................................................................................................. 187
LLDP reinit-delay ........................................................................................................... 188
LLDP holdtime-multiplier ................................................................................................ 188
lldp lldpdu ....................................................................................................................... 189
LLDP med ...................................................................................................................... 190
lldp med fast-start-repeat-count ...................................................................................... 191
lldp med tlv-select .......................................................................................................... 192
lldp tlv-select ................................................................................................................. 192
lldp tlv-select pvid ......................................................................................................... 193
lldp tlv-select vlan-name .............................................................................................. 194
lldp tx .............................................................................................................................. 195
LLDP tx-delay ................................................................................................................ 196
show lldp ........................................................................................................................ 197
show lldp local-device .................................................................................................... 198
show lldp med ................................................................................................................ 198
show lldp neighbor ......................................................................................................... 199
show lldp statistics ......................................................................................................... 200
37 System settings command ........................................................................................... 202
37.1
Basic System Settings .............................................................................................................. 202
Management VLAN ........................................................................................................ 202
ip dhcp ........................................................................................................................... 202
Management ip............................................................................................................... 203
location command .......................................................................................................... 204
ipv6 ................................................................................................................................ 204
ipv6 DHCP command ................................................................................................... 205
Telnet ............................................................................................................................. 206
Upload the switch log file ............................................................................................... 207
system restart ................................................................................................................. 207
change password ........................................................................................................... 208
System Log .................................................................................................................... 208
ARP table ....................................................................................................................... 210
Configure static MAC bindings ....................................................................................... 211
MAC address drop ......................................................................................................... 211
configure mac-address aging-time ................................................................................. 212
show mac-address count ............................................................................................... 213
display bound mac-addresses ........................................................................................ 214
view the current configuration ........................................................................................ 214
save configuration .......................................................................................................... 215
restore-defaults .............................................................................................................. 216
Firmware Upgrade ......................................................................................................... 217
Firmware backup ........................................................................................................... 218
Uploading the startup configuration ............................................................................... 219
Downloading a configuration file ................................................................................... 220
Memory information ....................................................................................................... 221
CPU information ............................................................................................................. 222
Flash information ........................................................................................................... 223
Cable detection .............................................................................................................. 224
web-language ................................................................................................................ 225
Management static IPv4 address ................................................................................... 226
show version .................................................................................................................. 227
DHCP server enable ...................................................................................................... 228
DHCP server configuration ............................................................................................ 229
Show fiber-transceiver .................................................................................................... 230
Show fiber-info ............................................................................................................... 231
1 MTU
In global configuration mode, use this command to set the MTU of the interface.
Mtu <1522-10240>
The default configuration is
1522.
Global configuration mode
Null
Set the mtu value
ECS2020-10P(config)# mtu 10240
ECS2020-10P# show interfaces GigabitEthernet 0/1 mtu
Interface |
MTU
------------------- --+---------------------
gi0/1 |
10240
Parameter
Parameter
Description
1522-10240
Can be set in the range
Command
Command
show interfaces gigabitEthernet id mtu
Default
Mode
Usage
Example
Example
2 Link-Aggregate Port Commands
2.1
Configure relevant commands
link-aggregation load-balance
Configures a traffic balancing algorithm for link-aggregation ports (AGG). Use the no option of
this command to set the traffic balance back to the default.
link-aggregation load-balance {mac|ip-mac}
no link-aggregation load-balance
Null
Global configuration mode
Use the show link-aggregation group command to view the traffic balancing
algorithm.
ECS2020-10P(config)
# link-aggregation load-balance ip
link-aggreation
Creates a link-aggregation group.
link-aggregation {group-number mode { manual | lacp }}
no link-aggregation {group-number}
The physical port does not belong to any link-aggregate group.
Parameter
Parameter
Description
MAC
The traffic is allocated according to the source MAC address of
incoming packets. In each AGG, packets from different
MAC
addresses are assigned to different ports. Packets from
the
same MAC address use the same port.
IP+MAC
Traffic is allocated based on source IP and source MAC.
Different source IP - source MAC traffic is forwarded through
different ports, and the same source IP - source MAC is
forwarded through the same link.
Command
Command
Description
show link-aggregation group
Display link-aggregation settings
parameter
Parameter
Description
group-number
The link-aggregation member port group number
manual
Use static mode
lacp
Use LACP protocol
Default
Mode
Usage
Example
Default
Global configuration mode
You can configure manual mode and lacp mode. The no command removes all
interfaces from the aggregation group.
The following example creates a link aggregation group 1
ECS2020-10P(config)#link-aggregation 1 mode manual
Interface link-aggreation
Sets a physical port as a member port of a link-aggregation group. Use the no option of the command to
remove the link-aggregation port member from the group.
link-aggregation group-number [active| passive|manual]
no link-aggregation
{
group-number}
The physical port does not belong to any link-aggregation group.
Interface configuration mode
All AGG member interfaces need to be in the same VLAN.
ECS2020-10P(config)# interface GigabitEthernet /1
ECS2020-10P(config-if-GigabitEthernet0/1)# link-aggregation 1 active
2.2
Display relevant commands
show link-aggregation
Display link-aggregation settings.
show link-aggregation [group|group-number ]
Null
Parameter
Parameter
Description
group-number
The link-aggregation port group number
Command
Command
Description
show link-aggregation group
Display the information of the link aggregation group
parameter
Parameter
Description
show link-aggregation group
Show all link aggregation groups
show link-aggregation group group-number
Displays a specific link
aggregation group
Default
Mode
Usage
Mode
Usage
Example
Example
Default
Privilege mode
If you do not specify the aggregate port interface number, all the information
of the aggregate port will be displayed.
The following example shows information about link-aggregation 1:
ECS2020-10P# show link-aggregation group 1
Command
Command
Description
Show link-aggregation group
Display the status of all link
aggregation groups
Mode
Usage
Example
3 Port mirroring commands
3.1
Configure-relevant commands
monitor session
Create a SPAN session and specify the destination port (monitor port) and source port (monitored port). Use
the no option of the command to delete the session or remove the source port or destination port separately.
monitor session session_number { [ source interface Gigabit Ethernet port-id
[both | rx | tx ]] | [ destination interface GigabitEthernet port-id ]}
no monitor session session_number { [ source interface Gigabit Ethernet port-id
[both | rx | tx ]] | [destination interface GigabitEthernet port-id ]}
Null
Global configuration mode
Switch port and AGG (separate port settings) can be configured as source and
destination
ports. The SPAN session does not affect the normal operation of the switch.
SPAN
sessions can be configured on a disabled port, however, SPAN does not work
immediately until the destination and source port are enabled. A port cannot be both a
source port and a destination port. Use the show monitor command to display the
operating status of the SPAN session.
The following example shows how to create a SPAN session: Session 1. If the session
has already been set up,First clear the configuration of the current session 1, and then
set the port 0 interface to the port
interface 0/1.
ECS2020-10P(config)# no monitor session 1
ECS2020-10P(config)# monitor session 1 source interfaces
GigabitEthernet 0/2 both
ECS2020-10P(config)# monitor session 1 destination interface
GigabitEthernet 0/1
Parameter
Description
session_number
SPAN session number
source interface
Gigabit Ethernet port-id
Specifies the source port. For the interface-id,
specify the corresponding interface number, only
the physical
port, not the SVI.
destination interface
GIgabit Ethernet
port-id
Specifies the destination port. For interface-id,
specify the corresponding interface number, only the
physical port, not the SVI.
both
Monitors input and output traffic.
rx
Only monitors the input traffic.
tx
Only monitors the output traffic.
Command
Command
Description
monitor session
Creates a SPAN session and specifies
the destination port (monitoring port)
and source port (monitored port)
Default
Mode
Us
a
ge
Example
3.2
Display-relevant commands
show monitor
Displays the status of the current SPAN configuration
show monitor
All SPAN sessions are displayed by default
Privilege mode
Null
ECS2020-10P# show monitor
Session 1 Configuration
Source RX Port : gi0/9
Source TX Port : gi0/9
Destination port : gi0/10
Ingress State: disabled
parameter
Parameter
Description
-
-
The following example shows how to display the current state of a SPAN session by
using the show monitor privilege command
Command
Command
Description
show monitor session
Displays the status of the current
SPAN configuration
Default
Mode
Usage
Example
4 Port isolation commands
4.1
Configure-relevant commands
isolate-port
Configures port isolation in interface mode. Use the no command to delete the configuration.
By default, port isolation is disabled.
switchport protected
no switchport protected
Turn off port isolation configuration
Interface configuration mode
After the port isolation function is enabled, the ports and link aggregation groups (AGG)
cannot be accessed by each other.
The following is the isolation between port 0/1 and port 0/2.
ECS2020-10P(config)# interface GigabitEthernet 0/1
ECS2020-10P(config-if-GigabitEthernet0/1)# switchport protected
ECS2020-10P(config)# interface GigabitEthernet 0/2
ECS2020-10P(config-if-GigabitEthernet0/2)# switchport protected
4.2
Display-relevant commands
show isolate-port
Displays the current port isolation configuration.
show interfaces port-id protected
parameter
Parameter
Description
Switchport protected
Turn on port isolation configuration
Command
Command
Description
show interfaces GigabitEthernet 0/1 protected
View the current port isolation information
parameter
Parameter
Description
show interfaces port-id protected
Displays the current port isolation
configuration.
Default
Mode
Usage
Example
Null
Privilege mode
Null
ECS2020-10P
#show isolate-port
Command
Command
Description
show interfaces port-id protected
View the current port isolation
information
Default
Mode
Usage
Example
/