You are on page 1of 100

2010

All Rights Reserved






PINE-16M
Configuration Guide











Copyrights

This manual and the information contained herein is proprietary information and is intended for the exclusive use of MRO-TEK customers. The
information in this manual should not be copied, distributed, shared or reproduced in any manner without the express written permission of
MRO-TEK. Information contained in this document is subject to change. In the event of a change, this document will be revised.
Restrictions
The software described in this document is the property of MRO-TEK. It is furnished under a license agreement and may be used and/or disclosed
only in accordance with the terms of the agreement. Software and documentation are copyright materials. Making unauthorized copies is prohibited by
law. No part of the software or documentation 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, without prior written permission of MRO-TEK.
Accuracy
While reasonable efforts have been made to assure the accuracy of this document, MRO-TEK assumes no liability resulting from any inaccuracies or
omissions in this document, or from the use of the information obtained herein. MRO-TEK reserves the right to make changes to any products
described herein to improve reliability, function, or design, and reserves the right to revise this document and to make changes from time to time in
content hereof with no obligation to notify any person of revisions or changes. MRO-TEK does not assume any liability arising out of the application
or use of any product or circuit described herein; neither does it convey license under its patent rights of others.
Trademarks
MRO-TEK and the MRO-TEK logo are registered trademarks of MRO-TEK Limited.
All other brands and corporate names are trademarks of their respective owners.







MRO-TEK LTD.
Bellary Road, Hebbal,
Bangalore - 560 024, INDIA
Ph: +91 80 2333 2951
Fax: +91 80 2333 3415
Email: mrotek@vsnl.com



Table
of
Contents






i

Contents
Configuration Guide: PINE-16M

Preface..2
Version................................................................................................................................................................... 2
About This Manual................................................................................................................................................. 2
Relevant manuals .................................................................................................................................................. 2
Organization .......................................................................................................................................................... 2
Chapter 1 Overview ....................................................................................................................................... 1-1
Features ..................................................................................................................................................................... 1-2
Chapter 2 Using Command Lines ................................................................................................................ 2-1
Command Line........................................................................................................................................................... 2-2
Command line mode........................................................................................................................................... 2-2
Getting help ........................................................................................................................................................ 2-3
Properties of editing............................................................................................................................................ 2-4
Chapter 3 System Command........................................................................................................................ 3-1
System Command Configuration................................................................................................................................ 3-2
Basic system commands and configurations...................................................................................................... 3-2
The management of configuration file and startup file........................................................................................ 3-2
User management .............................................................................................................................................. 3-2
Chapter 4 Configuration at Central Site ...................................................................................................... 4-1
The configuration of central site E1 interface of PINE-16M........................................................................................ 4-2
Configure the master/slave mode of the clock of E1 interface............................................................................ 4-2
Enable or disable the CRC check of the E1 interface......................................................................................... 4-2
Configure loop back of remote E1 interface........................................................................................................ 4-3
Configure the loop back of the E1 interface........................................................................................................ 4-3
Enable or disable the BER tester of the E1 interface.......................................................................................... 4-4
Configuring the interconnection mode of the E1 interface .................................................................................. 4-4
Set up the sub rate of the E1 interface................................................................................................................ 4-5
Monitoring and Maintenance of E1 Interface.............................................................................................................. 4-6
Configuring inverse multiplexing channel ................................................................................................................... 4-7
Configure the inverse multiplexing channel ........................................................................................................ 4-7
Configuring the automatic error shutdown function............................................................................................. 4-8
Monitoring and maintaining Virtual Channel............................................................................................................. 4-10
Contents


ii



Configuration of the Ethernet interface of PINE-16M................................................................................................4-11
Enabling the Ethernet ports...............................................................................................................................4-11
4.5.2 Shut down the ports .................................................................................................................................4-11
4.5.2 Set up auto-negotiation............................................................................................................................4-12
4.5.4 Set up rate and duplex mode for the interface.........................................................................................4-12
4.5.5 Flow control function................................................................................................................................4-13
4.5.6 Clear the counter......................................................................................................................................4-13
4.5.7 Configure auto-MDI..................................................................................................................................4-14
4.5.8 Configuring ALS function of optical interface ...........................................................................................4-14
4.6 Monitoring and Maintenance of Eth Interface.....................................................................................................4-15
4.7 Configuration of Central Site SFP interface of PINE-16M..................................................................................4-17
4.7.1 Enabling and disabling transmission from the laser.................................................................................4-17
4.8 Monitoring and Maintenance of the SFP Interface..............................................................................................4-18
4.9 Configuration of Central Site Switching of PINE-16M.........................................................................................4-19
4.9.1 VLAN configuration..................................................................................................................................4-19
4.9.2 Management of MAC Address Table.......................................................................................................4-23
4.9.3 Configuration of mirror function................................................................................................................4-27
4.9.4 Storm control............................................................................................................................................4-29
4.9.5 Configuring Rate Limit function................................................................................................................4-32
4.9.6 Configuring QoS ......................................................................................................................................4-33
4.9.7 Trunk........................................................................................................................................................4-37
4.9.8 Loop detection .........................................................................................................................................4-39
4.10 Monitoring and maintaining PINE-16M.............................................................................................................4-43
4.10.1 Monitoring and maintaining VLANs........................................................................................................4-43
4.10.2 Monitoring and maintening MAC address ..............................................................................................4-44
4.10.3 Monitoring and maintening global configuration of switching function....................................................4-44
4.10.4 Monitoring and maintening Mirror function.............................................................................................4-45
4.10.5 Monitoring and maintening Storm control function.................................................................................4-45
4.10.6 Monitoring and maintening Rate limiting................................................................................................4-45
4.10.7 Monitoring and maintaining QoS............................................................................................................4-46
4.10.8 Monitoring and maintaining Trunk function............................................................................................4-47
4.10.9 Monitoring and maintening Loop detection function...............................................................................4-47
4.11 Central site VCC configuration list of PINE-16M...............................................................................................4-49
4.11.1 Enabling the VCC channel .....................................................................................................................4-49
4.11.2 Disable VCC channel.............................................................................................................................4-49
4.11.3 Configuring the channel corresponding to the VCC channel..................................................................4-50
4.11.4 Changing IP address and subnet mask.................................................................................................4-50
4.11.5 Changing the title of the VCC.................................................................................................................4-51
4.12 Monitoring and maintening the central site VCC of PINE-16M.........................................................................4-52
Chapter 5 Configuration of remote inverse multiplexer device................................................................ 5-1
5.1 Basic configuration of remote inverse multiplexer device.....................................................................................5-2
Contents




iii

5.1.1 Configuring fault pass-through function..................................................................................................... 5-2
5.1.2 Reset remote device.................................................................................................................................. 5-2
5.1.3 Configuring error auto-shutdown function.................................................................................................. 5-3
5.2 Device status and configuration ........................................................................................................................... 5-4
5.3 Configuration of E1 interface on remote inverse multiplexer device..................................................................... 5-5
5.3.1 Configuring clock mode of E1 interface ..................................................................................................... 5-5
5.3.2 Configuring CRC options of E1 interface................................................................................................... 5-5
5.4 Viewing the status of E1 interface........................................................................................................................ 5-6
5.5 Configuring the Ethernet interface on remote inverse multiplexer device............................................................. 5-7
5.1.1 Configuring auto-negotiation function........................................................................................................ 5-7
5.5.2 Shutting down and Enabling the Ethernet interface................................................................................... 5-7
5.5.3 Setting Rate and duplex mode for the interface......................................................................................... 5-8
5.5.4 Setting flow control function....................................................................................................................... 5-8
5.6 Ethernet interface status....................................................................................................................................... 5-9
Chapter 6 Network Protocol Configuration................................................................................................. 6-1
6.1 Configuring ARP......................................................................................................................................... 6-2
6.1.1 Adding ARP ............................................................................................................................................... 6-2
6.1.2 Deleting ARP ............................................................................................................................................. 6-2
6.2 Configuring route.................................................................................................................................................. 6-4
6.2.1 Adding a route............................................................................................................................................ 6-4
6.2.2 Deleting a route.......................................................................................................................................... 6-5
6.3 Configuring SNMP................................................................................................................................................ 6-6
6.3.1 Configuring the name of community.......................................................................................................... 6-6
6.3.2 Configuring a host for SNMP trap reception .............................................................................................. 6-6
6.3.3 Deleting a trap receiving host..................................................................................................................... 6-7
6.3.4 Starting SNMP task.................................................................................................................................... 6-7
6.3.5 Stopping SNMP task.................................................................................................................................. 6-7
6.3.6 IP address configuration............................................................................................................................ 6-8
6.4 Device status and configuration information......................................................................................................... 6-9
Chapter 7 Example of the Configuring PINE-16M...................................................................................... 7-1
7.1 Example ............................................................................................................................................................... 7-2

About
This
Manual






1

Issue status of this manual
The following shows the issue status of this manual since it was first released.
Version information
The following lists the versions of this manual in order of manual issue:

Manual
issue
Date of issue Remarks
1-0 July 2010 Original issue1-0

Text conventions
In the manual, new and amended features are tagged to help users to assess the impact. The tags include
index references which are listed in the manual Index.
Table 1: Text convention
ICON Notice Type Alerts


NOTE

Important feature or instruction.


Caution

Risk of personal injury, system damage, or loss of data


Warning

Risk of severe personal injury

The tags are positioned in text as follows:
Cross references
Throughout this manual, references are made to external publications, chapter numbers and section names.
The references to external publications are shown in italics, chapter and section name cross references are
emphasized in bold.
Preface


2



Preface
Version
Software version: 1.0.0
About This Manual
This document is for technicians who have the professional knowledge of configuring PINE-16M series
device. It introduces the principle and features of the function modules of PINE-16M device and gives the
configuration guides of these modules.
Relevant manuals
PINE-16M User Manual
PINE-16M Commands Notebook
PINE-16M Configuration Guide
Organization
The manual is composed of the following 7 chapters:
Chapter 1 Overview This chapter briefly summarizes the function
features of the PINE-16M device.
Chapter 2 How to Use the Command Lines This chapter introduces the method of configuring
PINE-16M The command lines.
Chapter 3 System Command Configuration This chapter introduces the function and
configuration method of PINE-16Ms system
commands.
Chapter 4 Basic Configuration of the Central Site
PINE-16M
This chapter focuses on the basic configuration
commands and the corresponding configuration
method of the central site Mro-tek.
Chapter 5 The Configuration of Remote Inverse
Multiplexer Device
The chapter describes how to configure remote
inverse multiplexer device on Mro-tek.
Chapter 6 Network Protocol Configuration This chapter introduces the function and
configuration method of network protocol for
PINE-16M device.
Chapter 7 Example An Example of the Configuration of PINE-16M.





1-1

Chapter 1
Overview
Features


1-2



Features
PINE-16M is an access device for Ethernet and E1 services. The configuration and management of PINE-
16M device can be realized by logging on the device throught the RS232 serial interface or the network
management interface of the device.
PINE-16M provides standard SNMP interface and supports online upgrade.
PINE-16M possesses the following features:
The protocol conversion from Etherent to E1
16 inverse multiplexing channels
Supports 802.1Q and double tagging
Supports MAC address table management (capacity: 8K)
Port Mirroring Support
Storm control support: provides control over broadcast, multicase and DLF frames
Rate limiting at Port level
QoS based on CoS values
E1 port Loop detection support
Trunking support
For the convenience of configuration, all switching ports on PINE-16M are numbered. The 16 switching
ports that are corresponding to the 16 E1 channels are numbered as 1~16. The switching ports
corresponding to the Ethernet ports on the front panel are numbered as 17, 18 and 19.







2-1

Chapter 2
Using Command Lines
Command Line


2-2



Command Line
Command line mode
User EXEC mode Global mode
Privileged EXEC mode The command enable under the user EXEC mode is used to enter
the privileged EXEC mode.
The command disable under the privileged EXEC mode is used
to return to the user EXEC mode.
config mode The command config under the privileged EXEC mode is used
to enter the config mode.
The command exit under the config mode is used to return to the
privileged EXEC mode.
snmp mode The command interface snmp under the config mode is used to
enter the snmp mode.
The command exit under the snmp mode is used to return to the
config mode.
Interface e1 mode The command interface e1 under the config mode is used to
enter the interface e1 mode.
The command exit under the interface e1 is used mode to return
to the config mode.
Interface eth mode The command interface eth under the config mode is used to
enter the interface eth mode.
The command exit under the interface eth mode is used to return
to the config mode.
Interface fx-eth mode The command interface fx-eth under the config mode is used to
enter the interface fx-eth mode.
The command exit under the interface fx-eth mode is used to
return to the config mode.
Interface sft mode The command interface sfp fx-eth under the config mode is used
to enter the interface sft mode.
The command exit under the interface sfp mode is used to return
to the config mode.
Interface switchport mode The command interface switchport under the config mode is
used to enter the interface switchport mode.
The command exit under the interface swithport mode is used to
return to the config mode.
Interface vlan mode The command interface vlan under the config mode is used to
enter the interface vlan mode.
The command exit under the interface vlan mode is used to
return to the config mode.
Interface vcc mode The command interface vcc under the config mode is used to
Command Line




2-3

enter the interface vcc mode.
The command exit under the interface vcc mode is used to return
to the config mode.
remote mode The command remote 0 <1-16> under the config mode is used to
enter the remote mode.
The command exit under the remote mode is used to return to the
config mode.
interface eth mode under remote
mode
The command interface eth under the remote mode is used to
enter the interface eth mode under remote mode.
The command exit is used to return to the remote mode.
interface fx-eth mode under
remote mode
The command interface fx-eth under the remote mode is used to
enter the interface fx-eth mode under remote mode.
The command exit is used to return to the remote mode.
interface e1 mode under remote
mode
The command interface e1 under the remote mode is used to
enter the interface e1 mode under remote mode.
The command exit is used to return to the remote mode.

