Sie sind auf Seite 1von 25

Basic Configuration of Ports

Maipu Communication Technology Co., Ltd


No. 16, Jiuxing Avenue
Hi-tech Park
Chengdu, Sichuan Province
People’s Republic of China - 610041
Tel: (86) 28-85148850, 85148041
Fax: (86) 28-85148948, 85148139
URL: http:// www.maipu.com
Email: overseas@maipu.com

Maipu Confidential & Proprietary Information Page 1 of 25


Basic Configuration of Ports

All rights reserved. Printed in the People’s Republic of China.

No part of this document may be reproduced, transmitted, transcribed, stored in a retrieval system, or translated into any
language or computer language, in any form or by any means, electronic, mechanical, magnetic, optical, chemical, manual
or otherwise without the prior written consent of Maipu Communication Technology Co., Ltd.

Maipu makes no representations or warranties with respect to this document contents and specifically disclaims any implied
warranties of merchantability or fitness for any specific purpose. Further, Maipu reserves the right to revise this document
and to make changes from time to time in its content without being obligated to notify any person of such revisions or
changes.

Maipu values and appreciates comments you may have concerning our products or this document. Please address comments
to:

Maipu Communication Technology Co., Ltd


No. 16, Jiuxing Avenue
Hi-tech Park
Chengdu, Sichuan Province
People’s Republic of China - 610041
Tel: (86) 28-85148850, 85148041
Fax: (86) 28-85148948, 85148139
URL: http:// www.maipu.com
Email: overseas@maipu.com

All other products or services mentioned herein may be registered trademarks, trademarks, or service marks of their
respective manufacturers, companies, or organizations.

Maipu Confidential & Proprietary Information Page 2 of 25


Basic Configuration of Ports

Maipu Feedback Form


Your opinion helps us improve the quality of our product documentation
and offer better services. Please fax your comments and suggestions to
(86) 28-85148948, 85148139 or email to overseas@maipu.com.

Document Basic Configuration of Ports


Title
Product Document 1.0
Version Revision
Number
Evaluate Presentation:
this (Introductions, procedures, illustrations, completeness, arrangement, appearance)
document … Good … Fair … Average … Poor

Accessibility:
(Contents, index, headings, numbering)
… Good … Fair … Average … Poor
Editorial:
(Language, vocabulary, readability, clarity, technical accuracy, content)
… Good … Fair … Average … Poor
Your Please check suggestions to improve this document:
suggestions … Improve introduction … Make more concise
to improve
… Improve Contents … Add more step-by-step
the
procedures/tutorials
document
… Improve arrangement … Add more technical information
… Include images … Make it less technical
… Add more detail … Improve index

If you wish to be contacted, complete the following:


Name Company
Postcode Address
Telephone E-mail

Maipu Confidential & Proprietary Information Page 3 of 25


Basic Configuration of Ports

Contents

Basic Confgiruation of Ports ......................................................................5


Introduction to Ports ...............................................................................................5
Introduction to Serial Number..................................................................................................5
Basic Concept of portlist...........................................................................................................6
Enter port configuration mode..................................................................................................6

Configure Ports.......................................................................................................7
Basic Commands for Configuring Ports .....................................................................................7
Monitoring & Maintaining .......................................................................................................20

Maipu Confidential & Proprietary Information Page 4 of 25


Basic Configuration of Ports

Basic Confgiruation of Ports

This chapter mainly describes the attributes of the ports that Maipu series
switches support and how to configure these ports.

The contents are as follows:

z Introduction to ports

z Configure ports

Introduction to Ports
The contents of this section:

z Serial number

z Basic concept of porlist

z Enter port configuration mode

Introduction to Serial Number


The serial numbers of devices’ physical ports are denominated according
to the device features, as follows.

Type Slot Stackable Small card Serial


number

Desktop (with fixed slot) S/P


Desktop (with fixed slot) √ S/P
Desktop (with fixed slot) √ U/S/P
Desktop (with fixed slot) √ √ U/S/P
Rack √ S/Sub-S/P
Rack √ √ S/Sub-S/P

Note: U——Unit, S——Slot, Sub-S——Sub-Slot, P——Port

Maipu Confidential & Proprietary Information Page 5 of 25


Basic Configuration of Ports

Unit: Indicates the device in a stack; therefore, users need to confirm if


the device is in the stacking state when initializing it. The serial number
starts from 0.

Slot: Indicates slots on the device; the serial number starts from 0. If
there is a fixed port, the slot number 0 is reserved for the fixed port. The
serial number of the service slot starts from 1; the serial number of the
control card is irrelevant with that of the service slot.

Sub-Slot: Indicates sub-slots which exist only on rack devices; the serial
number starts from 0. If there is a fixed port, the slot number 0 is
reserved for the fixed port.

Port: Indicates physical ports on the device or the card; the serial number
of the fixed port on each device, card and sub-card starts from 0.

Basic Concept of portlist


Whether configuring or displaying, Maipu switches use portlist to select
ports.

portlist can be one of the following situations:

z A sing port: such as “0/0/1”.

z Continuous Ports: use “-“to represent a section of continuous ports.


For instance, “0/0/3-0/0/5” means port 3, 4, 5.

z Include both a single port and continuous ports: use comma to


separate them. For instance, to represent the fixed ports 1, 3, 4, 6 on
a desktop device, you can write in the format of “port 0/0/1, 0/0/3-
0/0/4, 0/0/6”.

Enter port configuration mode


You can use port portlist to start the port configuration mode in the global
configuration mode.

Command Description
switch#config terminal Enter the global configuration mode
switch (config)#port portlist Enter the port configuration mode

Port configuration mode has two kinds of conditions, as follows:

Maipu Confidential & Proprietary Information Page 6 of 25


Basic Configuration of Ports

1. A single port, for S6800 and S8900 series, represented by “config-


port-×/×”; for S3900 series, represented by "config-port-x/x/x"; for
S3400 series, represented by “config-port-x/x”.

2. Multiple ports, represented by “config-port-range”.

When configuring Maipu switches, if you are already in the port


configuration mode, you can also re-select or re-configure the port via
inputting “port portlist”.

Configure Ports
Basic Commands for Configuring Ports
Command Description Confg mode
shutdown Enable the port/aggregation group config-port-xxx
config-port-range
config-link-aggregation
no shutdown Disable the port/aggregation group config-port-xxx
config-port-range
config-link-aggregation
description string Configure description information of config-port-xxx
the port config-port-range
config-link-aggregation
no description Cancel the configuration of the config-port-xxx
description information config-port-range
config-link-aggregation
duplex Configure the duplex mode config-port-xxx
{auto|full|half} config-port-range
speed Configure the rate config-port-xxx
{10|100|1000|10000 config-port-range
|auto}
storm-control Configure the storm control config-port-xxx
{broadcast|multica config-port-range
st|unicast}
{pps packets|bps
rate-bps|percent}
no storm-control Cancel the storm control of the port config-port-xxx
{broadcast|multicast config-port-range
|unicast}
storm-control action config-port-xxx
Configure the storm control action
{shutdown|trap} config-port-range
no storm-control
Cancel the storm control action config-port-xxx
action

Maipu Confidential & Proprietary Information Page 7 of 25


Basic Configuration of Ports

config-port-range
config-port-xxx
load-interval
Configure the traffic interval config-port-range
<second>
config-link-aggregation
flowcontrol {on|off} Configure the flow control config-port-xxx
mdix Configure the mode of ports sending config-port-xxx
{auto|normal|cross} signals config-port-range
mtu num Configure the maximum transmission config-port-xxx
unit config-port-range
link-delay <second> Configure the reporting delay of state config-port-xxx
config-port-range
loopback Perform loop check config-port-xxx
{external|internal} config-port-range
no loopback Cancel loop check config-port-xxx
config-port-range
hol- config-port-xxx
blocking{enable|disa Enable/disable HOL blocking
ble} config-port-range

port-mode {lan|wan} config-port-xxx