Getting help
Command Function Description
help To obtain a brief description from the help system.
abbreviated-command-entry ? To obtain a list of commands that begin with a specified string
(abbreviated-command-entry):
Example:
Mro-tek>en ?
Enable
abbreviated-command-entry<Tab> To complete an unfinished command line.
Example:
Mro-tek#show ver<TAB>
Mro-tek#show version
? To list all commands of the current mode.
Example:
Mro-tek#?
command ? To list all keywords and optional items for a specified
command line and gives brief help information of the
command line.
Example:
Mro-tek#show ?

Command Line


2-4



Properties of editing
<up arrow>: the command last entered
<down arrow>: the command entered next
<left arrow>: move left by a character
<right arrow>: move right by a character
<Backspace>: delete the character before the cursor
<CTRL+d>:delete the character after the cursor
<CTRL+a>: move the cursor to the head of the row
<CTRL+e>: move the cursor to the tail of the row
<CTRL+k>: delete all the characters after the cursor
<CTRL+x>: delete all the characters left to the cursor
<CTRL+z>: quit the current unprivileged user mode and enter Privileged EXEC mode.






3-1

Chapter 3
System Command
System Command Configuration


3-2



System Command Configuration
Basic system commands and configurations
Clear: Clears the information on the screen.
List: Lists all commands of the current mode.
The management of configuration file and startup file
Configuration file
Default configuration file of the current system is: startup_config.conf
The configuration file can be written into the flash file system using the command write.
During the reboot, the configuration information written in the start-up file will be configured
automatically.
User can use the command erase to delete the configuration file.
Program file
The core file of the current system is: pine-16m.z;
Program file can be downloaded to the system via FTP/TFTP protocols using the command
download.
The version information of the current firmware will be shown using the command show
version.
User management
The default user name of the system is: root
The default password of the system is: root
To add a new user, please follow the steps in the table below:
Command Description
user USERNAME password PASSWORD USERNAME: The user name
PASSWORD: The user password
user USERNAME privilege <1-15> USERNAME: The user name
<1-15>: the level of user privilege
write To save the configuration information
show user To lists the available user profile information






4-1

Chapter 4
Configuration at Central Site
The configuration of central site E1 interface of PINE-16M


4-2



The configuration of central site E1 interface of
PINE-16M
Configure the master/slave mode of the clock of E1 interface
Command Description
config Enter the global configuration mode
interface e1 <1-16> To Select a specific E1 interface at central site PINE-16M
clock-mode (master|slave) To configure the clock mode of a selected E1 interface
show interface Shows the configuration information of the selected E1
interface

Example:
Mro-tek# config
Mro-tek(config)# interface e1 1
Mro-tek(config-e1/0/1)# clock-mode master
Set Successfully.
Mro-tek(config-e1/0/1)#
Enable or disable the CRC check of the E1 interface
Command Description
config Enter the global configuration mode
interface e1 <1-16> To select a specific E1 interface at central site PINE-16M
crc-auto (enable|disable) To enable or disable the CRC check of the selected E1 interface
show interface Shows the configuration information of the selected E1
interface.

If the frame mode of E1 interface is unframed, the enabling of the CRC check will be ineffective.
Example:
Mro-tek# config
Mro-tek(config)# interface e1 1
Mro-tek(config-e1/0/1)# crc-auto enable
NOTE: this config should be invalid if e1 frame-mode is unframed!
Set Successfully.
Mro-tek(config-e1/0/1)#
The configuration of central site E1 interface of PINE-16M




4-3

Configure loop back of remote E1 interface
Command Description
config Enter the global configuration mode.
interface e1 <1-16> To select a specific E1 interface at central site PINE-16M.
[no] remote-e1-loopback To Enable remote E1 loopback for the selected E1 interface
show interface Shows the configuration information of the interface.

Example:
Mro-tek# config
Mro-tek(config)# interface e1 1
Mro-tek(config-e1/0/1)# remote-e1-loopback
Set Successfully.
Mro-tek(config-e1/0/1)#
Configure the loop back of the E1 interface
Command Description
config Enter the global configuration mode
interface e1 <1-16> To select a specific E1 interface at central site PINE-16M
[no] local-e1-loopback To Enable Local E1 loop back for the selected E1 interface.
show interface Shows the configuration information of the interface.

Please ensure to disconnect the E1 cables at the remote location before initiating the
loopbacks as it may lead to device abnormity..
Example:
Mro-tek# config
Mro-tek(config)# interface e1 1
Mro-tek(config-e1/0/1)# local-e1-loopback
Set Successfully.
Mro-tek(config-e1/0/1)#
The configuration of central site E1 interface of PINE-16M


4-4



Enable or disable the BER tester of the E1 interface
Command Description
config Enter the global configuration mode
interface e1 <1-16> To select a specific E1 interface at central site PINE-16M
bert (enable|disable) To enable or disable the BER test for the selected E1
interface.
show interface Shows the configuration information of the intrface.

Example:
Mro-tek# config
Mro-tek(config)# interface e1 1
Mro-tek(config-e1/0/1)# bert enable
Set Successfully.
Mro-tek(config-e1/0/1)#
Configuring the interconnection mode of the E1 interface
Command Description
config Enter the global configuration mode
interface e1 <1-16> To select a specific E1 interface at central site PINE-
16M
inter-connection (enable|disable) To Enable / Disable the interconnection mode.
show interface Shows the configuration information of the interface.

Example:
Mro-tek# config
Mro-tek(config)# interface e1 1
Mro-tek(config-e1/0/1)# inter-connection enable
Set Successfully
Mro-tek(config-e1/0/1)#
The configuration of central site E1 interface of PINE-16M




4-5

Set up the sub rate of the E1 interface
Command Description
config Enter the global configuration mode
interface e1 <1-16> To select a specific E1 interface at central site PINE-
16M
timeslot
TIMESLOTLIST
To list of times for E1 Framed mode of operation
show interface Shows the configuration information of the interface.

If the frame mode of the E1 interface is unframed, the setup of the sub rate of E1 interface will not be
effective.
Example:
Mro-tek# config
Mro-tek(config)# interface e1 1
Mro-tek(config-e1/0/1)# timeslot 1-15
NOTE: this config should be invalid if e1 frame-mode is unframe !
Set Successfully.
Mro-tek(config-e1/0/1)#

Monitoring and Maintenance of E1 Interface


4-6



Monitoring and Maintenance of E1 Interface
The current status and configuration of the E1 interface can be viewed by using the command show
interface under the interface e1 mode.
Example
Mro-tek(config)# interface e1 1
Mro-tek(config-e1/0/1)# show interface
e1 interface infomation :
slot = 0, portid = 1
ClockMode = master
FrameMode = framed
Timeslot =1-15
CrcStatus = disable
LocalLoop = loopback
RemoteLoop = normal
CrcAutoNego = enable
Bert = disable
Inter-connection = enable
AlarmStatus = LOS
ErrorSecond = 15
SeriousErrorSecond = 15
BitErrorRate = E-3
EthSendPacketNum = 0
EthReceivePacketNum = 0
EthReceiveErrorPacketNum = 0
RemoteDevId = na
RemoteE1 = na
LinkStatus = e1los
Mro-tek(config-e1/0/1)#

Configuring inverse multiplexing channel




4-7

Configuring inverse multiplexing channel
Configure the inverse multiplexing channel
PINE-16M provides 16 Virtual channels. Channel 1 corresponds to switch port1; channel 2 corresponds to
switch port2 .etc and channel 16 corresponds to switch port16. By default, no virtual channel is
configured.
Users can create Virtual channels using the following commands
Command Description
config Enter the global configuration mode
virtual-channel <1-16> e1
E1PORTLIST
To Configure E1 ports for the specified VCC channel
show virtual-channel Shows the information of virtual channels

Users can delete all E1 ports in a channel or other specified E1 ports using the command no virtual-
channel <1-16> [e1 E1PORTLIST].
Example: Configure E1 port 2, 3, 4, 5 for inverse multiplexing channel 1.
Mro-tek# config terminal
Configuration mode, one command input per time. End with CTRL-Z.
Mro-tek(config)# virtual-channel 1 e1 2-5
Set Successfully.
Mro-tek(config)# show virtual-channel
virtual-channel infomation for slot 0:
virtual-channel 1 = 2-5
virtual-channel 1 error shutdown enable
virtual-channel 6 = 6
virtual-channel 6 error shutdown disable
virtual-channel 7 = 7
virtual-channel 7 error shutdown disable
virtual-channel 8 = 8
virtual-channel 8 error shutdown disable
virtual-channel 9 = 9
virtual-channel 9 error shutdown disable
virtual-channel 10 = 10
virtual-channel 10 error shutdown disable
virtual-channel 11 = 11
virtual-channel 11 error shutdown disable
Configuring inverse multiplexing channel


4-8



virtual-channel 12 = 12
virtual-channel 12 error shutdown disable
virtual-channel 13 = 13
virtual-channel 13 error shutdown disable
virtual-channel 14 = 14
virtual-channel 14 error shutdown disable
virtual-channel 15 = 15
virtual-channel 15 error shutdown disable
virtual-channel 16 = 16
virtual-channel 16 error shutdown disable
Mro-tek(config)#
Configuring the automatic error shutdown function
Users can Enable or disable the automatic error shutdown function of the specified channel using the
below given commands. Automatic Error shutdown function will disable the virtual channel when error
bits detected on the respective attached E1 links.

Command Description
config Enter the global configuration mode
virtual-channel <1-16> error-
shutdown {enable|disable}
To enable/disable automatic error shutdown function for
the selected virtual channel.
show virtual-channel Shows the information of a selected Virtual channel

Example: disable the automatic error shutdown function of inverse multiplexing channel 1.
Mro-tek# config terminal
Configuration mode, one conmmand input per time. End with CTRL-Z.
Mro-tek(config)# virtual-channel 1 error-shutdown enable
Set Successfully.
Mro-tek(config)# show virtual-channel
virtual-channel infomation for slot 0:
virtual-channel 1 = 1
virtual-channel 1 error shutdown enable
virtual-channel 2 = 2
virtual-channel 2 error shutdown disable
virtual-channel 3 = 3
virtual-channel 3 error shutdown disable
virtual-channel 4 = 4
virtual-channel 4 error shutdown disable
Configuring inverse multiplexing channel




4-9

virtual-channel 5 = 5
virtual-channel 5 error shutdown disable
virtual-channel 6 = 6
virtual-channel 6 error shutdown disable
virtual-channel 7 = 7
virtual-channel 7 error shutdown disable
virtual-channel 8 = 8
virtual-channel 8 error shutdown disable
virtual-channel 9 = 9
virtual-channel 9 error shutdown disable
virtual-channel 10 = 10
virtual-channel 10 error shutdown disable
virtual-channel 11 = 11
virtual-channel 11 error shutdown disable
virtual-channel 12 = 12
virtual-channel 12 error shutdown disable
virtual-channel 13 = 13
virtual-channel 13 error shutdown disable
virtual-channel 14 = 14
virtual-channel 14 error shutdown disable
virtual-channel 15 = 15
virtual-channel 15 error shutdown disable
virtual-channel 16 = 16
virtual-channel 16 error shutdown disable
Mro-tek(config)#

Monitoring and maintaining Virtual Channel


4-10



Monitoring and maintaining Virtual Channel
Users can check the current status and configuration of the E1 interface by using the command show
virtual-channel under the global configuration mode.
Mro-tek(config)# show virtual-channel
virtual-channel infomation for slot 0:
virtual-channel 1 = 1
virtual-channel 1 error shutdown disable
virtual-channel 2 = 2
virtual-channel 2 error shutdown disable
virtual-channel 3 = 3
virtual-channel 3 error shutdown disable
virtual-channel 4 = 4
virtual-channel 4 error shutdown disable
virtual-channel 5 = 5
virtual-channel 5 error shutdown disable
virtual-channel 6 = 6
virtual-channel 6 error shutdown disable
virtual-channel 7 = 7
virtual-channel 7 error shutdown disable
virtual-channel 8 = 8
virtual-channel 8 error shutdown disable
virtual-channel 9 = 9
virtual-channel 9 error shutdown disable
virtual-channel 10 = 10
virtual-channel 10 error shutdown disable
virtual-channel 11 = 11
virtual-channel 11 error shutdown disable
virtual-channel 12 = 12
virtual-channel 12 error shutdown disable
virtual-channel 13 = 13
virtual-channel 13 error shutdown disable
virtual-channel 14 = 14
virtual-channel 14 error shutdown disable
virtual-channel 15 = 15
virtual-channel 15 error shutdown disable
virtual-channel 16 = 16
virtual-channel 16 error shutdown disable
Configuration of the Ethernet interface of PINE-16M




4-11

Configuration of the Ethernet interface of PINE-
16M
Enabling the Ethernet ports
Under some circumstances, the Ethernet ports have to be shut down for testing. Using the commands
shutdown and no shutdown user can enable / disable the selected Ethernet port.
By default, all ports are enabled.
Command Description
config Enter the global configuration mode.
interface eth <1-2> To Select a specific Ethernet interface of PINE-16M.
no shutdown To Enable the selected Ethernet port.
show interface Shows the configuration information of the Ethernet
interface.

Example:
Mro-tek# config
Mro-tek(config)# interface eth 1
Mro-tek(config-eth/0/1)# no shutdown
setup successfully!
Mro-tek(config-eth/0/1)#
4.5.2 Shut down the ports
Command Description
config Enter the global configuration mode.
interface eth <1-2> To Select a specific Ethernet interface of PINE-16M.
shutdown To disable the selected Ethernet ports
show interface Shows the configuration information of the interface.

Example:
Mro-tek# config
Mro-tek(config)# interface eth 1
Mro-tek(config-eth/0/1)# shutdown
Setup successfully!
Mro-tek(config-eth/0/1)#
Configuration of the Ethernet interface of PINE-16M


4-12



4.5.2 Set up auto-negotiation
When the auto-negotiation function is enabled, duplex mode and the data rate cannot be configured
manually.
By default auto-negotiation function is enabled for all the Ethernet ports.

Command Description
config Enter the global configuration mode.
interface eth <1-2> To Select a specific Ethernet interface of PINE-16M.
autonegotiate To enable auto-negotiation function for the selected Ethernet
interface.
show interface Shows the configuration information of the interface