Configure working mode of the port
config-port-range
media-type
{auto|copper|fib config-port-xxx
Configure media type of the port
er|fiber-to- config-port-range
copper}
errdisable detect
cause
{ all| bpduguard|
dai
| dhcp-snooping|
Configure the err-disabled module
l2pt config
function
| link-flap|
loopback-detect
| oam | port-
security
| storm-control}
no errdisable
detect cause
{ all| bpduguard|
dai
| dhcp-snooping|
Cancel the err-disabled module
l2pt config
function
| link-flap|
loopback-detect
| oam | port-
security
| storm-control}
errdisable recovery Configure recovery interval of err-
config
interval timer-value disabled port
errdisable recovery
cause{all|bpduguard Configure the modules that can be
|ulfd|dai|dhcp- config
recovered after err-disabled
snooping|l2pt|oam|s
torm-control|eips-

Maipu Confidential & Proprietary Information Page 8 of 25


Basic Configuration of Ports

udld}
errdisable flap-
setting cause link-
Configure the link-flap function
flap max-flap flap- config
parameters of the port
value time
time-value
no errdisable flap- config-port-xxx
setting cause link- Restore the link-flap function
config-port-range
flap parameters of the port
config-link-aggregation
no port-type config-port-xxx
Restore the default UNI/NNI type of
config-port-range
the port
config-link-aggregation
uni-isolate config-port-xxx
{ community | Configure the communication
config-port-range
isolated } between UNI ports
config-link-aggregation
test cable-
Check the status of the cable
diagnostics port enable
connected to the port
[portlist]
cable-diagnostics Check the cable automatically when
config
the port is shut down
No cable- Cancel the auto checking for the
diagnostics config
cable when the port is shut down
clear cable-
Clear diagnostic result of the cable in
diagnostics port enable
the specified port
[portlist]
port-numbering Configure the start number of the
mode { 0|1} config
port

„ shutdown
This is command is used to configure the management status of the
port/aggregation group. After one port is disabled, it does not send or
receive any frame. Therefore, it does not have any function. The port
status includes UP and DOWN. When one port is disabled, its status must
be DOWN.

Disable one port, use the command. Otherwise, use the no format.

When the aggregation group is closed, all member ports in the group are
closed. When the aggregation group is enabled, you can shutdown/no
shutdown the member ports individually.

shutdown
no shutdown

Note

Even a port is no shutdown; its status may not be up. The status also
depends on other situations, for instance, the network cable is not inserted
or the port is closed temporarily.

Maipu Confidential & Proprietary Information Page 9 of 25


Basic Configuration of Ports

„ Description
For memorizing easily, you can configure the description information for a
port. For instance, a port is allocated to company A, and you can configure
its description information as “company A”. Description information
consists of up to 240 characters and space can be input among characters.

By default, there is no description information for a port.

description string
no description
Command Description
string The character string of the description information of a
port

Default status: No description information

„ duplex
This command is used to configure duplex parameter on one port.

duplex {auto|full|half}
Command Description
Auto The duplex status of a port depends on the auto
negotiation of the local port and the peer port.
Full The port can send and receive packets at the same time.
half The port can only send packets or receive packets at one
moment.

Default status: use the auto mode.

„ speed
This command is used to configure the rate of one port.

speed {10|100|1000|10000|auto}
Command Description
The speed of a port depends on the auto negotiation of
auto
the local port and the peer port.
10 The port rate is 10M.
100 The port rate is 100M.
1000 The port rate is 1000M.
10000 The port rate is 10G

Default status: use the auto mode.

Maipu Confidential & Proprietary Information Page 10 of 25


Basic Configuration of Ports

Note

1. When the duplex speeds at two sides are different, the port may
become up. When PHY receives signals sent from the opposite end in
the case of 10 non-auto negotiation, it does not check whether the
codes and rates are consistent and then starts the port. The processing
is implemented by the chip.

2. The speed duplex mode supported by the port is subject to the card
and port type. When the configured capability is not supported by the
port, the configuration fails and "not support" is prompted.

„ storm control
This command is used to restrict the size of the broadcast flow permitted
to pass on an Ethernet port. When the broadcast flow on the port exceeds
the value configured by the user, the system discards the packets which
exceed the limitation of the broadcast flow. In this way, the proportion of
the broadcast flow can be reduced to the limited range and the normal
operation of network services is ensured.

Following types of the restricted packets can be configured:

1. Unknown unicast packet, unicast

2. Broadcast packet, broadcast

3. Unknown multicast packet, multicast

You can configure storm control for pps(packets per second) and bps(bits
per second).

Cancel the storm control, use the no format.