Using the command no autonegotiate user can disable the auto-negotiation function.
Example: enable the auto-negotiation function.
Mro-tek# config
Mro-tek(config)# interface eth 1
Mro-tek(config-eth/0/1)# autonegotiate
setup successfully!
Mro-tek(config-eth/0/1)#
4.5.4 Set up rate and duplex mode for the interface
Command Description
config Enter the global configuration mode
interface eth <1-2> To Select a specific Ethernet interface of PINE-16M.
speed (10|100) duplex
(full-duplex|half-duplex)
To Select the rate and duplex mode of selected Ethernet interface.
show interface Shows the configuration information of the interface.

The Rate and Duplex mode can be defined only when the auto-negotiation function is
disabled.
Example:
Mro-tek# config
Mro-tek(config)# interface eth 1
Mro-tek(config-eth/0/1)# speed 100 duplex full-duplex
setup successfully!
Mro-tek(config-eth/0/1)#
Configuration of the Ethernet interface of PINE-16M




4-13

4.5.5 Flow control function
Flow control on the direction of transmitting and receiving of the port are configured at the same time, that
is, they can only be opened or closed simultaneously.
By default, the flow control function is enabled.
Command Description
config Enter the global configuration mode.
interface eth <1-2> To Select a specific Ethernet interface of PINE-16M.
flow-control (on|off) To Enable/Disable the flow control function.
show interface Shows configuration information of the interface.

Example:
Mro-tek# config
Mro-tek(config)# interface eth 1
Mro-tek(config-eth/0/1)# flow-control on
setup successfully!
Mro-tek(config-eth/0/1)#
4.5.6 Clear the counter
The Counters of Ethernet port counters like input/output broadcast/multicast packets count, discarded
packets and other counters.

Command Description
config Enter the global configuration mode
interface eth <1-2> Enter the central site Eth configuration mode of PINE-16M.
clear statistic Clear the statistic counter
show interface Show the configuration information of the interface.
Example:
Mro-tek# config
Mro-tek(config)# interface eth 1
Mro-tek(config-eth/0/1)# clear statistic
setup successfully!
Mro-tek(config-eth/0/1)#
Configuration of the Ethernet interface of PINE-16M


4-14



4.5.7 Configure auto-MDI
To have the Ethernet interfaces to recognize the Ethernet cables Pin arrangement automatically (Cross /
Straight), enable the auto-MDI function. The auto-MDI function is disabled by default.

Command Description
config Enter the global configuration mode
interface eth <1-2> To Select a specific Ethernet interface of PINE-16M.
[no] automdi Enable or disable the auto-MDI function
show interface Shows the configuration information of the interface.

Mro-tek# config
Mro-tek(config)# interface eth 1
Mro-tek(config-eth/0/1)# automdi
setup successfully!
Mro-tek(config-eth/0/1)#
4.5.8 Configuring ALS function of optical interface
The ALS (Automatic Laser Shutdown) function of the optical interface is effective only when the
transmission from laser is enabled. When RXLOS alarm occurs, the Fiber optic transceiver will deactivate
the Tx port. When RXLOS alarm is acknowledged, the Transceiver will activate Tx port. The ALS
function is enabled by default.
Command Description
config Enter the global configuration mode.
interface fx-eth <1-2> To Select a Fx-Ethernet interface-1 of PINE-16M.
als (enable|disable) To enable/disable ALS function.
show interface Show the configuration information of the interface.

Example:
Mro-tek# config
Mro-tek(config)# interface fx-eth 1
Mro-tek(config-fx-eth/0/1)# als enable
setup successfully!
Mro-tek(config-fx-eth/0/1)#

4.6 Monitoring and Maintenance of Eth Interface




4-15

4.6 Monitoring and Maintenance of Eth Interface
Current status and configuration information of the Eth interface can be viewed using the command show
interface under the interface eth mode.
Mro-tek(config-eth/0/1)# show interface
Interface ID :1
Descr :Slot 0 eth interface 1
Interface type :electrical
Attribute :outer
Port enable :enable
Link status :cross
AutoNego Status :enable
Duplex :half-duplex
Speed :1000M
Flow control :on
Link :linkdown
MaxFrameLen :1916
OutOctets :0
OutUcastPkts :0
OutDiscards :0
OutErrors :0
OutBroadcastPkts :0
OutMulticastPkts :0
InOctets :0
InUcastPkts :0
InDiscards :0
InErrors :0
InBroadcastPkts :0
InMulticastPkts :0
Current status and configuration information of the Eth interface can be viewed using the command show
interface under the interface fx-eth mode.
Mro-tek(config-fx-eth/0/1)# show interface
Interface ID :1
Descr :Slot 0 ethfx interface 1
Interface type :optical
Attribute :outer
Port enable :enable
Link status :cross
4.6 Monitoring and Maintenance of Eth Interface


4-16



AutoNego Status :disable
Duplex :full-duplex
Speed :100M
Flow control :on
Tlink :linkdown
Rlink :linkdown
Als :enable
MaxFrameLen :1916
OutOctets :0
OutUcastPkts :0
OutDiscards :0
OutErrors :0
OutBroadcastPkts :1
OutMulticastPkts :0
InOctets :0
InUcastPkts :0
InDiscards :0
InErrors :0
InBroadcastPkts :1
InMulticastPkts :0

4.7 Configuration of Central Site SFP interface of PINE-16M




4-17

4.7 Configuration of Central Site SFP interface of
PINE-16M
4.7.1 Enabling and disabling transmission from the laser
Using the below given commands, the Tx port of Fiber optic transceiver can be enabled/disabled.
By default, SFP transmission is enabled.
Command Description
config Enter the global configuration mode.
interface sfp fx-eth 1 To Select a Fx-Ethernet interface-1 of PINE-16M.
sfp-switch (on|off) To Enable or disable SFP transmission
show interface Shows the configuration information.

Mro-tek#config
Mro-tek(config)# interface sfp fx-eth 1
Mro-tek(config-sfp-fx-eth/0/1)# sfp-switch on
setup successfully!
Mro-tek(config-sfp-fx-eth/0/1)# show interface

4.8 Monitoring and Maintenance of the SFP Interface


4-18



4.8 Monitoring and Maintenance of the SFP
Interface
The current status and configuration information of SFP interface can be viewed by using the command
show interface under the interface sfp fx-eth mode.
Mro-tek(config-sfp-fx-eth/0/1)# show interface
Sfp Exist :exist
Sfp Tx status :enable
Sfp Rx :normal
Laser Tx :normal
Media type :fiber_9_125
Module type :sfp
Optical Interface :LC
Rated speed :155M
Transmit distance :40 km
Wave length :1310 nm
Vendor :HG GENUINE
Product Type :MXP-033M
Version :
Water Mask : 0081232

4.9 Configuration of Central Site Switching of PINE-16M




4-19

4.9 Configuration of Central Site Switching of
PINE-16M
4.9.1 VLAN configuration
An overview of Q-in-Q
The principle and operating process of Q-in-Q is as follows:
Data transmitted in a private network has a Tag of the private network, defined as CVLAN
Tag
When the data enters the backbone network of service provider, it will be given a VLAN Tag
of the public network, defined as SPVLAN Tag (or Outer Tag)
When the data reach the target private network, the SPVLAN Tag will be taken off
This process provides users with a simple layer-2 VPN tunnel.
The SPVLAN Tag goes behind Ethernet source MAC address and target MAC address in the data. It
contains 12 bits of SPVLAN ID, which supports 4096 VLANs, and 3 bits of SPVLAN CoS, which
supports 8 levels of services. In a network based on Q-in-Q, carriers can assign a SPVLAN ID for every
user port. As a result, all data enter the carriers network from the user side will be mapping to the
assigned SPVLAN ID, and the CVLAN ID of user is consequently protected.
Products with Q-in-Q have the following advantages in solutions for small-scale MAN or enterprise
networks:
4096x4096 VLAN IDs are provided to alleviate the problems caused by the scarce resource of
public network VLAN ID.
Users are able to lay out their own VLAN IDs, which will not lead to the conflict with public
network VLAN ID.
Provide a simply layer-2 VPN solution.
Users networks gain more independency. The original configuration of users networks does
not have to change as the network of service provider upgrades.
VLAN member port mode
Member
Port Mode
VLAN Member Properties
Access A member port in Access mode can be assigned by user to only one VLAN.
Packets transferred out from an Access port of a specific VLAN has no 802.1Q tag.
Access ports from different VLANs can not communicate.
TUNNEL A member port in TUNNEL mode can be assigned by user to only one VLAN.
Packets transferred out from a TUNNEL port of a specific VLAN has no 802.1Q outer
tag.
TUNNEL ports from different VLANs can not communicate.
Packets entering the VLAN through a TUNNEL port can be marked with two layers of
802.1Q tags.
4.9 Configuration of Central Site Switching of PINE-16M


4-20



Trunk A Trunk port exists in multiple VLANS with TAGGED mode and exists in Native
VLAN with UNTAGGED mode.
A Trunk port exists in more than one VLAN by default. Packets transferred out of
VLANs from a Trunk port have 802.1Q tag except for those from the Native VLAN.
However, users can limit the transfer of VLAN packets from a Trunk port by modifying
its allowed vlans property.
Trunk double-tagging mode: Configuring a port to a Trunk port and equipping the port
with the ability of recognizing and handling outer Tag (SPVLAN Tag).
Hybrid A Hybrid port can exist in multiple VLANs with either UNTAGGED or TAGGED
mode.
A Hybrid port can be assigned to several VLANs by user.
Users are able to decide whether the packets transferred out of the VLAN from the
Hybrid port have 802.1Q tag of the corresponding VLAN or not.
A Hybrid port is able to classify packets other than 802.1Q packets through configuring
the Native property.

4.9 Configuration of Central Site Switching of PINE-16M




4-21

To create, delete, suspend and activate VLANs
The command vlan <2-4094> is used to create and configure the VLAN Tag modes. If a VLAN is created
and no port has been assigned to it, then the VLAN is actually ineffective. When configuring the mode
and VLAN ID for a switching port, the VLAN with the specified Tag ID will be created automatically.
The relevant commands for creating a VLANs are shown below::
Command Description
config Enter the global configuration mode
vlan <2-4094> To create and configure a VLAN
show vlan [<2-4094>] Shows the information of all VLANs or a specific VLAN

We can create upto 128 VLANs using this command. While configuring switch port mode and VLAN ID,
the number of VLANs created by the system itself can not exceed 384.
Example: Procedures to Create a VLAN Tag 888
Mro-tek# config
Configuration mode, one conmmand input per time. End with CTRL-Z.
Mro-tek(config)# vlan 888
Mro-tek(config-vlan888)# show vlan 888
state of vlan 888: active
Mro-tek(config-vlan888)#
To delete a VLAN using command lines, the system will go through all global switching ports and
processes as follows:
1 The port is of Access mode or Tunnel mode
If the VLAN ID of the Access port is the same as the VLAN ID to be deleted, the VALN ID of the
Access port will modified to the global port number (the default VLAN ID when no file is configured).
If the VLAN ID of the Access port is the same as the global port number, the VLAN is not deleted
actually. Users can still enter the port and modify its VLAN ID.
2 If the port is of Hybrid mode or Trunk mode (including Trunk double-tagging mode) and the VLAN
list allowed by the port is specified by the users, the VLAN ID of the VLAN to be deleted will be
delete from the VLAN list of the port.
3 If the port is of Trunk mode (including Trunk double-tagging mode) and all VLANs are allowed by the
port (allow all), the configuration of the port will not be affected.
The relevant commands for deleting a VLAN are shown in the table below:
Command Description
config Enter the global configuration mode.
no vlan <2-4094> To delete the specific VLAN Tag.
show vlan [<2-4094>] Shows the information of all VLANs or a specific VLAN.

Example: delete VLAN 888.
Mro-tek# config terminal
Configuration mode, one conmmand input per time. End with CTRL-Z.
4.9 Configuration of Central Site Switching of PINE-16M


4-22



Mro-tek(config)# no vlan 888
Mro-tek(config)# show vlan 888
vlan 888 not created yet.
Mro-tek(config)#
Users can deactivate the unused VLANs by changing the VLAN state to Suspend mode, instead of
deleting it. A suspended VLAN can be activated as and when it is required.
The commands in the table below are used to change the VLAN State into suspend/active mode.
Command Description
config Enter the global configuration mode.
vlan <2-4094> To configure a Specific VLAN Tag.
state (active|suspend) To Suspend or activate a VLAN.
show vlan [<2-
4094>]
Shows the information of all VLANs or specific VLAN.

By default, VLAN 1 exists in the system and all ports belong to VLAN 1. The command
show vlan will not reveal VLAN 1 information. VLAN 1 can not be created, deleted or
suspended through command lines.
Example 1: Suspending VLAN 303.
Mro-tek# config terminal
Configuration mode, one conmmand input per time. End with CTRL-Z.
Mro-tek(config)# vlan 303
Mro-tek(config-vlan303)# state suspend
Mro-tek(config-vlan303)# show vlan 303
state of vlan 303: suspend
port 3(normal) : dot1q_tunnel
Mro-tek(config-vlan303)#

Example 2: activate VLAN 303
Mro-tek# config terminal
Configuration mode, one conmmand input per time. End with CTRL-Z.
Mro-tek(config)# vlan 303
Mro-tek(config-vlan303)# state active
Mro-tek(config-vlan303)# show vlan 303
state of vlan 303: active
port 3(normal) : dot1q_tunnel
Mro-tek(config-vlan303)#
4.9 Configuration of Central Site Switching of PINE-16M




4-23

Set up outer Tag TPID
By default, the TPID of outer Tag is 0x9100 and the users are authorized to specify the TPID value.
Command Description
config Enter the global configuration mode.
double-tagging tpid HHHH To specify the TPID value.
show esw Shows the basic information of Ethernet
switching.