storm-control {broadcast|multicast|unicast} {pps packets|bps rate-


bps|percent}
no storm-control {broadcast|multicast|unicast}
Syntax Description
unicast Control unknown unicast packets
broadcast Control broadcast packets
multicast Control multicast packets
pps packets Configure storm control for pps(packets per second). Here,
the unit of pps is 0-1000000 packets per second.
bps rate-bps Configure storm control for bps(bits per second). The unit of
bps is kbps and the granularity is 64kbps. The value range is
64-8000000, that is, 64kpbs to 8G.
percent Perform the storm control according to the percent and the
value range is 1-100.

After the configuration, the status of the storm control can be displayed
via show storm-control [portlist].

Maipu Confidential & Proprietary Information Page 11 of 25


Basic Configuration of Ports

Default status: The storm control is not configured.

„ storm-control action
This command is used to configure the action executed after storm
suppression happens, that is, disable the port pr send TRAP alarm. To
send TRAP, first enable snmp service and enable the corresponding switch.

The action types:

1. Disable port: shutdown;

2. Send TRAP alarm: trap;

Cancel the storm control action, use the no format.

storm-control action {shutdown|trap}


no storm-control action
Syntax Description
shutdown Disable the port
trap Send TRAP alarm

After the configuration, the status of the storm control action can be
displayed via show storm-control [portlist].

Default status: No storm control action

„ load-interval
The command is used to configure the interval of printing traffic statistics.

load-interval <second>
Syntax Description
Load-interval second Set the interval of printing the traffic statistics as second

The value range of second is 30-600 and the command only supports 3900.

Default status: It is 300s, that is, 5 minutes, by default.

Note

The chip does not support measuring the number of the unknown unicast
packets, so the control action of the unicast storm control in the pps mode
does not take effect, that is, configure pps unknown unicast storm. If the
storm action is shutdown port or trap, the storm control can take effect,
but the port does not have the shutdown or trap action.

Maipu Confidential & Proprietary Information Page 12 of 25


Basic Configuration of Ports

„ flow control
This command is used to configure the flow control of the port.

flowcontrol {on|off}
Command Description
on Enable flow control
off Disable flow control

Default status: disable the flow control

„ mdix
This command is used to configure the mode of the port sending signals.

Command Description
normal Line 1 and 2 are used to send signals; line 3 and 6 are
used to receive signals
cross Line 1 and 2 are used to receive signals; line 3 and 6 are
used to send signals
auto Select automatically between normal and cross

Default status: auto mode

Whether a port can be UP is related with the mdix setting of the two
parties. If both are normal mode or cross mode, use the crossover
network cable. If the mdix mode of one party is set as normal and the
other is cross, use the common network cables. When auto mode is
configured, use common network cable or crossover network cable.

The rules are as follows:

Local mdix Configuration Remote mdix Supported Network Cable


Configuration Type
auto auto Common network cable,
crossover network cable
auto normal Common network cable,
crossover network cable
auto cross Common network cable,
crossover network cable
normal auto Common network cable,
crossover network cable
normal normal Crossover network cable
normal cross Common network cable
cross auto Common network cable,
crossover network cable
cross normal Common network cable

Maipu Confidential & Proprietary Information Page 13 of 25


Basic Configuration of Ports

cross cross Crossover network cable

„ mtu
This command is used to configure MTU.

mtu num
Syntax Description
num Configure the port MTU. For the frames received at the port
or sent from the port, if the length exceeds the configured
MTU, they will be discarded. The unit for configuration is
byte. It is required that the configured value must be a
multiple of 4 bytes. If the value is not, it is decreased to a
multiple of 4 for configuration. For instance, the configured
valued is 1501 types, it is adjusted to 1500 types by the
system.

Default status: 1824 bytes

„ Link-delay
This command is used to configure whether the link change event (UP,
DOWN) is reported with delay and the time of the delay report.

link-delay <second>
Command Description
The unit is second, which means the report delay after
second
link event is checked. The value range is 2-10s.

Default status: 0s, that is, report the link event immediately.

„ loopback
Loop check is used to check link. As a test command, it doesn’t save script.

loopback {external|internal}
Syntax Description
internal Start internal loopback test
external Start the external loopback test

When configure a link as down, both the internal loop and the external
loop cannot be checked.

When loop check is performed, the configurations such as mdix, shutdown,


speed and duplex cannot be performed.