The command no double-tagging tpid is available to restore the outer Tag TPID value to default value.
Example: set the third global outer Tag TPID value to 0x8100.
Mro-tek# config terminal
Configuration mode, one conmmand input per time. End with CTRL-Z.
Mro-tek(config)# double-tagging tpid 0x8100
tpid of slot 0 has been set.
Mro-tek(config)# show esw
ethernet switch information for slot 0 for PINE-16M:
double-tagging tpid: 0x8100
use-core-tag disabled
trunk group disabled
double tagging supported
19 ports
no special port
Mro-tek(config)#
4.9.2 Management of MAC Address Table
Configure aging time for MAC address
Users can configure the aging time for the MAC address table and stop the aging of a MAC address using
the below given set of commands. By default, the aging time is 300 seconds.
Command Description
config Enter the global configuration mode.
mac-address-table aging-time <0-3825> To Configure aging-time for MAC address table
show mac Shows the basic information of MAC address management.

The command no mac-address-table aging-time is available for users to restore the aging-time to the
default value.
To disable the MAC address aging, define the aging time as 0.

4.9 Configuration of Central Site Switching of PINE-16M


4-24



Example 1: Set the aging-time to 500 seconds.
Mro-tek# config terminal
Configuration mode, one conmmand input per time. End with CTRL-Z.
Mro-tek(config)# mac-address-table aging-time 500
Set Successfully.
Mro-tek(config)# show mac
aging time 500 seconds.
enabled mac address learning.
current mac address query conditions:
all ports and vlans
dynamic and static addresses
max number for next query : 0
next address must larger than : 0000.0000.0000, vlanid 0, port 0
Mro-tek(config)#
Example 2: stop the aging of a MAC address
Mro-tek# config
Configuration mode, one conmmand input per time. End with CTRL-Z.
Mro-tek(config)# mac-address-table aging-time 0
Set Successfully.
Mro-tek(config)# show mac
aging time 0 seconds.
enabled mac address learning.
current mac address query conditions:
all ports and vlans
dynamic and static addresses
max number for next query : 0
next address must larger than : 0000.0000.0000, vlanid 0, port 0
Mro-tek(config)#
Configuring Static MAC address
Static MAC address is not exposed to aging. A static MAC address must be a unicast address or a
multicast address. There is no static MAC address entry by default.
Command Description
config Enter the global configuration mode
mac-address-table static
MACADDRESS vlan <1-4094> port
<1-9>
To configure a static MAC address entry.
show mac-address-table
(all|static|dynamic)
Shows MAC address table. The MAC address table can only
be properly shown when the MAC address table polling is
enabled.
4.9 Configuration of Central Site Switching of PINE-16M




4-25

The command no mac-address-table static MACADDRESS vlan <1-4094> port <1-9> is available for
users to delete a static MAC address.
Example: Setting the static MAC address to 000e.5e01.0203, the corresponding VLAN ID to 3 and the
corresponding port number to 7..
Mro-tek# config terminal
Configuration mode, one conmmand input per time. End with CTRL-Z.
Mro-tek(config)# mac-polling
Mro-tek(config)# mac-address-table static 000e.5e01.0203 vlan 3 port 7
Set Successfully.
Mro-tek(config)# show mac-address-table all
1 item(s) found
000e.5e01.0203 : static, vlanid 3, port 7
Mro-tek(config)#
Enabling and disabling MAC address learning
By default, the MAC address learning is enabled.
Command Description
config Enter the global configuration mode.
mac-address-table
learning (enable|disable)
To Enable or disable the MAC address learning function
show mac Shows the basic information of MAC address management

Example: Disabling MAC address learning
Mro-tek# config terminal
Configuration mode, one conmmand input per time. End with CTRL-Z.
Mro-tek(config)# mac-address-table learning disable
Set Successfully.
Mro-tek(config)# show mac
aging time 300 seconds.
disabled mac address learning.
current mac address query conditions:
all ports and vlans
dynamic and static addresses
max number for next query : 200
next address must larger than : 0000.0000.0000, vlanid 0, port 0
Mro-tek(config)#
Clear items in MAC address table
The below given list of commands are used to clear layer-2 MAC address table.

4.9 Configuration of Central Site Switching of PINE-16M


4-26



Command Description
config Enter the global configuration mode
clear mac-address-table
(all|dynamic|static)
To Clear MAC address of a specified
type.
show mac Shows the basic information of MAC
address management.
Example: Clear all dynamic MAC address
Mro-tek# config terminal
Configuration mode, one conmmand input per time. End with CTRL-Z.
Mro-tek(config)# clear mac-address-table dynamic
Set Successfully.
Mro-tek(config)# show mac-address-table dynamic
0 item(s) found
Mro-tek(config)#
Enable MAC address polling, show MAC address table and search for a
MAC address
By default the MAC address polling is disabled. If the MAC address polling has never been used before,
then the MAC address table shown will be a blank table and user cannot search any MAC address entries.
Only when the MAC address polling is enabled, users can search a specific MAC address.
Command Description
config Enter the global configuration mode.
[no] mac-polling To Enable or disable MAC address polling.
show mac Shows the basic information of MAC address polling. The information of
whether the MAC address polling is enabled will be shown.
show mac-address-table
(all|static|dynamic)
Shows the MAC address table.
search mac-address
HHHH.HHHH.HHHH
To Search a Specific MAC address

Example 1: Enabling the MAC address polling.
max number for next query of the command show mac is larger than 0 indicates that
the MAC addresses polling is currently enabled.
Mro-tek# config terminal
Configuration mode, one conmmand input per time. End with CTRL-Z.
Mro-tek(config)# mac-polling
Mro-tek(config)# show mac
aging time 300 seconds.
disabled mac address learning.
current mac address query conditions:
all ports and vlans
4.9 Configuration of Central Site Switching of PINE-16M




4-27

dynamic and static addresses
max number for next query : 200
next address must larger than : 0000.0000.0000, vlanid 0, port 0
Mro-tek(config)#
Example 2: Showing all MAC addresses learnt from / configured to port 1.
Mro-tek# config terminal
Configuration mode, one conmmand input per time. End with CTRL-Z.
Mro-tek(config)# show mac-address-table all port 1
1 item(s) found
000e.5e01.0203 : static, vlanid 2, port 1
Mro-tek(config)#

Example 3: After adding a static MAC address 000e.5e01.0203, search to confirm whether the MAC
address exists.
Mro-tek# config terminal
Configuration mode, one conmmand input per time. End with CTRL-Z.
Mro-tek(config)# search mac-address 000e.5e01.0203
1 item(s) found
000e.5e01.0203 : static, vlanid 2, port 1
Mro-tek(config)#
4.9.3 Configuration of mirror function
Mirror function has the packets of a mirror port to be copied and sent to a specified monitor port following
certain rules. It enables network administrators to monitor and analyze network data. There can be several
mirror ports, but only one monitor port is allowed.
The mirror function is disabled by default.
Configure the monitor port of the mirror function
Message of mirror port will be copied and sent to a monitor port according to certain mirror rules for
network monitoring. There is no monitor port by default. The mirror function can only be enabled after a
monitor port has been specified. Monitor port and mirror port can not be a same port
Command Description
config Enter the global configuration mode.
mirror monitor-port <1-19> Set up a monitor port.
show mirror Show mirror configuration
The command of global configuration mode no mirror monitor-port is available for users to delete a
monitor port.
4.9 Configuration of Central Site Switching of PINE-16M


4-28



Configure the mirror ports for the mirror function
As the mirror function takes effect, the message going in or out of a mirror port is copied and sent to the
monitor port. Mirror rule is established when the corresponding mirror port is configured. The available
rules are both, ingress or egress. The monitor port is not allowed to be configured as a mirror port.
1. Both: mirror the message on both directions of the port
Command Description
Config Enter the global configuration mode.
mirror source-port-list both
PORTLIST
Configure mirror port and mirror rule for bi-directional traffic.
show mirror Shows the configuration of mirror function

2. Ingress: mirror the message goes into the port
Command Description
Config Enter the global configuration mode.
mirror source-port-list ingress
PORTLIST
Configure mirror port and mirror rule for ingress traffic
show mirror Shows the configuration of mirror function

3. Egress: mirror the message goes out of the port
Command Description
Config Enter the global configuration mode
mirror source-port-list ingress
PORTLIST
Configure mirror port and mirror rule for egress traffic
show mirror Show the configuration of mirror function

Configuring a new mirror port will erase the previous mirror configuration of the port.
The command no mirror monitor-port is available to delete a mirror port and to disable the mirror function
Enabling and disabling the configuration of mirror function
The configuration will take effect when the mirror function is enabled. A monitor port must be specified
before enabling the mirror function.
Command Description
Config Enter the global configuration mode
mirror monitor-port <1-19> Configure a monitor port
mirror {enable|disable} Enable or disable the mirror function
show mirror Shows the configuration of the mirror function

Example: Configuring port 9 as the monitor port and port 1-8 as mirror ports and the mirror rule is
ingress.
Mro-tek# config
4.9 Configuration of Central Site Switching of PINE-16M




4-29

Configuration mode, one command input per time. End with CTRL-Z.
Mro-tek(config)# mirror monitor-port 9
Set Successfully.
Mro-tek(config)# mirror source-port-list ingress 1-8
Set Successfully.
Mro-tek(config)# mirror enable
Set Successfully.
Mro-tek(config)# show mirror
mirror enabled
type: ingress
monitor port: 9
source port: 1 2 3 4 5 6 7 8
Mro-tek(config)#
4.9.4 Storm control
When a port receives large amount of broadcast packets, multicast packets or packets that fail to find their
targets (DLF), a packet storm is generated. The transfer of these packets leads the decrease of network
efficiency and even timeouts. The storm control function prevents this situation. The storm control
function is disabled by default.
Enabling and disabling the storm control function
To enable the storm control function, specify the type of storm control. The storm control function is
enabled as the storm control type is specified.
The storm control types of PINE-16M are:
broadcast: control broadcast storm only
multicast: control both broadcast storm and multicast storm
dlf: control broadcast storm, multicast storm and dlf storm
all: control the forwarding of all packets

Command Description
Config Enter the configuration mode.
interface switchport <1-19> To select a specific switch port
storm-control
(broadcast|multicast|dlf|all|disable)
Enable or disable the storm control function.
show storm-control Shows the storm control settings of all switching ports.
Example 1: Enabling storm control to broadcast packets
Mro-tek# config terminal
Configuration mode, one command input per time. End with CTRL-Z.
Mro-tek(config)# interface switchport 1
4.9 Configuration of Central Site Switching of PINE-16M


4-30



Mro-tek(config-eswif/0/1)# storm-control broadcast
Set Successfully.
Mro-tek(config-eswif/0/1)# show storm-control
portid = 1, rate = 262144, status = 250000, type = broadcast
portid = 2, rate = 262144, status = 0, type = disable
portid = 3, rate = 262144, status = 0, type = disable
portid = 4, rate = 262144, status = 0, type = disable
portid = 5, rate = 262144, status = 0, type = disable
portid = 6, rate = 262144, status = 0, type = disable
portid = 7, rate = 262144, status = 0, type = disable
portid = 8, rate = 262144, status = 0, type = disable
portid = 9, rate = 262144, status = 0, type = disable
portid = 10, rate = 262144, status = 0, type = disable
portid = 11, rate = 262144, status = 0, type = disable
portid = 12, rate = 262144, status = 0, type = disable
portid = 13, rate = 262144, status = 0, type = disable
portid = 14, rate = 262144, status = 0, type = disable
portid = 15, rate = 262144, status = 0, type = disable
portid = 16, rate = 262144, status = 0, type = disable
portid = 17, rate = 262144, status = 0, type = disable
portid = 18, rate = 262144, status = 0, type = disable
portid = 19, rate = 262144, status = 0, type = disable
Mro-tek(config-eswif/0/1)#

Example 2: Disabling the storm control
Mro-tek# config terminal
Configuration mode, one command input per time. End with CTRL-Z.
Mro-tek(config)# interface switchport 1
Mro-tek(config-eswif/0/1)# storm-control disable
Set Successfully.
Mro-tek(config-eswif/0/1)# show storm-control
portid = 1, rate = 100, status = 0, type = disable
portid = 2, rate = 262144, status = 0, type = disable
portid = 3, rate = 262144, status = 0, type = disable
portid = 4, rate = 262144, status = 0, type = disable
portid = 5, rate = 262144, status = 0, type = disable
portid = 6, rate = 262144, status = 0, type = disable
portid = 7, rate = 262144, status = 0, type = disable
4.9 Configuration of Central Site Switching of PINE-16M




4-31

portid = 8, rate = 262144, status = 0, type = disable
portid = 9, rate = 262144, status = 0, type = disable
portid = 10, rate = 262144, status = 0, type = disable
portid = 11, rate = 262144, status = 0, type = disable
portid = 12, rate = 262144, status = 0, type = disable
portid = 13, rate = 262144, status = 0, type = disable
portid = 14, rate = 262144, status = 0, type = disable
portid = 15, rate = 262144, status = 0, type = disable
portid = 16, rate = 262144, status = 0, type = disable
portid = 17, rate = 262144, status = 0, type = disable
portid = 18, rate = 262144, status = 0, type = disable
portid = 19, rate = 262144, status = 0, type = disable
Mro-tek(config-eswif/0/1)#
Storm control rate
Users can define a threshold limit (in kbps) for starting the storm control function.
Command Description
config Enter the global configuration mode.
interface switchport <1-19> To select a specific switch port
Storm-control rate <62-262144> Set up storm control rate.
show storm-control Shows the storm control setting of all switching ports.
Since the real storm-control threshold is not a continual value, the configured threshold may not be equal
to the real threshold. In general, the real storm-control threshold is the closest value to the configured
threshold.
Example: Setting the threshold for starting the storm control to 100kbps.
Mro-tek# config terminal
Configuration mode, one command input per time. End with CTRL-Z.
Mro-tek(config)# interface switchport 1
Mro-tek(config-eswif/0/1)# storm-control rate 100
Set Successfully.
Mro-tek(config-eswif/0/1)# show storm-control
portid = 1, rate = 100, status = 100, type = broadcast
portid = 2, rate = 262144, status = 0, type = disable
portid = 3, rate = 262144, status = 0, type = disable
portid = 4, rate = 262144, status = 0, type = disable
portid = 5, rate = 262144, status = 0, type = disable
portid = 6, rate = 262144, status = 0, type = disable
portid = 7, rate = 262144, status = 0, type = disable
portid = 8, rate = 262144, status = 0, type = disable
4.9 Configuration of Central Site Switching of PINE-16M


4-32



portid = 9, rate = 262144, status = 0, type = disable
portid = 10, rate = 262144, status = 0, type = disable
portid = 11, rate = 262144, status = 0, type = disable
portid = 12, rate = 262144, status = 0, type = disable
portid = 13, rate = 262144, status = 0, type = disable
portid = 14, rate = 262144, status = 0, type = disable
portid = 15, rate = 262144, status = 0, type = disable
portid = 16, rate = 262144, status = 0, type = disable
portid = 17, rate = 262144, status = 0, type = disable
portid = 18, rate = 262144, status = 0, type = disable
portid = 19, rate = 262144, status = 0, type = disable
Mro-tek(config-eswif/0/1)#
4.9.5 Configuring Rate Limit function
In some circumstances, users have to limit the bandwidth at a port level. The rate limit function limits the
rate at a port to a range; data that is beyond the limit will be discarded.
By default, there is no limit configured.

1. The configuration of QoS and rate limit at the same time is not recommended.
2. When both storm control and rate limit have been configured, the settings of storm
control have higher priority, as a result, the rate limit setting is invalid. In this
circumstance, if the storm control is disabled, the rate limit will begin to take effect
automatically.
Configuring the rate limit of a port
Command Description
Config Enter the global configuration mode.
Interface switchport <1-
19>
To Select a specific switch port.
rate-limit <1-1048576> To Configure a rate-limit for the specified port.
show rate-limit Shows the rate limit configuration of all switching ports.
Since the real rate-limit value is not a continual value, the configured rate limit may not be equal to the
real rate limit. In general, the real rate limit is the closest value to the configured value.
Command no rate-limit in switch port mode is used to delete the rate limit at a port.
Example: Setting the rate limit at port 1 to 1000kbps.
Mro-tek# config
Configuration mode, one command input per time. End with CTRL-Z.
Mro-tek(config)# interface switchport 1
Mro-tek(config-eswif/0/1)# rate-limit 1000
Set Successfully.
4.9 Configuration of Central Site Switching of PINE-16M




4-33

Mro-tek(config-eswif/0/1)# show rate-limit
portid = 1, config = 1000, status = 1000
portid = 2, no rate limit configured
portid = 3, no rate limit configured
portid = 4, no rate limit configured
portid = 5, no rate limit configured
portid = 6, no rate limit configured
portid = 7, no rate limit configured
portid = 8, no rate limit configured
portid = 9, no rate limit configured
portid = 10, no rate limit configured
portid = 11, no rate limit configured
portid = 12, no rate limit configured
portid = 13, no rate limit configured
portid = 14, no rate limit configured
portid = 15, no rate limit configured
portid = 16, no rate limit configured
portid = 17, no rate limit configured
portid = 18, no rate limit configured
portid = 19, no rate limit configured
Mro-tek(config-eswif/0/1)#
4.9.6 Configuring QoS
QoS function enables flow control over certain data flow and provides users services with end-to-end
service quality guarantee.
The configuration of QoS and rate limit at the same time is not recommended.
In general, Internet (IPv4) is based on store-and-forward scheme and only provides users with best-
effort service, which can not ensure the real-time, integrity and sequence of arriving of data packets, that
is, the quality of service is not guaranteed.
Users have different requirements on different distributed multimedia services, which can only be realized
by networks that can distribute and control resources according to the users needs. The application of
QoS (Quality of Service) enables the preferential handling of a certain kind of data flow, or enables the
adoption of some management and control policy to make the network performance predictable and the
bandwidth manageable.
The QoS of PINE-16M is realized in three steps:
Classification
Mapping
Queue control
4.9 Configuration of Central Site Switching of PINE-16M


4-34



QoS classification: All received messages of a switch port will be assigned with a COS value (0-7). Users
can set the value of the highest three bits CoS (Class of Service) of the two bytes of TAG control
information session in the 802.1Q frame head to be the CoS value of the message. Users can also give
every switch port with a default CoS value. All messages the port receive is classified according to this
default CoS value.
Mapping: queuing the messages in 4 transmitting queues is according to their CoS values. The mapping
from multiple CoS values to one queue is allowed.
Queue control: To get messages out of the transmitting queues and send according to some rule. The
priority of queue number.1-4 ascends as the ID number goes bigger.
PINE-16M supports two queue control mode: Fixed priority mode and Weighted-fair priority mode. With
fixed priority, as long as there is a message in the queue with higher priority, the message in the queue
with lower priority will not be sent. The fixed priority mode guarantees the transfer of messages in queue
with higher priority. With weighted-fair priority, the message in the four queues will be transferred in turn
and in proportions of 8:4:2:1. The weighted-fair mode solves the problem that the messages in the queue
with lower priority may not have the opportunity to be transferred.
QoS classification
By default, PINE-16M realizes QoS classification using the CoS value in the TAG information of 802.1Q
frame head.
The QoS classification can also be realized by assigning default CoS value for every port.
The default CoS value is 0.
The message received by the port that has no TAG will be classified by the default CoS of the port.
Command Description
Config Enter the global configuration mode.
no qos trust cos Do not trust the CoS value in the TAG information of the message.
All messages are classified by the default CoS value of the port.
interface switchport <1-
19>
To configure a selected switch port.
qos default-cos <0-7> To define a default CoS value for the port
show qos Shows QoS information.

Example: Realizing the classification by assigning port with default CoS value and setting the CoS value
of port 1 to 2.
Mro-tek# config terminal
Configuration mode, one command input per time. End with CTRL-Z.
Mro-tek(config)# no qos trust cos
Set Successfully.
Mro-tek(config)# interface switchport 1
Mro-tek(config-eswif/0/1)# qos default-cos 2
Set Successfully.
Mro-tek(config-eswif/0/1)# exit
Mro-tek(config)# show qos
qos disabled in slot 0.
queue schedule mode = weighted-fair
4.9 Configuration of Central Site Switching of PINE-16M




4-35

trust state = untrusted
cos to qos queue:
0-2, 1-1, 2-1, 3-2, 4-3, 5-3, 6-4, 7-4,
default cos for each port:
portid = 1, default cos = 2
portid = 2, default cos = 0
portid = 3, default cos = 0
portid = 4, default cos = 0
portid = 5, default cos = 0
portid = 6, default cos = 0
portid = 7, default cos = 0
portid = 8, default cos = 0
portid = 9, default cos = 0
Mro-tek(config)#
QoS mapping
By default, the mappings from CoS value to queue number are 0-2, 1-1, 2-1, 3-2, 4-3, 5-3, 6-4, 7-4. The
mappings can be modified using commands.
Command Description
Config Enter the global configuration mode.
qos map cos-queue <1-4> <1-4> <1-4>
<1-4> <1-4> <1-4> <1-4> <1-4>
Configuring mapping from CoS value to
QoS queue number.
show qos Shows QoS information

Example: Setting the mappings from CoS value to queue number to 0-1, 1-1, 2-2, 3-2, 4-3, 5-3, 6-4, 7-4.
Mro-tek# config terminal
Configuration mode, one command input per time. End with CTRL-Z.
Mro-tek(config)# qos map cos-queue 1 1 2 2 3 3 4 4
Set Successfully.
Mro-tek(config)# show qos
qos disabled in slot 0.
queue schedule mode = weighted-fair
trust state = untrusted
cos to qos queue:
0-1, 1-1, 2-2, 3-2, 4-3, 5-3, 6-4, 7-4,
default cos for each port:
portid = 1, default cos = 2
portid = 2, default cos = 0
portid = 3, default cos = 0
4.9 Configuration of Central Site Switching of PINE-16M


4-36



portid = 4, default cos = 0
portid = 5, default cos = 0
portid = 6, default cos = 0
portid = 7, default cos = 0
portid = 8, default cos = 0
portid = 9, default cos = 0
Mro-tek(config)#
QoS queue control
By default, the queue control mode of PINE-16M is the weighted-fair priority mode. Users can change the
control using the following commands.
Command Description
Config Enter the global configuration mode.
qos queue (fix-priority|weighted-fair) To Configure current global QoS queue control mode.
show qos Show QoS information

Example: Setting queue control mode to fixed priority mode
Mro-tek# config terminal
Configuration mode, one command input per time. End with CTRL-Z.
Mro-tek(config)# qos queue fix-priority
Set Successfully.
Mro-tek(config)# show qos
qos disabled in slot 0.
queue schedule mode = fix-priority
trust state = untrusted
cos to qos queue:
0-1, 1-1, 2-2, 3-2, 4-3, 5-3, 6-4, 7-4,
default cos for each port:
portid = 1, default cos = 2
portid = 2, default cos = 0
portid = 3, default cos = 0
portid = 4, default cos = 0
portid = 5, default cos = 0
portid = 6, default cos = 0
portid = 7, default cos = 0
portid = 8, default cos = 0
portid = 9, default cos = 0
Mro-tek(config)#
4.9 Configuration of Central Site Switching of PINE-16M




4-37

Starting and stopping QoS
By default the QoS function of PINE-16M is disabled. Users can start or stop the QoS function using the
following commands.
Command Description
Config Enter the global configuration mode.
[no] qos Start or stop current global QoS function
show qos Shows QoS information
Example: Starting the third global QoS function
Mro-tek# config terminal
Configuration mode, one command input per time. End with CTRL-Z.
Mro-tek(config)# qos
qos of slot 0 has been set.
Mro-tek(config)# show qos
qos enabled in slot 0.
queue schedule mode = fix-priority
trust state = untrusted
cos to qos queue:
0-1, 1-1, 2-2, 3-2, 4-3, 5-3, 6-4, 7-4,
default cos for each port:
portid = 1, default cos = 2
portid = 2, default cos = 0
portid = 3, default cos = 0
portid = 4, default cos = 0
portid = 5, default cos = 0
portid = 6, default cos = 0
portid = 7, default cos = 0
portid = 8, default cos = 0
portid = 9, default cos = 0
Mro-tek(config)#
4.9.7 Trunk
Switching ports of PINE-16M can be grouped into trunk groups as required to realize load sharing and
link backup function. Maximum of 8 links is supported for trunk group aggregation. The settings of all
ports in a trunk group should be similar. PINE-16M carries out flow distribution following DA/SA. It is
not in support of LACP.
Enabling and disabling the trunk function
The trunk function is disabled by default. Users can enable or disable the trunk function using the
following commands.
4.9 Configuration of Central Site Switching of PINE-16M


4-38




Command Description
Config Enter the global configuration mode.
Trunk (enable|disable) Enable or disable trunk function.
Show esw Shows the basic information of Ethernet switching.

Example: Enabling the trunk function.
Mro-tek# config terminal
Configuration mode, one command input per time. End with CTRL-Z.
Mro-tek(config)# trunk enable
Set Successfully.
Mro-tek(config)# show esw
ethernet switch information for slot 0 for PINE-16M:
double-tagging tpid: 0x9100
use-code-tag disabled
trunk group enabled
double tagging supported
19 ports
no special port
Mro-tek(config)#
Adding and deleting a member port of a trunk group
By default, theres no port in any trunk groups in PINE-16M.
Command Description
Config Enter the global configuration mode.
trunk group <1-8> PORTLIST To configure a member port for specified trunk group
no trunk group <1-8> To delete the specified trunk group
show trunk group Shows the information of current global link groups

Example 1: Assigning ports 1, 2, 3 to trunk group 1 of PINE-16M.
Mro-tek# config terminal
Configuration mode, one command input per time. End with CTRL-Z.
Mro-tek(config)# trunk group 1 1-3
Set Successfully.
Mro-tek(config)# show trunk group
trunk disabled
trunk group 1 has 3 port(s):
1-up 2-up 3-up
4.9 Configuration of Central Site Switching of PINE-16M




4-39

Mro-tek(config)#
Example 2: delete all ports in trunk group 1 of PINE-16M
Mro-tek# config terminal
Configuration mode, one command input per time. End with CTRL-Z.
Mro-tek(config)# no trunk group 1
Set Successfully.
Mro-tek(config)# show trunk group
trunk disabled
all trunk groups have no port.
Mro-tek(config)#
4.9.8 Loop detection
The loop detection function eliminates the loops that affects the network performance and improves the
devices ability of fault detection, tolerance and its robustness.