After loop check starts, users can cancel it.

Maipu Confidential & Proprietary Information Page 14 of 25


Basic Configuration of Ports

„ hol-blocking
Use the command to enable or disable HOL blocking of the port.

hol-blocking {enable|disable}
Syntax Description
enable Enable the HOL blocking function of the port
disable Disable the HOL blocking function of the port

Default status: enable.

„ port-mode
Set the working mode of the 10G port

port-mode {lan|wan}
Syntax Description
lan Configure the 10G port to work in LAN mode
wan Configure the 10G port to work in WAN mode

Default status: LAN.

„ media-type
Configure the media type of the port.

media-type {auto|copper|fiber}
Syntax Description
auto The port automatically checks the cable and determines the
media type.
copper Configure the media type to copper.
fiber Configure the media type to fibber.
fiber-to-copper Configure as fiber to copper mode

The combo port of the switch can use copper or fiber. Automatic
identification of copper or fiber should be supported by specific PHY, but
currently, it does not support.

Note

The command is only applicable to the line card that supports fiber/copper
switching.

Maipu Confidential & Proprietary Information Page 15 of 25


Basic Configuration of Ports

z errdisable detect cause


The command is used to configure the err-disabled module.

errdisable detect cause{ all| bpduguard| dai| dhcp-snooping| l2pt| link-


flap| loopback-detect| oam | port-security | storm-control}
Syntax Description
all All modules can err-disable the port.
bpduguard The Bpduguard function permit err-disabling the port.
dai The dai function permits err-disabling the port.
dhcp-snooping The Dhcp-snooping function permits err-disabling the port.
l2pt The L2pt function permits err-disabling the port.
link-flap The port flap function permits err-disabling the port.
loopback-detect The loopback detection function permits err-disabling the
port.
oam The oam function permits err-disabling the port.
port-security The port security permits err-disabling the port.
storm-control The storm control permits err-disabling the port

Default status: do not restore automatically.

z no errdisable detect cause


The command is used to cancel the err-disabled function of the module.

no errdisable detect cause { all| bpduguard| dai| dhcp-snooping| l2pt|


link-flap| loopback-detect| oam | port-security | storm-control}
Syntax Description
all All modules can err-disable the port.
bpduguard The bpduguard function does not permit err-disabling the
port.
dai The dai function does not permit err-disabling the port.
dhcp-snooping The Dhcp-snooping function does not permit err-disabling the
port.
l2pt The L2pt function does not permit err-disabling the port.
link-flap The port flap function does not permit err-disabling the port.
loopback-detect The loopback detection function does not permit err-disabling
the port.
oam The oam function does not permit err-disabling the port.
port-security The port security does not permit err-disabling the port.
storm-control The storm control does not permit err-disabling the port

Default status: do not restore automatically.

„ errdisable recovery interval

Maipu Confidential & Proprietary Information Page 16 of 25


Basic Configuration of Ports

Configure the recovery interval of the err-disabled port.

errdisable recovery interval timer-value


Syntax Description
timer-value Unit: seconds. It indicates the recovery interval after the
port is err-disabled.

Default status: 300s.

„ errdisable recovery cause


The command is used to configure the err-disabled modules that can be
recovered.

errdisable recovery cause{ all| bpduguard| dai| dhcp-snooping| eips-


udld | l2pt| link-flap| loopback-detect| oam | port-security | storm-control|
ulfd }
Syntax Description
all All err-disabled modules can be recovered.
bpduguard Allow recovery of err-disabled port through bpduguard.
ulfd Allow recovery of err-disabled port through ulfd.
dai Allow recovery of err-disabled port through dai.
dhcp-snooping Allow recovery of err-disabled port through dhcp-snooping.
l2pt Allow recovery of err-disabled port through l2pt.
oam Allow recovery of err-disabled port through oam.
storm-control Allow recovery of err-disabled port through storm-control.
eips-udld Allow recovery of err-disabled port through eips-udld.
link-flap Allow recovery of err-disabled port through flap.
loopback-detect Allow recovery of err-disabled port through loopback
detection.
port-security Allow recovery of err-disabled port through port security.

Default status: Not recovered.

„ Link-flap
When the times of the port becoming UP exceeds a certain times, it is
regarded that the link is unstable and the link flap event happens. The
command is used to modify the link flap parameter as desired.