Figure 1: Loop Detection
The loop detection process is as follows:
Every port on the switch sends Loopback-detection packet periodically (The sending interval
can be set up by user. Typical interval is 4s.
The switch checks the CPU MAC field of the received packets. If the MAC address in the
CPU MAC field is the MAC address of the same switch, then a loop is concluded to occur on
some port of the switch. If the MAC address in the CPU MAC field is not the MAC address of
the same switch, the switch discards the packet.
If the port number of the received packet is same as that of the sent packet, then the loop is a
self loop; otherwise, the loop is an external loop (between the E1/Eth ports of the same PINE-
16M).
Enabling and disabling the loop detection function
The loop detection function is disabled by default. To carry out loop detection, the loop detection function
must be enabled and the switch port list for loop detection must be specified. The current loop detection
information is displayed in several lists. Each list corresponds to a port. For a port that is closed because of
loop, the corresponding bit is 1 and the bit corresponding to the port in the same loop is also 1. The bits for
all ports without loops are 0.
PINE -16M
P1 P2 P3
Self
External
Loop
4.9 Configuration of Central Site Switching of PINE-16M


4-40




Command Description
Config Enter the global configuration mode.
loopback-detection (enable|disable) To enable or disable the loop detection function
loopback-detection port-list (PORTLIST|all) Configures the port list for loop detection
show loopdetection Shows the information of current global loop detection.

Example: Enable the loop detection function. Carry out loop detection on port 1-4.
Mro-tek# config terminal
Configuration mode, one command input per time. End with CTRL-Z.
Mro-tek(config)# loopback-detection enable
Set Successfully.
Mro-tek(config)# loopback-detection port-list 1-4
Set Successfully.
Mro-tek(config)# show loopdetection
loopback detection enabled
hello time: 4
down time: 30
detection port: 1 2 3 4

loopback detected for each port
port 1: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
port 2: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
port 3: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
port 4: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
port 5: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
port 6: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
port 7: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
port 8: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
port 9: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
port 10: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
port 11: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
port 12: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
port 13: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
port 14: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
port 15: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
port 16: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
port 17: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
4.9 Configuration of Central Site Switching of PINE-16M




4-41

port 18: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
port 19: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Mro-tek(config)#
Configuring loop detection function
The interval for sending loopback-detection is 4 seconds by default. By default the down time for a port
where loop has been detected is 30 seconds. These two values can be set up by users.
Command Description
Config Enter the global configuration mode.
loopback-detection hello-time
<1-65535> seconds
Set up the interval for sending loop detection
packet
loopback-detection down-time
<0-65534> seconds / Infinite
Set up the down time of the port after loop has
been detected at the port
show loopdetection Shows the current global loop detection
information

Using the command no loopback-detection hello-time, users can restore the sending interval of loopback-
detection to default value.
Example: Setting the loop detection interval to 3 seconds, so that the port will close after loop is detected.
Mro-tek# config terminal
Configuration mode, one command input per time. End with CTRL-Z.
Mro-tek(config)# loopback-detection hello-time 3
Set Successfully.
Mro-tek(config)# loopback-detection down-time infinite
Set Successfully.
Mro-tek(config)# show loopdetection
loopback detection enabled
hello time: 3
down time: infinite
loopback detected for each port
port 1: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
port 2: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
port 3: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
port 4: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
port 5: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
port 6: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
port 7: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
port 8: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
port 9: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
port 10: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
4.9 Configuration of Central Site Switching of PINE-16M


4-42



port 11: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
port 12: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
port 13: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
port 14: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
port 15: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
port 16: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
port 17: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
port 18: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
port 19: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Mro-tek(config)#
4.10 Monitoring and maintaining PINE-16M




4-43

4.10 Monitoring and maintaining PINE-16M
4.10.1 Monitoring and maintaining VLANs
Users can view the current status and configuration of VLAN using the command show vlan in global
configuration mode.
Mro-tek(config)# show vlan
state of vlan 101: active
port 1(normal) : dot1q_tunnel
state of vlan 102: active
port 2(normal) : dot1q_tunnel
state of vlan 103: active
port 3(normal) : dot1q_tunnel
state of vlan 104: active
port 4(normal) : dot1q_tunnel
state of vlan 105: active
port 5(normal) : dot1q_tunnel
state of vlan 106: active
port 6(normal) : dot1q_tunnel
state of vlan 107: active
port 7(normal) : dot1q_tunnel
state of vlan 108: active
port 8(normal) : dot1q_tunnel
state of vlan 109: active
port 9(normal) : dot1q_tunnel
state of vlan 110: active
port 10(normal) : dot1q_tunnel
state of vlan 111: active
port 11(normal) : dot1q_tunnel
state of vlan 112: active
port 12(normal) : dot1q_tunnel
state of vlan 113: active
port 13(normal) : dot1q_tunnel
state of vlan 114: active
port 14(normal) : dot1q_tunnel
state of vlan 115: active
port 15(normal) : dot1q_tunnel
4.10 Monitoring and maintaining PINE-16M


4-44



state of vlan 116: active
port 16(normal) : dot1q_tunnel
state of vlan 117: active
port 17(normal) : dot1q_tunnel
state of vlan 118: active
port 18(normal) : dot1q_tunnel
state of vlan 119: active
port 19(normal) : dot1q_tunnel
4.10.2 Monitoring and maintening MAC address
Users can view the current status and configuration of MAC management using the command show mac
in the global configuration mode.
Mro-tek(config)# show mac
aging time 300 seconds.
enabled mac address learning.
current mac address query conditions:
all ports and vlans
dynamic and static addresses
max number for next query : 0
next address must larger than : 0000.0000.0000, vlanid 0, port 0
4.10.3 Monitoring and maintening global configuration of
switching function
Current status and configuration of switching function can be viewed by using show esw in the global
configuration mode.
Mro-tek(config)# show esw
ethernet switch information for Pine-16M:
double-tagging tpid: 0x9100
use-core-tag disable
trunk group disabled
double tagging supported
19 ports
no special port
Mro-tek(config)#
4.10 Monitoring and maintaining PINE-16M




4-45

4.10.4 Monitoring and maintening Mirror function
Current status and configuration of mirror function can be viewed using the command show mirror in the
global configuration mode.
Mro-tek(config)# show mirror
mirror disabled
type: none
4.10.5 Monitoring and maintening Storm control function
Users can view the current status and configuration of storm control using the command show storm-
control in global configuration mode.
Mro-tek(config)# show storm-control
portid = 1, rate = 262144, status = 0, type = disable
portid = 2, rate = 262144, status = 0, type = disable
portid = 3, rate = 262144, status = 0, type = disable
portid = 4, rate = 262144, status = 0, type = disable
portid = 5, rate = 262144, status = 0, type = disable
portid = 6, rate = 262144, status = 0, type = disable
portid = 7, rate = 262144, status = 0, type = disable
portid = 8, rate = 262144, status = 0, type = disable
portid = 9, rate = 262144, status = 0, type = disable
portid = 10, rate = 262144, status = 0, type = disable
portid = 11, rate = 262144, status = 0, type = disable
portid = 12, rate = 262144, status = 0, type = disable
portid = 13, rate = 262144, status = 0, type = disable
portid = 14, rate = 262144, status = 0, type = disable
portid = 15, rate = 262144, status = 0, type = disable
portid = 16, rate = 262144, status = 0, type = disable
portid = 17, rate = 262144, status = 0, type = disable
portid = 18, rate = 262144, status = 0, type = disable
portid = 19, rate = 262144, status = 0, type = disable
4.10.6 Monitoring and maintening Rate limiting
Users can view the current status and configuration of rate limit using the command show rate-limit in
global configuration mode.
Mro-tek(config)# show rate-limit
portid = 1, no rate limit configured
portid = 2, no rate limit configured
4.10 Monitoring and maintaining PINE-16M


4-46



portid = 3, no rate limit configured
portid = 4, no rate limit configured
portid = 5, no rate limit configured
portid = 6, no rate limit configured
portid = 7, no rate limit configured
portid = 8, no rate limit configured
portid = 9, no rate limit configured
portid = 10, no rate limit configured
portid = 11, no rate limit configured
portid = 12, no rate limit configured
portid = 13, no rate limit configured
portid = 14, no rate limit configured
portid = 15, no rate limit configured
portid = 16, no rate limit configured
portid = 17, no rate limit configured
portid = 18, no rate limit configured
portid = 19, no rate limit configured
4.10.7 Monitoring and maintaining QoS
Current status and configuration of QoS can be viewed by the command show qos in the global
configuration mode.
Mro-tek(config)# show qos
qos disabled in slot 0.
queue schedule mode = weighted-fair
trust state = cos
cos to qos queue:
0-2, 1-1, 2-1, 3-2, 4-3, 5-3, 6-4, 7-4,
default cos for each port:
portid = 1, default cos = 0
portid = 2, default cos = 0
portid = 3, default cos = 0
portid = 4, default cos = 0
portid = 5, default cos = 0
portid = 6, default cos = 0
portid = 7, default cos = 0
portid = 8, default cos = 0
portid = 9, default cos = 0
portid = 10, default cos = 0
4.10 Monitoring and maintaining PINE-16M




4-47

portid = 11, default cos = 0
portid = 12, default cos = 0
portid = 13, default cos = 0
portid = 14, default cos = 0
portid = 15, default cos = 0
portid = 16, default cos = 0
portid = 17, default cos = 0
portid = 18, default cos = 0
portid = 19, default cos = 0
4.10.8 Monitoring and maintaining Trunk function
Current status and configuration of trunk function can be viewed using the command show trunk group
in the global configuration mode.
Mro-tek(config)# show trunk group
trunk enabled
trunk group 1 has 2 port(s):
17-down 18-down
Mro-tek(config)#
4.10.9 Monitoring and maintening Loop detection function
Users can view the current status and configuration of loop detection function by the command show
loopdetection in the global configuration mode.
Mro-tek(config)# show loopdetection
loopback detection enabled
hello time: 4
down time: 30
detection port: 1 2 3 4
loopback detected for each port
port 1: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
port 2: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
port 3: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
port 4: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
port 5: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
port 6: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
port 7: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
port 8: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
port 9: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
4.10 Monitoring and maintaining PINE-16M


4-48



port 10: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
port 11: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
port 12: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
port 13: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
port 14: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
port 15: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
port 16: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
port 17: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
port 18: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
port 19: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Mro-tek(config)#

4.11 Central site VCC configuration list of PINE-16M




4-49

4.11 Central site VCC configuration list of PINE-
16M
The network management configuration for PINE-16M is nothing but the network management
configuration for the 16 channels.
4.11.1 Enabling the VCC channel
The command and steps for enabling network management channel (VCC) is shown in the table below.
The network management channel is disabled by default.
Command Description
Config Enter the global configuration mode.
interface vcc Enter the central site VCC configuration mode of PINE-
16M.
vcc-channel enable Enables the VCC channel
show interface Shows the configuration information

Example:
Mro-tek#config
Mro-tek(config)# interface vcc
Mro-tek(config-vcc)# vcc-channel enable
Set Successfully.
Mro-tek(config-vcc)# show interface
Channel Description IPAddress Netmask Enable
16 192.168.5.28 255.255.255.0 enable
Mro-tek(config-vcc)#
4.11.2 Disable VCC channel
Command Description
config Enter the global configuration mode
interface vcc Enter the central site VCC configuration mode of PINE-16M.
vcc-channel disable Disable the VCC channel
show interface Shows the configuration information

Example:
Mro-tek#config
Mro-tek(config)# interface vcc
4.11 Central site VCC configuration list of PINE-16M


4-50



Mro-tek(config-vcc)# vcc-channel disable
Set Successfully.
Mro-tek(config-vcc)# show interface
Channel Description IPAddress Netmask Enable
1 192.168.5.28 255.255.255.0 disable
Mro-tek(config-vcc)#

4.11.3 Configuring the channel corresponding to the VCC
channel
Command Description
Config Enter the global configuration mode.
Interface vcc Enter the central site vcc configuration mode of PINE-16M.
vcc-channel channel <1-16> Selected a specific VCC Channel to configure / monitor.
show interface Shows the configuration information of selected VCC
channel.

Example:
Mro-tek#config
Mro-tek(config)# interface vcc
Mro-tek(config-vcc)# vcc-channel channel 1
Set Successfully.
Mro-tek(config-vcc)# show interface
Channel Description IPAddress Netmask Enable
1 192.168.5.28 255.255.255.0 disable
Mro-tek(config-vcc)#
4.11.4 Changing IP address and subnet mask
Command Description
Config Enter the global configuration mode
interface vcc Enter the central site VCC configuration mode of PINE-16M.
ip address A.B.C.D
[e.f.g.h]
Modify IP address and its subnet mask.
A.B.C.D: IP address
[e.f.g.h]: the subnet mask for the IP address
show interface Shows configuration information

4.11 Central site VCC configuration list of PINE-16M




4-51

Example:
Mro-tek#config
Mro-tek(config-vcc)# interface vcc
Mro-tek(config-vcc)# ip address 192.168.5.20 255.255.255.0
Set successfully.
Mro-tek(config-vcc)# show interface
VccIndex Description IPAddress Netmask Enable
1 192.168.5.20 255.255.255.0 disable
Mro-tek(config-vcc)#
4.11.5 Changing the title of the VCC
Command Description
config Enter the global configuration mode.
interface vcc Enter the central site VCC configuration mode of PINE-16M.
description STRING To Change the title of the VCC
Show interface Shows the configuration information

Example:
Mro-tek#config
Mro-tek(config-vcc)# interface vcc
Mro-tek(config-vcc)# description vcc1
Set successfully
Mro-tek(config-vcc)# show interface
VccIndex Description IPAddress Netmask Enable
1 vcc1 192.168.5.20 255.255.255.0 disable
Mro-tek(config-vcc)#

4.12 Monitoring and maintening the central site VCC of PINE-16M


4-52



4.12 Monitoring and maintening the central site
VCC of PINE-16M
Users can view the current status and configuration of VCC using the command show interface vcc in the
global configuration mode.
Mro-tek(config)# show interface vcc
VccIndex Description IPAddress Netmask Enable
1 vcc1 192.168.5.20 255.255.255.0 disable
Mro-tek(config)#




5-1

Chapter 5
Configuration of remote
inverse multiplexer device

5.1 Basic configuration of remote inverse multiplexer device


5-2



5.1 Basic configuration of remote inverse
multiplexer device
5.1.1 Configuring fault pass-through function
Command Description
config Enter the global configuration mode.
remote 0 <1-16> Enter the remote inverse multiplexer device configuration mode
fault-pass (enable|disable) Configure fault pass-through function.
show info Shows configuration information

This command is only applicable for inverse multiplexer device with electrical interfaces, including PINE-
iE1 and PINE-8.
Example:
Mro-tek#config
Mro-tek(config)# remote 0 8
Mro-tek(config-remote/0/8)# fault-pass enable
Mro-tek(config-remote/0/8)#show info
5.1.2 Reset remote device
Command Description
config Enter the global configuration mode
remote 0 <1-16> Enter the remote inverse multiplexer device configuration mode.
Reset Reset the selected remote inverse multiplexer device
Show info Show the configuration information
This command is applicable for all remote inverse multiplexer devices.
Example:
Mro-tek#config
Mro-tek(config)# remote 0 8
Mro-tek(config-remote/0/8)# reset
Mro-tek(config-remote/0/8)#show info
5.1 Basic configuration of remote inverse multiplexer device




5-3

5.1.3 Configuring error auto-shutdown function
Command Description
config Enter the global configuration mode
remote 0 <1-16> Enter the remote inverse multiplexer devices configuration
mode.
err-auto-shutdown Enables error auto-shutdown function.
Show info Shows the configuration information
The command is only applicable for inverse multiplexer devices with E1 inverse multiplexing function,
including PINE-iE1 and PINE-8.
Example:
Mro-tek#config
Mro-tek(config)# remote 0 8
Mro-tek(config-remote/0/8)# err-auto-shutdown
Mro-tek(config-remote/0/8)#show info

5.2 Device status and configuration


5-4



5.2 Device status and configuration
Current status and configuration information of the device is viewed using the command show info in the
remote inverse multiplexer devices configuration mode.
Example: Displaying information of remote PINE-8.
Mro-tek(config-remote/0/8)# show info
Device is remote ric device of f25d:0:8 in slot 0
Module type: PINE-8
E1 interface number: 8
Eth interface number: 1
Device description: rric device slot 0 hop 1 devid 1
Device work mode: slave
Fault pass: enable
Error Auto Shutdown: disable
Power Type: ac220
Mro-tek(config-remote/0/8)#

5.3 Configuration of E1 interface on remote inverse multiplexer device




5-5

5.3 Configuration of E1 interface on remote
inverse multiplexer device
5.3.1 Configuring clock mode of E1 interface
Command Description
Config Enter the global configuration mode
remote 0 <1-16> Enter the remote inverse multiplexer devices configuration mode.
interface e1 <1-8> Enter the E1 interface configuration mode of remote inverse multiplexer
device.
clock-mode (master|slave) To define a clock mode (Master / Slave).
show interface Shows the configuration information.

Example:
Mro-tek#config
Mro-tek(config)# remote 0 8
Mro-tek(config-remote/0/8)# interface e1 1
Mro-tek(config-e1/0/8/1)# clock-mode master
Mro-tek(config-e1/0/8/1)# show interface
5.3.2 Configuring CRC options of E1 interface
Command Description
Config Enter the global configuration mode.
Remote 0 <1-16> Enter the remote inverse multiplexer device configuration mode.
interface e1 <1-8> Enter the E1 interface configuration mode of remote inverse multiplexer
device
crc-auto (enable|disable) To Enable / Disable E1 CRC mode
show interface Shows the configuration information
Example:
Mro-tek#config
Mro-tek(config)# remote 0 8
Mro-tek(config-remote/0/8)# interface e1 1
Mro-tek(config-e1/0/8/1)# crc-auto enable
Mro-tek(config-e1/0/8/1)# show interface

5.4 Viewing the status of E1 interface


5-6



5.4 Viewing the status of E1 interface
Users can view the current status and configuration of E1 interface using the command show interface in
the E1 interface mode under the remote inverse multiplexer device mode.
Example:
Mro-tek(config-e1/0/8/1)# show interface
Interface ID :1
Description :e1 interface 1
Framemode :framed
subspeed
:1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,2
7,28,29,30,31
Clock mode :master
Crc auto :enable
Port enable :enable
Crc status :enable
Alarm status :noalarm
Tx packets :116
Rx packets :34
Rx Error packets :0
Mro-tek(config-e1/0/1/1)#

5.5 Configuring the Ethernet interface on remote inverse multiplexer
device




5-7

5.5 Configuring the Ethernet interface on remote
inverse multiplexer device
5.1.1 Configuring auto-negotiation function
Command Description
config Enter the global configuration mode.
remote 0 <1-16> Enter the remote inverse multiplexer device configuration mode
interface eth 1 Enter the eth configuration mode of remote inverse multiplexer device
[no] autonegotiate Configure auto-negotiation function.
show interface Shows the configuration information
This command is only applicable for inverse multiplexer device with electrical interfaces, including PINE-
iE1 and PINE-8.
Example:
Mro-tek#config
Mro-tek(config)# remote 0 8
Mro-tek(config-remote/0/8)# interface eth 1
Mro-tek(config-eth/0/8/1)# autonegotiate
Mro-tek(config-eth/0/8/1)# show interface
5.5.2 Shutting down and Enabling the Ethernet interface
Command Description
Config Enter the global configuration mode.
remote 0 <1-16> Enter the remote inverse multiplexer devices configuration mode.
interface eth 1 Enter the eth configuration mode of remote inverse multiplexer device.
Shutdown Shut down the selected Ethernet interface.
No shutdown Enable the selected Ethernet interface.
show interface Shows the configuration information
This command is only applicable for inverse multiplexer device with electrical interfaces, including PINE-
iE1 and PINE-8.
Example:
Mro-tek#config
Mro-tek(config)# remote 0 8
Mro-tek(config-remote/0/8)# interface eth 1
Mro-tek(config-eth/0/8/1)# no shutdown
5.5 Configuring the Ethernet interface on remote inverse
multiplexer device



5-8



Mro-tek(config-eth/0/8/1)# show interface
5.5.3 Setting Rate and duplex mode for the interface
The rate and duplex mode of the interface can only be configured when the auto-negotiation function is
disabled.
Command Description
Config Enter the global configuration mode
remote 0 <1-16> Enter the remote inverse multiplexer devices configuration mode.
interface eth 1 Enter the eth configuration mode of remote inverse multiplexer
device
speed (100|10) duplex (full|half) Set up the rate and duplex mode for the interface.
show interface Show the configuration information
This command is only applicable for inverse multiplexer device with electrical interfaces, including PINE-
iE1 and PINE-8.
Example: Configure the remote Inverse multiplexers Ethernet interface for 10 Mbps Half-duplex mode
Mro-tek#config
Mro-tek(config)# remote 0 8
Mro-tek(config-remote/0/8)# interface eth 1
Mro-tek(config-eth/0/8/1)# speed 10 duplex half
Mro-tek(config-eth/0/8/1)# show interface
5.5.4 Setting flow control function
Command Description
config Enter the global configuration mode.
remote 0 <1-16> Enter the remote inverse multiplexer device configuration mode.
interface eth 1 Enter the eth configuration mode of remote inverse multiplexer device.
interface fx-eth 1 Enter the fx-eth configuration mode of remote inverse multiplexer device.
flow-control (on|off) Enable / Disable the flow control function
show interface Shows the configuration information

This command is applicable to all remote inverse multiplexer devices.
Example 1: Configuring the flow control of the Ethernet interface of PINE-8
Mro-tek#config
Mro-tek(config)# remote 0 8
Mro-tek(config-remote/0/8)# interface eth 1
Mro-tek(config-eth/0/8/1)# flow-control on
Mro-tek(config-eth/0/8/1)# show interface
5.6 Ethernet interface status




5-9

5.6 Ethernet interface status
Users can view the current status and configuration information of the Ethernet interface using the
command show interface in the eth interface mode under the remote inverse multiplexer device
configuration mode.
Example 1: Show the status of the Ethernet interface of PINE-8
Mro-tek(config-eth/0/8/1)# show interface
Interface ID :1
Description :eth interface 1
PortEnable :enable
Autonegotiate :enable
flow control :off
Duplex :half-duplex
Speed :10M
LinkStatus :linkdown
Tx packets :66
Rx packets :233
Rx Error packets :0
Mro-tek(config-eth/0/1/1)#





6-1

Chapter 6
Network Protocol
Configuration
6.1 Configuring ARP


6-2



6.1 Configuring ARP
6.1.1 Adding ARP
Command Description
config Enter the global configuration mode
arp add <A.B.C.D>
<aa:bb:cc:dd:ee:ff>
Configuring mapping from IP address to MAC address.
<A.B.C.D>: IP Address
<aa:bb:cc:dd:ee:ff>: MAC Address
show arp Shows the current ARP table

Example:
Mro-tek#config
Mro-tek(config)# arp add 192.168.4.28 00:00:01:02:03:04
Successfully add an entry to ARP table
Mro-tek(config)# show arp
LINK LEVEL ARP TABLE
destination mac-addr flags(0x)Rfc Use Interface
-----------------------------------------------------------------------
192.168.4.28 00:00:01:02:03:04 2200c05 0 0 lo0
-----------------------------------------------------------------------
Mro-tek(config)#
6.1.2 Deleting ARP
Command Description
config Enter the global configuration mode
arp delete <A.B.C.D> Delete a mapping from IP address to MAC address.
<A.B.C.D> : IP Address
show arp Shows current ARP table.
Example:
Mro-tek# config
Mro-tek(config)# arp delete 192.168.4.28
Successfully delete an entry from ARP table

6.1 Configuring ARP




6-3

Mro-tek(config)# show arp

LINK LEVEL ARP TABLE
destination mac-addr flags(0x)Rfc Use Interface
-----------------------------------------------------------------------
-----------------------------------------------------------------------
Mro-tek(config)#
6.2 Configuring route


6-4



6.2 Configuring route
6.2.1 Adding a route
Command Description
Config Enter the global configuration mode
ip route <A.B.C.D> <E.F.G.H> <I.J.K.L>
Add a route.
A.B.C.D: The first parameter is the IP address of
the target network subnet or host in the format of
decimal numbers separated by dots.
E.F.G.H: The second parameter is the subnet mask
for the IP address of the target network or a host in
the format of decimal numbers separated by dots.
I.J.K.L: The third parameter is the IP address of
gateway in the format of decimal numbers
separated by dots.
show ip route Shows the route information
Example:
Mro-tek# config
Mro-tek(config)# ip route 192.168.6.0 255.255.255.0 192.168.4.28
Successfully add a route
Mro-tek(config)# show ip route
ROUTE NET TABLE
destination gateway flags(0x)Rfc Use pro Interface
-----------------------------------------------------------------------
192.168.4.0/24 192.168.4.28 2010101 0 0 1 motfec0
192.168.5.0/24 192.168.5.20 2000101 0 0 2 motfek0
192.168.6.0/24 192.168.4.28 2010101 0 0 1 motfec0
-----------------------------------------------------------------------
ROUTE HOST TABLE
destination gateway flags(0x)Rfc Use pro Interface
----------------------------------------------------------------------
127.0.0.1 127.0.0.1 2200005 0 0 2
lo0
----------------------------------------------------------------------
Mro-tek(config)#
6.2 Configuring route




6-5

6.2.2 Deleting a route
Command Description
Config Enter the global configuration mode.
ip route <A.B.C.D> <E.F.G.H>
Delete a route.
A.B.C.D: The first parameter is the IP address of the target network
subnet or host in the format of decimal numbers separated by dots.
E.F.G.H: The second parameter is the subnet mask for the IP address
of the target network or host in the format of decimal numbers
separated by dots.
show ip route Shows the route information

Example:
Mro-tek#config
Mro-tek(config)# no ip route 192.168.6.0 255.255.255.0
Successfully delete a route
Mro-tek(config)# show ip route
ROUTE NET TABLE
destination gateway flags(0x)Rfc Use pro Interface
-----------------------------------------------------------------------
192.168.4.0/24 192.168.4.28 2010101 0 0 1 motfec0
192.168.5.0/24 192.168.5.20 2000101 0 0 2 motfek0
-----------------------------------------------------------------------
ROUTE HOST TABLE
destination gateway flags(0x)Rfc Use pro Interface
-----------------------------------------------------------------------
127.0.0.1 127.0.0.1 2200005 0 0 2 lo0
-----------------------------------------------------------------------
Mro-tek(config)#

6.3 Configuring SNMP


6-6



6.3 Configuring SNMP
6.3.1 Configuring the name of community
Command Description
Config Enter the global configuration mode
snmp-server community COMMUNITY
(ro/rw)
Configure Read Only community and Read and Write
community for SNMP Server
show snmp-server community Shows snmp configuration information

Example:
Mro-tek#config
Mro-tek(config)# snmp-server community public ro
Set successfully
Mro-tek(config)# show snmp-server community
6.3.2 Configuring a host for SNMP trap reception
Command Description
Config Enter the global configuration mode
snmp trap-server A.B.C.D [<1-65535>] Configuring host for SNMP trap receiving.
A.B.C.D: IP address of the host.
[<1-65535>]: the port on the host for trap
receiving.
show snmp trap-server Shows the snmp configuration information

Example:
Mro-tek#config
Mro-tek(config)# snmp trap-server 192.168.1.1 162
Set successfully
Mro-tek(config)# show snmp trap-server
6.3 Configuring SNMP




6-7

6.3.3 Deleting a trap receiving host
Command Description
Config Enter the global configuration mode
no snmp trap-server A.B.C.D To delete a SNMP trap server entry
show snmp Shows the SNMP configuration information
Example:
Mro-tek# config
Mro-tek(config)# no snmp trap-server 192.168.1.1
Set successfully
Mro-tek(config)# show snmp trap-server
Trap server:
ADDRESS PORT
----------------------------------------
6.3.4 Starting SNMP task
Command Description
config Enter the global configuration mode
snmpd To Start SNMP task
Example:
Mro-tek# config
Mro-tek(config)# snmpd
Set successfully
Mro-tek(config)#
6.3.5 Stopping SNMP task
Command Description
config Enter the global configuration mode.
no snmpd To stop SNMP task

Example:
Mro-tek#config
Mro-tek(config)# no snmpd
Set successfully
Mro-tek(config)#
6.3 Configuring SNMP


6-8



6.3.6 IP address configuration
Command Description
Config Enter the global configuration mode
interface snmp Enter the central site SNMP configuration mode of PINE-16M
ip address A.B.C.D [E.F.G.H] Configure / Change the IP address and the subnet mask
A.B.C.D: IP address
[E.F.G.H] The subnet mask for the IP address
show interface snmp Shows configuration information

Example:
Mro-tek#config
Mro-tek#int snmp
Mro-tek(config-snmp)# ip address 192.168.4.29 255.255.255.0
Set successfully
Mro-tek(config-snmp)# show interface snmp
Interface:snmp
Administration Status :up Operation Status :down
Description: snmp
Internet address: 192.168.4.29 Netmask: 255.255.255.0
Ethernet address: 00:00:01:02:03:04
Duplex:half-duplex Speed:100baseT
Autonegotiation:enable
Mro-tek(config-snmp)#

6.4 Device status and configuration information




6-9

6.4 Device status and configuration information
Users can view the current status and configuration information of the device using the command show
snmp-server community.

Command Description
config Enter the global configuration mode.
show snmp-server community Shows the configuration information of SNMP
community.

Example:
Mro-tek#config
Mro-tek(config)# show snmp-server community
ID COMMUNITYNAME RIGHT
------------------------------
1 private rw
2 public ro

Mro-tek(config)#
Users can view the current status and configuration information of SNMP trap-server using the command
show snmp trap-server.
Command Description
Config Enter the global configuration mode.
show snmp trap-server Shows the configuration information of SNMP trap-server

Example:
Mro-tek#config
Mro-tek(config)# show snmp trap-server
Trap server:
ADDRESS PORT
----------------------------------------

6.4 Device status and configuration information


6-10



Mro-tek(config)#
Users can view the current status and configuration of SNMP parameters using the command show
interface snmp in the SNMP mode.
Command Description
config Enter the global configuration mode
interface snmp Enter the SNMP mode
show interface snmp Shows configuration information of SNMP interface

Example:
Mro-tek#config
Mro-tek(config)# interface snmp
Mro-tek(config-snmp)# show interface snmp
Interface:snmp
Administration Status :up Operation Status :down
Description: snmp
Internet address: 192.168.4.28 Netmask: 255.255.255.0
Ethernet address: 00:00:01:02:03:04
Duplex:half-duplex Speed:100baseT
Autonegotiation:enable
Mro-tek(config-snmp)#




7-1

Chapter 7
Example of the
Configuring PINE-16M
7.1 Example


7-2



7.1 Example
For the interconnection of PINE-16M and PINE-8, the network topology is shown in the figure below:

Figure 2: Network Topology
The network management interface of PINE-16M is a SNMP interface. PINE-8 is connected to the E1
interface 1-8 of PINE-16M and the data is aggregated to the Ethernet interface 2 on PINE-16M for
transferring.
The configuration procedures are as follows:

1. Configure IP address and gateway address
Mro-tek# config
Configuration mode, one command input per times. End with CTRL-Z.
Mro-tek(config)# interface snmp
Mro-tek(config-snmp)# ip address 192.168.4.64 255.255.255.0
Set successfully
Mro-tek(config)# ip route 192.168.4.28 255.255.255.0
Set successfully
Mro-tek(config)# show ip route
ROUTE NET TABLE
destination gateway flags(0x)Rfc Use pro Interface
-----------------------------------------------------------------------
192.168.4.0/24 192.168.4.28 2000101 0 0 2 motfec0
192.168.5.0/24 192.168.5.20 2000101 0 0 2 motfek0
-----------------------------------------------------------------------
ROUTE HOST TABLE
destination gateway flags(0x)Rfc Use pro Interface
-----------------------------------------------------------------------
127.0.0.1 127.0.0.1 2200005 0 0 2 lo0
-----------------------------------------------------------------------
7.1 Example




7-3

Mro-tek(config)# end
Mro-tek# write
Are you sure[Y/N]:y
Please wait..Copy OK: 3109 bytes copied
Save current configuration successfully!
Mro-tek#

2. Configure SNMP community and the IP address for Trap Manager
Mro-tek# config
Configuration mode, one command input per times. End with CTRL-Z.
Mro-tek(config)# snmp-server community public ro
Set unsuccessfully
Mro-tek(config)# snmp-server community private rw
Set unsuccessfully
Mro-tek(config)# show snmp-server community
ID COMMUNITYNAME RIGHT
------------------------------
1 private rw
2 public ro
Mro-tek (config)# snmp trap-server 192.168.4.63 162
Set successfully
Mro-tek(config)# show snmp trap-server
Trap server:
ADDRESS PORT
----------------------------------------
192.168.4.63 162

Mro-tek(config)# end
Mro-tek# write

Are you sure[Y/N]:y
Please wait..Copy OK: 3109 bytes copied

Save current configuration successfully!
Mro-tek#
7.1 Example


7-4



3. Configuring properties of switching
Set the switching mode of switchport 18 corresponding to Ethernet interface 2 to Trunk mode. Vlan 101 is
allowed.
Mro-tek# config
Configuration mode, one command input per times. End with CTRL-Z.
Mro-tek(config)# interface switchport 18
Mro-tek(config-eswif/0/18)# switchport trunk allowed vlan 101
Set Successfully.
Mro-tek(config-eswif/0/18)# show interface
switchport information:
slot = 0, portid = 18, ifIndex = 0x7d0412
type = normal
mode = trunk
access( tunnel) vlan id = 118
trunk( hybrid) native vlan id = 1
trunk tag native enable = enable
hybrid mode allowed vlan =
1
hybrid mode untagged vlan =
1
trunk mode allowed vlan =
1 101
protection enable = disable
discarded package = 0
forwarded package = 1
inunicast package = 0
outunicastt package = 0
inbroadcast package = 0
outbroadcast packet = 1
inmulticast packet = 0
outmulticast packet = 0
Mro-tek(config-eswif/0/18)# exit
Mro-tek(config)# show vlan
state of vlan 1: active
port 18(normal) : trunk
state of vlan 101: active
port 1(normal) : dot1q_tunnel
port 18(normal) : trunk
7.1 Example




7-5

state of vlan 102: active
port 2(normal) : dot1q_tunnel
port 18(normal) : trunk
state of vlan 103: active
port 3(normal) : dot1q_tunnel
port 18(normal) : trunk
state of vlan 104: active
port 4(normal) : dot1q_tunnel
port 18(normal) : trunk
state of vlan 105: active
port 5(normal) : dot1q_tunnel
port 18(normal) : trunk
state of vlan 106: active
port 6(normal) : dot1q_tunnel
port 18(normal) : trunk
state of vlan 107: active
port 7(normal) : dot1q_tunnel
port 18(normal) : trunk
state of vlan 108: active
port 8(normal) : dot1q_tunnel
port 18(normal) : trunk
state of vlan 109: active
port 9(normal) : dot1q_tunnel
state of vlan 110: active
port 10(normal) : dot1q_tunnel
state of vlan 111: active
port 11(normal) : dot1q_tunnel
state of vlan 112: active
port 12(normal) : dot1q_tunnel
state of vlan 113: active
port 13(normal) : dot1q_tunnel
state of vlan 114: active
port 14(normal) : dot1q_tunnel
state of vlan 115: active
port 15(normal) : dot1q_tunnel
state of vlan 116: active
port 16(normal) : dot1q_tunnel
state of vlan 117: active
7.1 Example


7-6



port 17(normal) : dot1q_tunnel
state of vlan 118: active
state of vlan 119: active
port 19(normal) : dot1q_tunnel
Mro-tek(config)#

4. Configuring properties of Ethernet interface 2
Mro-tek# config
Configuration mode, one command input per time. End with CTRL-Z.
Mro-tek(config)# interface eth 2
Mro-tek(config-eth/0/2)# autonegotiate
setup successfully!
Mro-tek(config-eth/0/2)# flow-control on
setup successfully!
Mro-tek(config-eth/0/2)# show interface
Interface ID :2
Descr :Slot 0 eth interface 2
Interface type :electrical
Attribute :outer
Port enable :enable
Link status :cross
AutoNego Status :enable
Duplex :half-duplex
Speed :100M
Flow control :on
Link :linkdown
MaxFrameLen :1916
OutOctets :0
OutUcastPkts :0
OutDiscards :0
OutErrors :0
OutBroadcastPkts :2
OutMulticastPkts :0
InOctets :0
InUcastPkts :0
InDiscards :0
InErrors :0
InBroadcastPkts :2
7.1 Example




7-7

InMulticastPkts :0
Mro-tek(config-eth/0/2)# end
Mro-tek# write

Are you sure[Y/N]:y
Please wait..Copy OK: 3109 bytes copied

Save current configuration successfully!
Mro-tek#

5. Configure virtual channel
Mro-tek# config
Configuration mode, one command input per time. End with CTRL-Z.
Mro-tek(config)# virtual-channel 1 e1 1-8
Set Successfully.
Mro-tek(config)# show virtual-channel
virtual-channel informationfor slot 0:
virtual-channel 1 = 1-8
virtual-channel 1 error shutdown disable
Mro-tek(config)#

6. Configuring properties of E1 interface (only one E1 interface is configured in the example, the
configuration of every E1 interface is the same)
Mro-tek# config
Configuration mode, one command input per time. End with CTRL-Z.
Mro-tek(config)# interface e1 1
Mro-tek(config-e1/0/1)# frame-mode framed
Set Successfully.
Mro-tek(config-e1/0/1)# clock-mode master
Set Successfully.
Mro-tek(config-e1/0/1)# crc-auto enable
Set Successfully.
Mro-tek(config-e1/0/1)# show interface
e1 interface information:
slot = 0, portid = 1, ifIndex = 0x20041000
ClockMode = master
FrameMode = framed
Timeslot = 1-31
CrcStatus = disable
7.1 Example


7-8



LocalLoop = normal
RemoteLoop = normal
CrcAutoNego = enable
Bert = disable
CommunicationMode = disable
AlarmStatus = NONE
ErrorSecond = 0
SeriousErrorSecond = 0
BitErrorRate = 1
EthSendPacketNum = 0
EthReceivePacketNum = 2727487
EthReceiveErrorPacketNum = 11721
RemoteDevId = 1
RemoteE1 = 1
LinkStatus = LinkOK
Mro-tek(config-e1/0/1)# end
Mro-tek# write

Are you sure[Y/N]:y
Please wait..Copy OK: 3109 bytes copied

Save current configuration successfully!
Mro-tek#

7. Test the E1 interface (only one E1 interface is configured in the example, the configuration of every
E1 interface is the same)
Mro-tek# config
Configuration mode, one command input per time. End with CTRL-Z.
Mro-tek(config)# interface e1 1
Mro-tek(config-e1/0/1)# remote-e1-loopback
Set Successfully.
Mro-tek(config-e1/0/1)# bert enable
Set Successfully.
Mro-tek(config-e1/0/1)# show interface
e1 interface information:
slot = 0, portid = 1, ifIndex = 0x20041000
ClockMode = master
FrameMode = framed
Timeslot = 1-31
7.1 Example




7-9

CrcStatus = disable
LocalLoop = normal
RemoteLoop = loopback
CrcAutoNego = enable
Bert = enable
CommunicationMode = disable
AlarmStatus = NONE
ErrorSecond = 0
SeriousErrorSecond = 0
BitErrorRate = 1
EthSendPacketNum = 0
EthReceivePacketNum = 2727487
EthReceiveErrorPacketNum = 11721
RemoteDevId = 1
RemoteE1 = 1
LinkStatus = LinkOK
Mro-tek(config-e1/0/1)#
Procedures to conduct the BER tester and loopback functions
Mro-tek(config-e1/0/1)# bert disable
Set Successfully.
Mro-tek(config-e1/0/1)# no remote-e1-loopback
Set Successfully.
Mro-tek(config-e1/0/1)#
Enable local loopback. (Note: before the local loopback of the device is enable, please make sure that the
cables connecting to all E1 ports in the channel the specified E1 port belongs to have been pulled out.)
Mro-tek# config
Configuration mode, one command input per time. End with CTRL-Z.
Mro-tek(config)# interface e1 1
Mro-tek(config-e1/0/1)# local-e1-loopback
Set Successfully.
Mro-tek(config-e1/0/1)# bert enable
Set Successfully.
Mro-tek(config-e1/0/1)# show interface
e1 interface information:
slot = 0, portid = 1, ifIndex = 0x20041000
ClockMode = master
FrameMode = framed
Timeslot = 1-31
CrcStatus = disable
7.1 Example


7-10



LocalLoop = loopback
RemoteLoop = normal
CrcAutoNego = enable
Bert = enable
CommunicationMode = disable
AlarmStatus = NONE
ErrorSecond = 0
SeriousErrorSecond = 0
BitErrorRate = 1
EthSendPacketNum = 0
EthReceivePacketNum = 2727487
EthReceiveErrorPacketNum = 11721
RemoteDevId = 1
RemoteE1 = 1
LinkStatus = LinkOK
Mro-tek(config-e1/0/1)# bert disable
Set Successfully.
Mro-tek(config-e1/0/1)# no local-e1-loopback
Set Successfully.
Mro-tek(config-e1/0/1)# end
Mro-tek#

8. Configure remote PINE-8
Mro-tek# config
Configuration mode, one command input per times. End with CTRL-Z.
Mro-tek(config)# remote 0 8
Mro-tek(config-remote/0/8)#
Configuring error auto-shutdown function
Mro-tek(config-remote/0/8)# err-auto-shutdown
setup successfully!
Mro-tek(config-remote/0/8)#
Enter the Ethernet interface configuration mode.
Mro-tek(config-remote/0/8)#interface fx-eth 1
Mro-tek(config-fx-eth/0/8/1)#
Enable the flow control function.
Mro-tek(config-fx-eth/0/8/1)#flow-control on
setup successfully!
View the information of the Ethernet interface.
7.1 Example




7-11

Mro-tek(config-fx-eth/0/8/1)#show interface
Interface ID :1
Description :fx-eth interface 1
opt module type :S3
flow control :on
Tlink :linkup
SD :normal
Remote poweroff :normal
fx-eth Tx packets :16
fx-eth Rx packets :1
fx-eth Rx Error packets :0
Mro-tek(config-fx-eth/0/8/1)# exit
Mro-tek(config-remote/0/8)#
Configure remote E1 interface (The configuration of the 8 E1 interface are the same.)
Enter the E1 interface configuration mode:
Mro-tek(config-remote/0/8)# interface e1 1
Mro-tek(config-e1/0/8/1)#
Set clock mode to master.
Mro-tek(config-e1/0/8/1)# clock-mode master
setup successfully!
Mro-tek(config-e1/0/8/1)#
Enable CRC self-adaptation.
Mro-tek(config-e1/0/8/1)#crc-auto enable
setup successfully!
Mro-tek(config-e1/0/8/1)#
View the information of E1 interface.
Mro-tek(config-e1/0/8/1)#show interface
Interface ID :1
Description :e1 interface 1
Framemode :framed
subspeed
:1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,2
7,28,29,30,31
Clock mode :master
Crc auto :enable
Port enable :enable
Crc status :enable
Alarm status :noalarm
Tx packets :0
7.1 Example


7-12



Rx packets :9
Rx Error packets :0
Mro-tek(config-e1/0/8/1)#end
Mro-tek# write

Are you sure[Y/N]:y
Please wait..Copy OK: 3109 bytes copied

Save current configuration successfully!
Mro-tek#

You might also like