errdisable flap-setting cause link-flap max-flap flap-value time time-value

The command for restoring the default value:

no errdisable flap-setting cause link-flap


Syntax Description

Maipu Confidential & Proprietary Information Page 17 of 25


Basic Configuration of Ports

flap-value The maximum times of the port becoming up within the


specified time
time-value Measure the times of the port becoming up

Default status: By default, if the port becomes up for five times within
10s, it is regarded that link-flap happens to the port.

„ no errdisable recovery cause


The command is used to configure the modules that can be recovered
when the port is not err-disabled.

no errdisable recovery cause{ all| bpduguard| dai| dhcp-snooping|


eips-udld | l2pt| link-flap| loopback-detect| oam | port-security | storm-
control| ulfd }
Syntax Description
all Not allow recovery of err-disabled port through any module.
bpduguard Not allow recovery of err-disabled port through bpduguard.
ulfd Not allow recovery of err-disabled port through ulfd.
dai Not allow recovery of err-disabled port through dai.
dhcp-snooping Not allow recovery of err-disabled port through dhcp-
snooping.
l2pt Not allow recovery of err-disabled port through l2pt.
oam Not allow recovery of err-disabled port through oam.
storm-control Not allow recovery of err-disabled port through storm-control.
eips-udld Not allow recovery of err-disabled port through eips-udld.
link-flap Not allow recovery of err-disabled port through port flap.
loopback-detect Not allow recovery of err-disabled port through loopback
detection.
port-security Not allow recovery of err-disabled port through port security.

Default status: Do not restore automatically.

„ port-type
This command is used to configure the UNI/NNI attribute of the port.
Cancel the UNI/NNI attribute, use the no format.

port-type {uni|nni}
Syntax Description
nni Configure the port as nni attribute
uni Configure the port as uni attribute

Maipu Confidential & Proprietary Information Page 18 of 25


Basic Configuration of Ports

Each physical port of a switch has UNI/NNI attribute. By default, all ports
are configured as NNI ports. You can also change the UNI/NNI attribute of
each port via configuration.

By default, UNI ports are shutdown, and cannot communicate with each
other. But communication can be performed normally between UNI ports
and NNI ports and also between NNI and NNI ports. You can also enable
some UNI ports to communicate with each other via configuration.

„ uni-isolate { community | isolated }


This command is used to configure whether UNI ports can communicate
with each other.

uni-isolate { community | isolated }


Syntax Description
community UNI ports can communicate with each other
isolated UNI ports cannot communicate with each other

Default status: Isolated.

„ test cable-diagnostics port [portlist]


This command is used to check the status and length of the cable
connected with the port. It is not applicable to the optical interface. This
command does not save scripts. The diagnosis at each port lasts about
one second. After the diagnosis is complete, use the show cable-
diagnostics [port portlist] command to check the results of the specified
port.

  test cable-diagnostics port [portlist]


Syntax Description
port [portlist] The list of the port specified to be diagnosed.

„ cable-diagnostics
The command is used to execute the auto check for the cable when the
port is shut down in the system, checking the status and length of the
cable connecting the port and sending the check result to the LOG server
in log, but it is not suitable for the fiber port.

„ no cable-diagnostics

Maipu Confidential & Proprietary Information Page 19 of 25


Basic Configuration of Ports

The command is used to realize the reverse operation of the above


command. When the port is shut down, do not execute the checking for
the cable. If the user wants to know the cable status, input the command.

„ clear cable-diagnostics [ port portlist]


Use the command to clear the diagnostic results of the specified ports. If
no port list is entered, all results will be cleared.

  clear cable-diagnostics [ port portlist]


Syntax Description
port portlist Specify the list of the ports whose diagnostic results will be
cleared. If no item is entered, it means clearing results of all
ports.

„ port-numbering mode { 0|1}


The command is used to configure the port number rule.

 no port-numbering mode: restore the default value

Syntax Description
0 The port number starts from 0.
1 The port number starts from 1.

Default status: start from 0.

Note

After modifying the port number rule, you need to save the configuration
and restart the device.

Monitoring & Maintaining


Monitoring Commands
In order to display basic information of a port (such as link status, rate,
duplex, and UNI type), users can switch to the privilege user mode and
run show port [portlist] [configuration].

Command Description
show { port [portlist] | Display basic information of a port/aggregation group
link-aggregation The displayed information includes description information,
[aggr_id] } link status, rate, duplex, and UNI type.
show port [portlist] To monitor the statistics information of the port
statistics

Maipu Confidential & Proprietary Information Page 20 of 25


Basic Configuration of Ports

show storm-control To monitor the storm control of the port


[portlist] The displayed information includes the enabling status of
unknown unicast packets, unknown multicast packets, and
broadcast packets
show errdisable Configure the errdisable recovery.
show port [port_num]
Display the status of the port err-disabled by other modules.
status err-disabled
show running-config
{ port [portlist] |
Display the configuration of the port or aggregation group.
link-aggregation
[aggr_id]}
show protocol-state
Display the spanning tree status of the port in the VLAN,
port [port_num] vlan
including settings of all modules
[vlan_id]
show port-type {uni|nni} Monitor the UNI/NNI attribute of the port
[portlist] The displayed information includes the UNI/NNI attribute of
the port and whether the ports are isolated
show cable-diagnostics
Display the results of cable diagnosis.
[ port portlist]
show optical {all {detail
| _CR_}
Display the optical module information, including the
| port [portlist] {detail |
information of all optical modules and the information of the
_CR_}
optical module on one port or interface.
| interface [interfacename]
{detail | _CR_}}

Monitoring Command Instance


1. Display the basic information of the port

switch # show port 0/7


Displayed Result Description and Analysis

Description : China The description information is


China.
Status : Enabled The port is enabled.

Link : Up The link status is UP. *Note

Set Speed : Auto The management rate is auto


mode.
Act Speed : 1000 The actual rate is 1000M.

Set Duplex : Full The management duplex is full


duplex mode.
Act Duplex : Full The actual duplex mode is full-
duplex mode.
Set Flow Control : Off The management flow control
is disabled.
Act Flow Control : Off The actual flow control status is
disabled.
Mdix : Normal The network cable type is
common network cable.

Maipu Confidential & Proprietary Information Page 21 of 25


Basic Configuration of Ports

Mtu : 1824 MTU is 1824 bytes.

Port mode : LAN The port is working in the LAN


mode.
Port ability : 10M HD,10M FD,100M HD,100M The capability supported in the
FD,1000M FD port

Link Delay :0 The report delay of the link


status is 0.
Storm Control : Unicast Disabled Do not enable unicast storm
control.
Storm Control : Broadcast Disabled Do not enable broadcast storm
control.
Storm Control : Multicast Disabled Do not enable multicast storm
control.
Port Type : Nni The port type is NNI.

Pvid :1 The default VLAN of port is 1.

Port config medium is :copper The media type configured in


the port
Port actual medium is :copper The current media type of the
port
Note

When the port is err-disabled owing to check of certain errors, the status
is Enable, and the Link is Down (Err-disabled). For the err-disabled cause,
you can run the show port x/x status err-disabled.

switch#show port 0/0/1 status err-disabled


port status reason
port 0/1 err-disabled bpduguard

It indicates that port 0/0/1 is err-disabled owing to the bpduguard error.

switch # show link-aggregation 1


Displayed Message Description and Analysis

Description : China The description is China.

Status : Enabled The port is enabled.

Link : Up The link is Up.

Act Speed : 2000 The actual speed is 2000M *


Note
Act Duplex : Full Actual mode is Full duplex

Port Type : Nni The port type is NNI

Pvid : 400
The default VLAN of the port is

400
Note

Maipu Confidential & Proprietary Information Page 22 of 25


Basic Configuration of Ports

The speed of the aggregation port is the sum of all member port speeds.

2. Display port statistics

switch # show port 0/0/7 statistics


Displayed Result Description and Analysis

RxOctets : 18636483 The number of received


packet bytes
RxUcastPkts : 26525 The number of received
unicast packets
RxMulticastPkts : 37480 The number of received
multicast packets
RxBroadcastPkts : 197146 The number of received
broadcast packets
TxOctets : 1388342 The number of sent packet
bytes
TxUcastPkts : 13686 The number of sent unicast
packets
TxMulticastPkts :0 The number of sent
multicast packets
TxBroadcastPkts : 4601 The number of sent
broadcast packets
TotalOctets : 20024825 The total number of sent and
received packet bytes

TotalPkts : 279438 The total number of received


and sent packets
TotalUcastPkts : 40211 The total number of received
and sent unicast packets
TotalBroadcastPkts : 201747 The total number of received
and sent broadcast packets
TotalMulticastPkts : 37480 The total number of received
and sent multicast packets
TotalCRCErrors :0 The number of CRC errors

TotalSymbolErrors :0 The total number of symbol


errors
TotalAlignmentErrors : 0 The total number of non-
integral bytes and CRC
errors
TotalUndersizePkts : 0 The total number of the
packets with small bytes (no
more than 64 bytes)
TotalOversizePkts :0 The total number of the
packets with oversize bytes
(more than 1518 bytes)
TotalFragments :0 The total number of the
received packets with a
length of less than 64 bytes
and FCS check error or
sequence error
TotalJabbers :0 The total number of the
received packets with a
length of more than 1518
bytes and FCS check error or
sequence error
TotalCollisions :0 The total number of collisions

Maipu Confidential & Proprietary Information Page 23 of 25


Basic Configuration of Ports

TotalPkts64Octets : 234780 The total number of the


packets with 64 bytes
TotalPkts65to127Octets : 38003 The total number of the
packets with 65-127 bytes
TotalPkts128to255Octets : 5928 The total number of the
packets with 128-255 bytes
TotalPkts256to511Octets : 729 The total number of the
packets with 256-511 bytes
TotalPkts512to1023Octets : 0 The total number of the
packets with 512-1023 bytes
TotalPkts1024to1518Octets: 0 The total number of the
packets with 1024-1518 bytes

3. Display the errdisable configuration.

Show the configuration of errdisable recovery. The results are as follows:

switch#show errdisable recovery


Error disable auto recovery config

interval:30 seconds
ErrDisable Reason Timer Status
--------------- ------------
bpduguard Disabled
ulfd Disabled
dai Disabled
dhcp-snooping Disabled
l2pt Disabled
oam Disabled
storm-control Enabled
eips-udld Disabled
link-flap Enabled
port-security Enabled
loopback-detect Disabled

Analysis:

First, implement the recovery interval of err-disabled port, The unit is


seconds.

Then, enable/disable recovery for modules supporting err-disable. If the


recovery is enabled or disabled, correspondingly, Enabled or Disabled is
displayed.

4. Display the optical module information

switch#show optical all detail

port 4/0 optical information

Maipu Confidential & Proprietary Information Page 24 of 25


Basic Configuration of Ports

% Optical module off line


May be taken a little long time,Please confirm to get next?(Yes/No)y
port 4/1 optical information
Device Name : SFP
Connector Name : LC
Vendor OUI : 00-00-00
Vendor Name : EOPTOLINK INC
Part Number : EOLS-1312-20D
Revision Number : A0
Serial Number : S97H600005
Production Date : 09/07/17(y/m/d)
Laser WaveLength : 1310(nm)
Vendor Specific :
000000000000000000000000000000000000000000000000000000000000000
0
Monitor Parameters :
T - ThresHold, S - Status
Type Value Alarm-High(T/S) Alarm-Low(T/S)
Warning-High(T/S) Warning-Low(T/S)
----------------------------------------------------------------------------------
-------------------------
Temperature(C) 44.000000 80.000000(N) -
118.000000(N) 75.000000(N) -123.000000(N)
Voltage(V) 3.202000 3.600000(N) 2.900000(N)
3.500000(N) 3.000000(N)
Tx Bias(mA) 0.024000 50.000000(N) 2.000000(N)
40.000000(N) 3.000000(N)
Rx Power(dBm) -Inf -1.000154(N) -27.958799(Y)
-1.999706(N) -26.989700(Y)
Tx Power(dBm) -5.099010 -1.000154(N) -11.999706(N)
-2.999889(N) -10.000000(N)

Result analysis:

When displaying the information of multiple optical modules, the system


prompts whether to continue every time finishing displaying one optical
module, because it takes a long time to get the optical module information
and only one optical module can be displayed for one time. Moreover,
some optical module does not support the AD data and Monitor
Parameters shows no data.

Maipu Confidential & Proprietary Information Page 25 of 25

Das könnte Ihnen auch gefallen