Beruflich Dokumente
Kultur Dokumente
AGS-20
ALFOplus2
Ethernet Switch Configuration
User manual
MN.00320.E - 013
The information contained in this handbook is subject to change without notice.
Property of Siae Microelettronica. All rights reserved according to the law and according to the international
regulations. No part of this document may be reproduced or transmitted in any form or by any means,
electronic or mechanical, without written permission from Siae Microelettronica S.p.A.
Unless otherwise specified, reference to a Company, name, data and address produced on the screen dis-
played is purely indicative aiming at illustrating the use of the product.
MS-DOS®, MS Windows® are trademarks of Microsoft Corporation.
HP®, HP OpenView NNM and HP–UX are Hewlett Packard Company registered trademarks.
UNIX is a UNIX System Laboratories registered trademark.
Oracle® is a Oracle Corporation registered trademark.
Linux term is a trademark registered by Linus Torvalds, the original author of the Linux operating system.
Linux is freely distributed according the GNU General Public License (GPL).
Other products cited here in are constructor registered trademarks.
Contents
Section 1.
ETHERNET SWITCH CONFIGURATION 7
1 GENERAL................................................................................................................... 7
MN.00320.E - 013 1
6.3.2 On-Site CB (Local only, C-tagged) .............................................................32
6.3.3 On site PEB/PB (Local only, untagged) .......................................................33
6.3.4 On-site PEB/PB (Local only, S-tagged) .......................................................34
6.3.5 On-site CB (Radio link, untagged) .............................................................35
6.3.6 On-site CB (Radio link, C-tagged) .............................................................36
6.3.7 On-site PEB/PB (Radio link, untagged) .......................................................37
6.3.8 On-site PEB/PB (Radio link, S-tagged) .......................................................38
6.3.9 EOOB CB (untagged)...............................................................................40
6.3.10 EOOB PEB/PB (untagged).........................................................................42
6.3.11 INB CB (LANx, C-tagged), EOOB CB (LAN2, C-tagged) .................................43
6.3.12 INB PEB/PB (LANx, S-tagged), EOOB PEB/PB (LAN2, S-tagged) ....................44
6.3.13 INB CB (LAN1&2, C-tagged) .....................................................................46
6.3.14 INB PEB/PB (LAN1&2, S-tagged) ...............................................................47
6.4 MERGED SCRIPTS - EXAMPLES ...........................................................................49
6.4.1 INB + On-site CB (LAN1&2, C-tagged / OnS, untagged) ...............................49
6.4.2 INB + On-site PEB/PB (LAN1&2, S-tagged/OnS, untagged)...........................52
6.5 PAYLOAD INTERFACES ......................................................................................54
6.6 NETWORK APPLICATION ....................................................................................55
6.6.1 Scenario #1 ...........................................................................................55
6.6.2 Scenario #2 ...........................................................................................58
6.6.3 Scenario #3 ...........................................................................................60
6.6.4 Scenario #4 ...........................................................................................63
6.6.5 Scenario #5 ...........................................................................................67
6.6.6 Scenario #6 ...........................................................................................73
6.7 PAYLOAD SERVICES..........................................................................................77
6.7.1 Customer bridge ....................................................................................77
6.7.2 Provider edge bridge - Customer edge port ................................................79
6.7.3 Provider edge bridge - Customer network port ............................................85
6.7.4 Provider core bridge - Provider network port...............................................88
6.8 QUALITY OF SERVICE........................................................................................90
6.8.1 Classification PCP....................................................................................91
6.8.2 Classification DSCP .................................................................................92
6.8.3 Classification perPORT .............................................................................94
6.8.4 Classification per(PORT&VLAN) .................................................................94
6.8.5 Classification per (PORT & MPLS-EXP)........................................................95
6.8.6 Classification per (Port & MPLS & IPV4-DSCP) (IPv4oMPLS frame) .................96
6.8.7 Classification per (Port & MPLS & IPv6-DSCP) (IPv6oMPLS frame) .................96
6.8.8 Policing & Ingress filtering (CB CVLAN Meter trTCM cBlind) ...........................97
6.8.9 Policing & ingress filtering (CB CVLAN&Pri Meter trTCM cBlind) ......................98
6.8.10 Policing & ingress filtering (PB CVLAN Meter trTCM cBlind)............................99
6.8.11 Policing & ingress filtering (PB CVLAN&Pri Meter trTCM cBlind) .................... 100
6.8.12 Policing & ingress filtering (PB SVLAN Meter trTCM cBlind).......................... 101
6.8.13 Policing & ingress filtering (PB SVLAN&Pri Meter trTCM cBlind) .................... 102
6.8.14 Policing & ingress filtering (PB SVLAN&CVLAN Meter trTCM cBlind) .............. 103
6.8.15 Policing & ingress filtering (srcMacBased) ................................................. 104
6.8.16 Congestion avoidanceE Tail-Drop ............................................................ 105
6.8.17 Congestion avoidance WRED .................................................................. 105
6.8.18 Scheduling SP (Strict-Priority) ................................................................ 108
6.8.19 Scheduling WRR (Weight Round-Robin) ................................................... 108
6.8.20 Scheduling SP+WRR.............................................................................. 109
6.8.21 Scheduling RR (Round-Robin) ................................................................. 109
6.8.22 Shaping perPort.................................................................................... 110
6.8.23 Shaping perQUEUE................................................................................ 111
2 MN.00320.E - 013
6.8.24 Storm Control ...................................................................................... 111
6.8.25 Hierarchical QoS - perSCHEMA Approach.................................................. 112
6.9 COUNTERS AND STATISTICS ........................................................................... 126
6.9.1 Ethernet Performance Monitoring - RMON................................................. 126
6.9.1.1 RMON Settings....................................................................... 126
6.9.1.2 RMON Ethernet Statistics and History........................................ 127
6.9.1.3 RMON Limits.......................................................................... 128
6.9.1.4 Ethernet Service and Service History ........................................ 129
6.9.2 Clear Counters ..................................................................................... 134
6.10 GENERAL FEATURES ....................................................................................... 135
6.10.1 System MTU......................................................................................... 135
6.10.2 VLAN rewriting PNP ............................................................................... 135
6.10.3 Port isolation ........................................................................................ 136
6.10.4 MAC addresses aging time ..................................................................... 137
6.10.5 MAC address clear ................................................................................ 137
6.10.6 Jumbo frame ........................................................................................ 137
6.10.7 Ethertype............................................................................................. 138
6.10.8 Loopback ............................................................................................. 139
6.10.9 Port mirroring....................................................................................... 139
6.10.10Mediatype ........................................................................................... 140
6.10.11Autocrossover ..................................................................................... 141
6.10.12MDIX ................................................................................................. 141
6.10.13MDI ................................................................................................... 142
6.11 ADVANCED FEATURE....................................................................................... 142
6.11.1 PEB - PNP + VLAN rewriting ................................................................... 142
6.12 PWE3 (PSEUDOWIRE EMULATED EDGE TO EDGE) ............................................... 143
6.12.1 PWE3 - Feature Configs ......................................................................... 143
6.12.2 PWE3 - Feature Config (UNDO) ............................................................... 144
6.12.3 PWE3 - Alarms ..................................................................................... 144
6.12.4 PWE3 - Profile Configs ........................................................................... 145
6.12.5 PWE3 - Profile Configs (UNDO) ............................................................... 146
6.12.6 PWE3 - E1 Controller Configs.................................................................. 146
6.12.7 PWE3 - Shows ...................................................................................... 147
6.13 SYSTEM ADMINISTRATION .............................................................................. 147
6.13.1 Hitless restart....................................................................................... 147
7 PROTOCOLS ...........................................................................................................149
7.1 LAYER2 PROTOCOL TUNNELING........................................................................ 149
7.1.1 L2PT tunnel.......................................................................................... 149
7.1.2 L2PT peer ............................................................................................ 150
7.1.3 L2PT (Undo)......................................................................................... 150
7.2 ETHERNET LINE PROTECTION .......................................................................... 151
7.2.1 ELP ..................................................................................................... 152
7.3 LINK AGGREGATION 802.3AD .......................................................................... 153
7.3.1 LAG-Basic ............................................................................................ 154
7.3.2 LAG-STD-MAN ...................................................................................... 156
7.3.3 LAG-STD-HSBY..................................................................................... 158
7.4 LINK DISCOVERY............................................................................................ 160
7.4.1 LLDP - Device Config ............................................................................. 161
7.4.2 LLDP – Device Config Undo .................................................................... 161
7.4.3 LLDP – (Chassis profile) ......................................................................... 161
7.4.4 LLDP – (Timers).................................................................................... 162
MN.00320.E - 013 3
7.4.5 LLDP – (Timers Undo) ........................................................................... 163
7.4.6 LLDP – (Port config) .............................................................................. 163
7.4.7 LLDP – (Port config Undo) ...................................................................... 164
7.4.8 LLDP – TLV (Sys Capability TLV) ............................................................. 165
7.4.9 LLDP – TLV (Sys Capability TLV Undo) ..................................................... 165
7.4.10 LLDP – TLV (Sys Name TLV) ................................................................... 166
7.4.11 LLDP – TLV (Sys Name TLV Undo)........................................................... 166
7.4.12 LLDP – TLV (Sys Desc TLV) .................................................................... 167
7.4.13 LLDP – TLV (Sys Desc TLV Undo) ............................................................ 168
7.4.14 LLDP – TLV (Port Desc TLV).................................................................... 168
7.4.15 LLDP – TLV (Port Desc TLV Undo)............................................................ 169
7.4.16 LLDP – TLV (MNGT Adrs TLV) ................................................................. 169
7.4.17 LLDP – TLV (MNGT Adrs TLV Undo) ......................................................... 170
7.4.18 LLDP – TLV – DOT1 (PortVID TLV)........................................................... 170
7.4.19 LLDP – TLV – DOT1 (PortVID TLV Undo)................................................... 171
7.4.20 LLDP – TLV – DOT1 (ProtVID TLV)........................................................... 171
7.4.21 LLDP – TLV – DOT1 (ProtVID TLV Undo)................................................... 172
7.4.22 LLDP – TLV – DOT1 (VIDName TLV) ........................................................ 173
7.4.23 LLDP – TLV – DOT1 (VIDName TLV Undo) ................................................ 173
7.4.24 LLDP – TLV – DOT1 (MngtVID TLV – V2) .................................................. 174
7.4.25 LLDP – TLV – DOT1 (MngtVID TLV – V2 Undo) .......................................... 174
7.4.26 LLDP – TLV – DOT1 (VIDDgst TLV – V2)................................................... 175
7.4.27 LLDP – TLV – DOT1 (VIDDgst TLV – V2 Undo) .......................................... 175
7.4.28 LLDP – TLV – DOT1 (LAG TLV – V2)......................................................... 176
7.4.29 LLDP – TLV – DOT1 (LAG TLV – V2 Undo) ................................................ 176
7.4.30 LLDP – TLV – DOT3 (MacPhy TVL) ........................................................... 177
7.4.31 LLDP – TLV – DOT3 (MacPhy TVL Undo) ................................................... 177
7.4.32 LLDP – TLV – DOT3 (MaxFrameSize TVL) ................................................. 178
7.4.33 LLDP – TLV – DOT3 (MaxFrameSize TVL Undo) ......................................... 178
7.4.34 LLDP – TLV – DOT3 (LAG TVL – V1)......................................................... 179
7.4.35 LLDP – TLV – DOT3 (LAG TVL – V1 Undo) ................................................ 179
7.5 SPANNING TREE............................................................................................. 180
7.5.1 STP/RSTP-Device Configs....................................................................... 180
7.5.2 STP/RSTP-Device Configs (UNDO) ........................................................... 181
7.5.3 STP/RSTP-Port Configs .......................................................................... 181
7.5.4 STP/RSTP-Port Configs (UNDO)............................................................... 181
7.5.5 RSTP-Port Config .................................................................................. 182
7.5.6 RSTP-Port config (UNDO) ....................................................................... 182
7.6 SERVICE OAM - CONFIGURATION FAULT MANAGEMENT....................................... 183
7.6.1 ECFM IEEE 802.1ag (default) - Device config ............................................ 183
7.6.2 ECFM IEEE 802.1ag (default) - Port config................................................ 184
7.6.3 ITU-T Y.1731 - Device config .................................................................. 184
7.6.4 ITU-T Y.1731 - Port config ..................................................................... 185
7.6.5 Domain, level and service ...................................................................... 186
7.6.6 MEP and MIP ........................................................................................ 186
7.6.7 CCM Activation ..................................................................................... 187
7.6.8 CCM Activation (UNDO) ......................................................................... 188
7.6.9 MEP and MIP (UNDO) ............................................................................ 188
7.6.10 Domain, level and service (UNDO) .......................................................... 189
7.6.11 MEP lowest priority defect notification ...................................................... 189
7.6.12 MEP lowest priority defect notification (default) ......................................... 190
7.6.13 RMEP crosscheck state machine .............................................................. 190
7.6.14 CFM loopback (based on MAC or MPID) .................................................... 191
4 MN.00320.E - 013
7.6.15 CFM traceroute caching enable ............................................................... 191
7.6.16 CFM traceroute caching disable ............................................................... 192
7.6.17 CFM traceroute clear ............................................................................. 192
7.6.18 CFM traceroute (based on MAC or MPID) .................................................. 193
7.6.19 OAM Link Monitor - Start single ended ..................................................... 195
7.6.20 OAM Link Monitor - Stop single ended...................................................... 196
7.6.21 OAM Link Monitor - Show single ended .................................................... 196
7.6.22 OAM Link Monitor - Start dual ended ....................................................... 197
7.6.23 OAM Link Monitor - Stop dual ended ........................................................ 198
7.6.24 OAM Link Monitor - Show dual ended....................................................... 198
7.6.25 OAM Link Monitor - Clear ....................................................................... 199
7.6.26 OAM Frame Delay Measurement - Start one way ....................................... 199
7.6.27 OAM Frame Delay Measurement - Stop one way ....................................... 200
7.6.28 OAM Frame Delay Measurement - Show one way ...................................... 200
7.6.29 OAM Frame Delay Measurement - Start two way ....................................... 201
7.6.30 OAM Frame Delay Measurement - Stop two way ....................................... 202
7.6.31 OAM Frame Delay Measurement - Show two way ...................................... 202
7.6.32 OAM Frame Delay Measurement - Clear ................................................... 203
7.6.33 Ethernet Alarm Indication Signal - Enable ................................................ 203
7.6.34 Ethernet Alarm Indication Signal - Disable................................................ 204
7.6.35 Show Ethernet CFM Service.................................................................... 204
7.6.36 Show Ethernet CFM Error ....................................................................... 205
7.6.37 Ethernet CFM Service - Lock................................................................... 205
7.6.38 Ethernet CFM Service - Unlock ................................................................ 205
7.7 DYNAMIC PROTOCOL ...................................................................................... 206
7.7.1 DHCP-LAO ........................................................................................... 206
7.7.2 DHCP-Enable........................................................................................ 207
7.7.3 DHCP-Disable ....................................................................................... 208
7.8 NETWORK FUNCTIONS .................................................................................... 208
7.8.1 Management C-Tag on port CNP/CEP ....................................................... 208
7.8.2 Static IP routing ................................................................................... 211
7.8.3 Static IP routing (UNDO)........................................................................ 212
7.8.4 MNG access control list .......................................................................... 212
7.9 SNTP ............................................................................................................ 213
7.9.1 Enable SNTP ........................................................................................ 214
7.9.2 Disable SNTP........................................................................................ 214
MN.00320.E - 013 5
8.1.13 Sharper ............................................................................................... 232
8.1.14 Storm Control ...................................................................................... 234
8.1.15 Ethernet CFM ....................................................................................... 234
Section 2.
LISTS AND SERVICES 235
11 ASSISTANCE SERVICE............................................................................................239
6 MN.00320.E - 013
Section 1.
ETHERNET SWITCH CONFIGU-
RATION
1 GENERAL
This manual is intended as a guide to configure Ethernet switch of SIAE equipment using CLI (Command
Line Interface).
The goal of this document is to give a broad overview of the main configuration of SM-OS (Siae Micro-
elettronica - Operation System) and some basic command line.
The features and commands explained in this manual have been validated with the following system ver-
sion of product:
• ALFOplus80HD N40052 01.07.00
MN.00320.E - 013 7
2 ACRONYMS AND DEFINITION
DHCP Dynamic Host Configuration Protocol trTCM two rate Three Colour Marking
Priority Tagged Frames: a tagged frame whose tag header carries priority information, but carries no VLAN
identification information.
8 MN.00320.E - 013
3 EQUIPMENT CONFIGURATION
Into Tab.1 according to the required functionality, it is defined which is the control mode: WebLCT or CLI.
Note: Available WebLCT commands are described into a separate manual.
Radio frequency, Bandwidth and Modulation, ACM WebLCT See WebLCT manual
Ethernet statistics CLI and WebLCT This manual and WebLCT manual
The packet Ethernet incoming into the switch is processed by several stages or logical block represented
by switch functionalities described in this paragraph.
MN.00320.E - 013 9
IN
Ingress Filtering
Ingress Manipulation
Scheduling
Shaping
Egress Manipulation
OUT
Configurable port cross-over (MDI, Crossover functionality (electrical inter- CLI, WEBLCT
MDI-X, auto) face only)
Flow control management 802.3x Flow Control supported for all LAN CLI, WEBLCT
interfaces
Ethernet Line Loop Command to perform the ethernet loop- CLI, WEBLCT
back for cable/SFP testing
10 MN.00320.E - 013
3.1.2 Ingress filtering
Ingress filtering criteria Filtering rules can be applied to prevent selected CLI, WEBLCT
packet types to enter the port.
- Untagged/Priority tagged
- TagType
- Outer VLan ID
MTU size configuration Packet that exceed the configured MTU size are CLI, WEBLCT
dropped.
Admission Control based on provi- In order to prevent malicious way for inject unwant- CLI
sioned source MAC Address ed traffic.(16 static MAC address per each LAN)
Ingress port rate limiting (Storm It shall be possible to configure, per each port, the CLI
control) max rate admitted for the following frame types:
- Broadcast frames
- Multicast frames
- Flooded frames (unknown unicas frames)
Service Instance Mapping Criteria Mapping functionality (at UNI port) allows associat- CLI, WEBLCT
(S-tag addition) ing to all incoming traffic a specific VLAN ID identi-
fying the Ethernet Virtual Connection (EVC).
- Ingress UNI Port: all traffic from the port is
mapped on the same unique EVC;
- User VLAN ID:all traffic associated to one or more
Ctag is mapped on the same EVC
Service Multiplexing (more S per Functionality shall be supported more than one EVC CLI
port) (S-tag) per port
S-tag management Fields are determined on the base of following rules: CLI, WEBLCT
- S-VID: assigned by the user (EVC identifier)
- S-TIP: it is configurable by the user (default value
is 0x88a8).
- S-PCP:
- Assigned by user
- Copy (or more in general Remapping) of Ctag-
PCP
MN.00320.E - 013 11
3.1.4 Classification criteria
Classification Criteria (Internal Classification criteria are used to assign to the pack- CLI, WEBLCT
priority assignment) et and internal priority level that will be mapped to (Ingress port)
a queue.
- Ingress Port
- Outer PCP-bits
- DSCP
- MPLS EXP bits (outer MPLS label)
- DSCP in IP over MPLS
- Outer VID
- C-tag + C-PCP
- S-tag + S-PCP
- S-tag + C-tag
One criterion can be activated at a time, when the
packet does not match the criterion the “port default
priority” is assigned. Port default priority is user con-
figurable.
Bandwidth Profile definition It assures that the traffic respect the bandwidth pro- CLI
file:
- CIR: Committed Information Rate [bits per sec-
ond], guaranteed bandwidth for the service
- EIR: Excess Information Rate [bits per second],
additional bit-rate, if there is no congestion. Note
that the total rate, known as PIR Peak Information
Rate, is the sum of CIR and EIR.
- CBS: Committed Burst Size [Bytes] it limits the
maximum number of bytes available for a burst of
Service Frames sent at the UNI speed to remain
CIR-conformant
- EBS: Excess Burst Size [Bytes] it limits the maxi-
mum number of bytes available for a burst of Ser-
vice Frames sent at the UNI speed to remain EIR-
conformant
trTCM Algorithm MEF has defined a two rate, Three Colour Marker CLI
(trTCM) token bucket algorithm:
- CM (Colour Mode): Colour blind method
12 MN.00320.E - 013
Functionality Description Managed
S-tag remapping (Provide core Remap S-tag value (VID and/or PCP bits) on per CLI
bridge mode only) port basis
Bridge Mode - Customer Bridge (IEEE 802.1q; untag & c-tag) CLI, WEBLCT
- Provider Edge Bridge (c-tag & S-tag)
- Provider Bridge (IEEE 802.1ad, S-tag only)
MAC address table management - Up to 255 VLANs are supported CLI, WEBLCT
- Up to 8192 Mac in MAC Address table
- Learning of MAC address on port basis
- 16 Static Entry
- Ageing: remove out-of-dateMAC entries
- Mac Address table retrieval: it is possible to view
MAC database entries, differentiated in different Da-
tabases When independent learning is in usage
L2TP Management Layer 2 Tunnelling protocol, specify which protocols CLI, WEBLCT in
shall be: read-only
- discard (terminated)
- tunnel (transparent)
- peer (transmitted)
MN.00320.E - 013 13
3.1.8 Queue & congestion avoidance
3.1.9 Scheduling
Tab.10 - Scheduling
Strict Priority The highest priority is served until it is empty and CLI
then next highest priority queue is served and so on.
Mixed strict priority & WRR User can select which queues are to be saved as CLI
strict Priority or WRR
14 MN.00320.E - 013
3.1.10 Egress shaping
MN.00320.E - 013 15
4 CLI CONNECTION TO EQUIPMENT AND SENDING
A SCRIPT
4.1 CONNECTION
CLI connection to equipment is via RS232 console or via LAN with Telnet.
Connection between PC and ALFOplus80HD is with serial console cable (F03594 or F03622 on the field)
into 48V connector.
Connection between PC and AGS-20 with serial console cable (F03588) into front panel Console connector.
4.2 HYPERTERMINAL
Hyperterminal can connect via serial COM1,2,3,etc (Port settings: 115200, 8, None, 1, None) or via TPC/
IP with Telnet. Other settings are shown into Fig.2, Fig.3, Fig.4, Fig.5 and Fig.6.
To send the edited script to the equipment you may simply use the Hyperterminal with the command
Transfer>Send Text File as in Fig.2.
The response from the equipment, for debugging purposes, can be recorded in a file selected with the
menu command Transfer>Capture Text.
16 MN.00320.E - 013
Fig.3 - Select with Hyperterminal a valid COM port
MN.00320.E - 013 17
Fig.5 - Into File>Properties>Settings the selection of ASCII setup
18 MN.00320.E - 013
4.3 CLI LOGIN
With Telnet enter with IP address of equipment, with RS232 just press enter.
When a successful connection is establish, the console replays as follows: SM-OS#. The user root is a read/
write user.
MN.00320.E - 013 19
5 SWITCH PORT IDENTIFICATION
The number of ports associated to interfaces is different for each SM-OS equipment (ALFOplus80HD, AGS-
20, ALFOplus2 and AGS-20 XG).
5.1 ALFOPLUS80HD
ALFOplus80HD port map is shown in Fig.7 and in Tab.13 the relevant port number used with CLI.
LAN1 RADIO
gi 0/10 gi 0/1
LAN2
gi 0/6
On Site MNGT
gi 0/9
20 MN.00320.E - 013
5.2 AGS-20
AGS-20 port map is shown in Fig.8 and in Tab.14 the relevant port number used with CLI.
LAN1
ODU A - LAN A
gi 0/9
gi 0/6
LAN2
gi 0/10 ODU B - LAN B
LAN4 gi 0/7
gi 0/8
ODU C - LAN C
LAN5
gi 0/1
gi 0/4
LAN6
ODU D - LAN D
gi 0/5
gi 0/2
LAN3 (MNGT)
gi 0/3
MN.00320.E - 013 21
5.3 ALFOPLUS2
ALFOplus2 port map is shown in Fig.9 and in Tab.15 the relevant port number used with CLI.
LAN1
gi 0/7
LAN2
gi 0/9 TRx
LAN3 gi 0/3
gi 0/6
LAN4
gi 0/5
MNGT
gi 0/4
22 MN.00320.E - 013
5.4 AGS-20 XG
AGS-20 XG port map is shown in Fig.10 and in Tab.16 the relevant port number used with CLI.
LAN1
ODU A
gi 0/2
gi 0/7
LAN2
gi 0/3 ODU B
LAN4 gi 0/8
gi 0/5
ODU C
XG LAN1
gi 0/1
ex 0/4
XG LAN2
ODU D
ex 0/5
gi 0/6
LAN3 (MNGT)
gi 0/4
MN.00320.E - 013 23
6 SWITCH CONFIGURATION
1. Define into your Scenario which is the Bridge mode of your equipment: CB or PB or PEB and select
corresponding script
2. Select the Management VLan1 Modifications, copy and paste into your Notepad++ window.
Note: copy, from PDF, page by page to avoid to mix script text with this manual number.
3. Choose one of MANAGEMENT schemes, select the correct script example, copy and paste into your
Notepad++ window.
Note: copy, from PDF page, by page to avoid to mix script text with this manual number.
6. Go to the Scenario you already decided to use, copy and paste into your Notepad++ window.
Note: copy from PDF page by page to avoid to mix script text with this manual number.
24 MN.00320.E - 013
6.1 BRIDGE MODE
The first choice in the configuration of the switch must be to decide which Bridge mode should be applied:
L2 Ethernet level shall be configured to comply with different bridge modes according to IEEE 802.1ad.
#CONTEXT-ENTRY
configure terminal
#CONTEXT::SM-OS(config)#
###############################################################################
# Script name: SYS-CB
#
# Rev.0001
# (siae microelettronica)
################################################################+##############
set front-panel port-count 10
set gmrp disable; set gvrp disable; shutdown garp
shutdown spanning-tree
no ethernet cfm start
#============================================================================
bridge-mode customer
exit
show vlan device info
show spanning-tree
#==============================================================================
#CONTEXT-EXIT
#CONTEXT-ENTRY
configure terminal
#CONTEXT::SM-OS(config)#
###############################################################################
# Script name: SYS-PEB
#
# Rev.0001
# (siae microelettronica)
################################################################+##############
set front-panel port-count 10
set gmrp disable; set gvrp disable; shutdown garp
shutdown spanning-tree
no ethernet cfm start
MN.00320.E - 013 25
#============================================================================
bridge-mode provider-edge
exit
show vlan device info
show spanning-tree
#==============================================================================
#CONTEXT-EXIT
#CONTEXT-ENTRY
configure terminal
#CONTEXT::SM-OS(config)#
###############################################################################
# Script name: SYS-PB
#
# Rev.0002
# (siae microelettronica)
################################################################+##############
set front-panel port-count 10
set gmrp disable; set gvrp disable; shutdown garp
shutdown spanning-tree
no ethernet cfm start
#============================================================================
# .1ad provider <-> provider-core
bridge-mode provider-core
exit
show vlan device info
show spanning-tree
#==============================================================================
#CONTEXT-EXIT
In case of VLan1 is NOT the management Vlan, script SYS-MNGT-MFYa must be sent in order to increase
isolation conditions between management ports and payload ports.
#CONTEXT-ENTRY
configure terminal
#CONTEXT::SM-OS(config)#
#########################################################################
# Script name: SYS-MNGT-MFYa
# - Management Vlan modification.
# THE EXISTING MANAGEMENT VLAN IS NOT ‘vlan 1’.
#
# Rev.0004a
# (siae microelettronica)
26 MN.00320.E - 013
##########################################################+##############
#========================================================================
vlan 1
# default vlan 1 cannot be deleted:
# leave it without memberports.
ports <MNGT_OnS> name default1; no ports <MNGT_OnS>
exit
exit
#========================================================================
#CONTEXT-EXIT
All the port with InBand management must be configured for this purpose.
In the follow are listed several possible scripts to configure the ports available for management depending
on the management scheme listed below (in band, out of band, etc) and depending on the bridge mode of
the unit (Customer Bridge, Provider Bridge or Provider Edge Bridge) and on the tagged mode of the traffic
itself (untagged, C-tagged, S-tagged).
Management scheme:
• Local, On site: management of local unit (and of remote unit) through OnSite-Mngt port. Traffic on
LAN1 and LAN2 ports.
On-SITE CB (LOCAL ONLY, Untagged) Script name: SYS-CB-OnS_LOU
On-SITE CB (LOCAL ONLY, C-tagged) Script name: SYS-CB-OnS_LOT
On-SITE PEB (LOCAL ONLY, Untagged) Script name: SYS-PEB-OnS_LOU
On-SITE PEB (LOCAL ONLY, S-tagged) Script name: SYS-PEB-OnS_LOT
On-SITE CB (RADIO LINK, Untagged) Script name: SYS-CB-OnS_LKU
On-SITE CB (RADIO LINK, C-tagged) Script name: SYS-CB-OnS_LKT
On-SITE PEB (RADIO LINK, Untagged) Script name: SYS-PEB-OnS_LKU
On-SITE PEB (RADIO LINK, S-tagged) Script name: SYS-PEB-OnS_LKT
• Emulated Out Of Band: through LAN2 port the local unit is managed and through a VLAN (default
LAN2 port Vid) the remote can be managed (emulated out of band). Traffic on LAN1 port.
EOOB CB (Untagged) Script name: SYS-CB-EOB_U
EOOB PEB (Untagged) Script name: SYS-PEB-EOB_U
• Emulated Out Of Band + On Site: through LAN2 port the local unit is managed and through a VLAN
(default LAN2 port Vid) the remote can be managed (…emulated out of band). Also OnSite-Mngt
port can be used. Traffic on LAN1 port.
• In Band LAN1: through LAN1 port the local unit is In Band managed (In Band= management in a
dedicated VLAN) and through the Radio Port the remote unit can be managed in In Band mode. The
traffic runs on LAN1 and LAN2 ports.
INB CB (LANx, C-tagged), EOOB CB (LAN2, C_tagged) Script name: SYS-CB-XXB_T
INB PEB/PB (LANx, S-tagged), EOOB PEB/PB (LAN2, S_tagged)Script name: SYS-PEB-XXB_T
MN.00320.E - 013 27
• In Band LAN2: through LAN2 port the local unit is In Band managed (In Band= management in a
dedicated VLAN) and through the Radio Port the remote unit can be managed in In Band mode. The
traffic runs on LAN1 and LAN2 ports.
C-Tagged See Script SYS-CB-XXB_T and
change port number.
S-Tagged See Script SYS-PEB-XXB_T and
change port number.
• In Band LAN1 and LAN2: through LAN1 port and LAN2 port the local unit is In Band managed (In
Band= management in a dedicated VLAN) and through the Radio Port the remote unit can be man-
aged in In Band mode. Traffic on LAN1 and LAN2 ports.
INB CB (LAN1&2, C-tagged) Script name: SYS-CB-INB_T
INB CB (LAN1&2, S-tagged) Script name: SYS-PEBB-XXB_T
LOCAL
# CPU
# +----o----+
# | | |
# Lan1 –o | o- Radio
# | | |
# Lan2 –o | o- MNGT-OoB n/a.
# +----o----+
# |
# MNGT-OnS
LINK
# CPU
# +----o----+
# | | |
# Lan1 –o +--- o- Radio-SHARED
# | | |
# Lan2 –o | o- MNGT-OoB n/a.
# +----o----+
# |
# MNGT-OnS
28 MN.00320.E - 013
Emulated Out Of Band + OnSite
#
# CPU
# +----o----+
# | | |
# Lan1 –o . -+--- o- Radio-SHARED
# | / | |
# MNGT-Lan2 –o- | o- MNGT-OoB n/a.
# +----o----+
# |
# MNGT-OnS
In Band Lan1
#
# CPU
# +----o----+
# | | |
# SHARED-Lan1 –o----+----o- Radio-SHARED
# | |
# Lan2 –o o- MNGT-OoB n/a.
# +----o----+
# |
# MNGT-OnS
In Band Lan2
#
# CPU
# +----o----+
# | | |
# Lan1 –o . -+----o- Radio-SHARED
# | / |
# SHARED-Lan2 –o- o- MNGT-OoB n/a.
# +----o----+
# |
# MNGT-OnS
In Band Lan1&2
#
# CPU
# +----o----+
# | | |
# SHARED-Lan1 –o--.-+----o- Radio-SHARED
# | / |
# SHARED-Lan2 –o— o- MNGT-OoB n/a.
# +----o----+
# |
# MNGT-OnS
MN.00320.E - 013 29
In Band Lan2 + OnSite (segr.: OnS -> Lan1&2)
#
# CPU
# +----o----+
# | | |
# Lan1 –o . -+----o- Radio-SHARED
# | / | |
# SHARED-Lan2 –o- | o- MNGT-OoB n/a.
# +----o----+
# |
# MNGT-OnS
In Band Lan1 + Drop Node Lan2 + OnSite (segr.: OnS -> Lan1&2)
#
# CPU
# +----o----+
# | | |
# SHARED-Lan1 –o--.-+----o- Radio-SHARED
# | / | |
# MNGT-Lan2 –o- | o- MNGT-OoB n/a.
# +----o----+
# |
# MNGT-OnS
30 MN.00320.E - 013
6.3.1 On-Site CB (Local only, untagged)
#CONTEXT-ENTRY
configure terminal
#CONTEXT::SM-OS(config)#
#########################################################################
# Script name: SYS-CB-OnS_LOU
# <MNGT_VLAN>: default is 1.
#
# CPU
# +---o---+
# Lan1 -o | |
# | | o- Radio
# Lan2 -o | |
# +---o---+
# |
# MNGT-OnS
# Rev.0006a
# (siae microelettronica)
##########################################################+##############
#========================================================================
interface <MNGT-OnS>
no shutdown
exit
vlan <MNGT_VLAN>
ports <MNGT-OnS> untagged <MNGT-OnS> name mngt1
exit
default ip vlan id <MNGT_VLAN>
default ip address <DOT_IP_ADRS> subnet-mask <DOT_IP_MASK>
default gateway route <DOT_IP_GATEWAY>
interface <MNGT-OnS>
switchport priority default 7
switchport ingress-filter
exit
#----------------------------------------------------------------------
#----------------------------------------------------------------------
interface <LAN1>
switchport ingress-filter
exit
interface <LAN2>
switchport ingress-filter
exit
interface <RADIO>
switchport ingress-filter
exit
exit
#========================================================================
# To make effective the above ‘default’ commands,
# following commands must be launched.
set hitless-restart enable
sleep 5
reload
#========================================================================
#CONTEXT-EXIT
MN.00320.E - 013 31
6.3.2 On-Site CB (Local only, C-tagged)
#CONTEXT-ENTRY
configure terminal
#CONTEXT::SM-OS(config)#
#########################################################################
# Script name: SYS-CB-OnS_LOT
# <MNGT_VLAN>: default is 1.
#
# CPU
# +---o---+
# Lan1 -o | |
# | | o- Radio
# Lan2 -o | |
# +---o---+
# |
# MNGT-OnS
# Rev.0005a
# (siae microelettronica)
##########################################################+##############
#========================================================================
interface <MNGT-OnS>
no shutdown
exit
vlan <MNGT_VLAN>
ports <MNGT-OnS> name mngt1
exit
default ip vlan id <MNGT_VLAN>
default ip address <DOT_IP_ADRS> subnet-mask <DOT_IP_MASK>
default gateway route <DOT_IP_GATEWAY>
#To redirect mng packets to the higher queue
mac access-list extended 1
permit any any vlan <MNGT_VLAN>
exit
interface <MNGT-OnS>
switchport ingress-filter
mac access-group 1 in
exit
class-map 10
match access-group mac-access-list 1
set class 10 regen-priority 7 group-name mng_group_1
exit
#----------------------------------------------------------------------
#----------------------------------------------------------------------
interface <LAN1>
switchport ingress-filter
exit
interface <LAN2>
switchport ingress-filter
exit
interface <RADIO>
switchport ingress-filter
exit
exit
#========================================================================
32 MN.00320.E - 013
# To make effective the above ‘default’ commands,
# following commands must be launched.
set hitless-restart enable
sleep 5
reload
#========================================================================
#CONTEXT-EXIT
#CONTEXT-ENTRY
configure terminal
#CONTEXT::SM-OS(config)#
##########################################################################
# Script name: SYS-PEB-OnS_LOU
# <MNGT_VLAN>: default is 1.
#
# CPU
# +---o---+
# Lan1 -o | |
# | | o- Radio
# Lan2 -o | |
# +---o---+
# |
# MNGT-OnS
# Rev.0008a
# (siae microelettronica)
###########################################################+##############
#=========================================================================
interface <MNGT-OnS>
bridge port-type propProviderNetworkPort
no shutdown
exit
vlan <MNGT_VLAN>
ports <MNGT-OnS> untagged <MNGT-OnS> name mngt1
exit
default ip vlan id <MNGT_VLAN>
default ip address <DOT_IP_ADRS> subnet-mask <DOT_IP_MASK>
default gateway route <DOT_IP_GATEWAY>
interface <MNGT-OnS>
switchport priority default 7
switchport ingress-filter
exit
#-----------------------------------------------------------------------
#-----------------------------------------------------------------------
interface <LAN1>
switchport ingress-filter
exit
interface <LAN2>
switchport ingress-filter
exit
interface <RADIO>
switchport ingress-filter
MN.00320.E - 013 33
exit
exit
#========================================================================
# To make effective the above ‘default’ commands,
# following commands must be launched.
set hitless-restart enable
sleep 5
reload
#========================================================================
#CONTEXT-EXIT
#CONTEXT-ENTRY
configure terminal
#CONTEXT::SM-OS(config)#
#########################################################################
# Script name: SYS-PEB-OnS_LOT
# <MNGT_VLAN>: default is 1.
# CPU
# +---o---+
# Lan1 -o | |
# | | o- Radio
# Lan2 -o | |
# +---o---+
# |
# MNGT-OnS
# Rev.0005a
# (siae microelettronica)
##########################################################+##############
#========================================================================
interface <MNGT-OnS>
bridge port-type providerNetworkPort
no shutdown
exit
vlan <MNGT_VLAN>
ports <MNGT-OnS> name mngt1
exit
default ip vlan id <MNGT_VLAN>
default ip address <DOT_IP_ADRS> subnet-mask <DOT_IP_MASK>
default gateway route <DOT_IP_GATEWAY>
#To redirect mng packets to the higher queue
mac access-list extended 1
permit any any vlan <MNGT_VLAN>
exit
interface <MNGT-OnS>
switchport ingress-filter
mac access-group 1 in
exit
class-map 10
match access-group mac-access-list 1
set class 10 regen-priority 7 group-name mng_group_1
exit
34 MN.00320.E - 013
#----------------------------------------------------------------------
#----------------------------------------------------------------------
interface <LAN1>
switchport ingress-filter
exit
interface <LAN2>
switchport ingress-filter
exit
interface <RADIO>
switchport ingress-filter
exit
exit
#========================================================================
# To make effective the above ‘default’ commands,
# following commands must be launched.
set hitless-restart enable
sleep 5
reload
#========================================================================
#CONTEXT-EXIT
#CONTEXT-ENTRY
configure terminal
#CONTEXT::SM-OS(config)#
#########################################################################
# Script name: SYS-CB-OnS_LKU
# <MNGT_VLAN>: default is 1.
#
# CPU
# +---o---+
# Lan1 -o | |
# | +---o- Radio
# Lan2 -o | |
# +---o---+
# |
# MNGT-OnS
# Rev.0005a
# (siae microelettronica)
##########################################################+##############
#========================================================================
interface <MNGT-OnS>
no shutdown
exit
vlan <MNGT_VLAN>
ports <MNGT-OnS> untagged <MNGT-OnS> name mngt1
ports add <RADIO>
exit
default ip vlan id <MNGT_VLAN>
default ip address <DOT_IP_ADRS> subnet-mask <DOT_IP_MASK>
default gateway route <DOT_IP_GATEWAY>
interface <MNGT-OnS>
MN.00320.E - 013 35
switchport priority default 7
switchport ingress-filter
exit
#----------------------------------------------------------------------
#----------------------------------------------------------------------
interface <LAN1>
switchport ingress-filter
exit
interface <LAN2>
switchport ingress-filter
exit
interface <RADIO>
switchport ingress-filter
exit
exit
#========================================================================
# To make effective the above ‘default’ commands,
# following commands must be launched.
set hitless-restart enable
sleep 5
reload
#========================================================================
#CONTEXT-EXIT
#CONTEXT-ENTRY
configure terminal
#CONTEXT::SM-OS(config)#
#########################################################################
# Script name: SYS-CB-OnS_LKT
# <MNGT_VLAN>: default is 1.
#
# CPU
# +---o---+
# Lan1 -o | |
# | +---o- Radio
# Lan2 -o | |
# +---o---+
# |
# MNGT-OnS
# Rev.0005a
# (siae microelettronica)
##########################################################+##############
#========================================================================
interface <MNGT-OnS>
no shutdown
exit
vlan <MNGT_VLAN>
ports <MNGT-OnS> name mngt1
ports add <RADIO>
exit
default ip vlan id <MNGT_VLAN>
36 MN.00320.E - 013
default ip address <DOT_IP_ADRS> subnet-mask <DOT_IP_MASK>
default gateway route <DOT_IP_GATEWAY>
#To redirect mng packets to the higher queue
mac access-list extended 1
permit any any vlan <MNGT_VLAN>
exit
interface <MNGT-OnS>
switchport ingress-filter
mac access-group 1 in
exit
class-map 10
match access-group mac-access-list 1
set class 10 regen-priority 7 group-name mng_group_1
exit
#----------------------------------------------------------------------
#----------------------------------------------------------------------
interface <LAN1>
switchport ingress-filter
exit
interface <LAN2>
switchport ingress-filter
exit
interface <RADIO>
switchport ingress-filter
exit
exit
#========================================================================
# To make effective the above ‘default’ commands,
# following commands must be launched.
set hitless-restart enable
sleep 5
reload
#========================================================================
#CONTEXT-EXIT
#CONTEXT-ENTRY
configure terminal
#CONTEXT::SM-OS(config)#
#########################################################################
# Script name: SYS-PEB-OnS_LKU
# <MNGT_VLAN>: default is 1.
#
# CPU
# +---o---+
# Lan1 -o | |
# | +---o- Radio
# Lan2 -o | |
# +---o---+
# |
# MNGT-OnS
# Rev.0008a
MN.00320.E - 013 37
# (siae microelettronica)
##########################################################+##############
#========================================================================
interface <MNGT-OnS>
bridge port-type propProviderNetworkPort
no shutdown
exit
vlan <MNGT_VLAN>
ports <MNGT-OnS> untagged <MNGT-OnS> name mngt1
ports add <RADIO>
exit
default ip vlan id <MNGT_VLAN>
default ip address <DOT_IP_ADRS> subnet-mask <DOT_IP_MASK>
default gateway route <DOT_IP_GATEWAY>
interface <MNGT-OnS>
switchport priority default 7
switchport ingress-filter
exit
#----------------------------------------------------------------------
#----------------------------------------------------------------------
interface <LAN1>
switchport ingress-filter
exit
interface <LAN2>
switchport ingress-filter
exit
interface <RADIO>
switchport ingress-filter
exit
exit
#========================================================================
# To make effective the above ‘default’ commands,
# following commands must be launched.
set hitless-restart enable
sleep 5
reload
#========================================================================
#CONTEXT-EXIT
#CONTEXT-ENTRY
configure terminal
#CONTEXT::SM-OS(config)#
#########################################################################
# Script name: SYS-PEB-OnS_LKT
# <MNGT_VLAN>: default is 1.
#
# CPU
# +---o---+
# Lan1 -o | |
# | +---o- Radio
38 MN.00320.E - 013
# Lan2 -o | |
# +---o---+
# |
# MNGT-OnS
# Rev.0005a
# (siae microelettronica)
##########################################################+##############
#========================================================================
interface <MNGT-OnS>
bridge port-type providerNetworkPort
no shutdown
exit
vlan <MNGT_VLAN>
ports <MNGT-OnS> name mngt1
ports add <RADIO>
exit
default ip vlan id <MNGT_VLAN>
default ip address <DOT_IP_ADRS> subnet-mask <DOT_IP_MASK>
default gateway route <DOT_IP_GATEWAY>
#To redirect mng packets to the higher queue
mac access-list extended 1
permit any any vlan <MNGT_VLAN>
exit
interface <MNGT-OnS>
switchport ingress-filter
mac access-group 1 in
exit
class-map 10
match access-group mac-access-list 1
set class 10 regen-priority 7 group-name mng_group_1
exit
#----------------------------------------------------------------------
#----------------------------------------------------------------------
interface <LAN1>
switchport ingress-filter
exit
interface <LAN2>
switchport ingress-filter
exit
interface <RADIO>
switchport ingress-filter
exit
exit
#========================================================================
# To make effective the above ‘default’ commands,
# following commands must be launched.
set hitless-restart enable
sleep 5
reload
#========================================================================
#CONTEXT-EXIT
MN.00320.E - 013 39
6.3.9 EOOB CB (untagged)
#CONTEXT-ENTRY
configure terminal
#CONTEXT::SM-OS(config)#
#########################################################################
# Script name: SYS-CB-EOB_U
# <MNGT_VLAN>: default is 1.
#
# EOOB-LAN2: <I>=gigabitethernet 0/6
# CPU
# +---o---+
# | | |
# <I>-o---+---o- Radio
# | |
# +---o---+
# |
# MNGT-OnS
# Rev.0004a
# (siae microelettronica)
#########################################################################
#========================================================================
interface <I>
no shutdown
exit
vlan <MNGT_VLAN>
ports <I> untagged <I> name mngt1
ports add <RADIO>
exit
default ip vlan id <MNGT_VLAN>
default ip address <DOT_IP_ADRS> subnet-mask <DOT_IP_MASK>
default gateway route <DOT_IP_GATEWAY>
interface <I>
switchport priority default 7
exit
#To redirect mng packets to the higher queue
mac access-list extended 1
permit any any vlan <MNGT_VLAN>
exit
interface <RADIO>
mac access-group 1 in
exit
class-map 10
match access-group mac-access-list 1
set class 10 regen-priority 7 group-name mng_group_1
exit
#----------------------------------------------------------------------
#----------------------------------------------------------------------
interface <LAN1>
switchport ingress-filter
exit
interface <LAN2>
switchport ingress-filter
exit
interface <RADIO>
40 MN.00320.E - 013
switchport ingress-filter
exit
exit
#========================================================================
# To make effective the above ‘default’ commands,
# following commands must be launched.
set hitless-restart enable
sleep 5
reload
#========================================================================
#CONTEXT-EXIT
MN.00320.E - 013 41
6.3.10 EOOB PEB/PB (untagged)
#CONTEXT-ENTRY
configure terminal
#CONTEXT::SM-OS(config)#
#########################################################################
# Script name: SYS-PEB-EOB_U
# <MNGT_VLAN>: default is 1.
# EOOB-LAN2: <I>=gigabitethernet 0/6
# CPU
# +---o---+
# | | |
# <I>-o---+---o- Radio
# | |
# +---o---+
# |
# MNGT-OnS
# Rev.0008a
# (siae microelettronica)
##########################################################+##############
#========================================================================
interface <I>
bridge port-type propProviderNetworkPort
no shutdown
exit
vlan <MNGT_VLAN>
ports <I> untagged <I> name mngt1
ports add <RADIO>
exit
default ip vlan id <MNGT_VLAN>
default ip address <DOT_IP_ADRS> subnet-mask <DOT_IP_MASK>
default gateway route <DOT_IP_GATEWAY>
interface <I>
switchport priority default 7
exit
#----------------------------------------------------------------------
#----------------------------------------------------------------------
interface <LAN1>
switchport ingress-filter
exit
interface <LAN2>
switchport ingress-filter
exit
interface <RADIO>
switchport ingress-filter
exit
exit
#========================================================================
# To make effective the above ‘default’ commands,
# following commands must be launched.
set hitless-restart enable
sleep 5
reload
#========================================================================
#CONTEXT-EXIT
42 MN.00320.E - 013
6.3.11 INB CB (LANx, C-tagged), EOOB CB (LAN2, C-tagged)
#CONTEXT-ENTRY
configure terminal
#CONTEXT::SM-OS(config)#
#########################################################################
# Script name: SYS-CB-XXB_T
# <MNGT_VLAN>: default is 1.
#
# INB-LAN1: <I>=gigabitethernet 0/10
# INB-LAN2: <I>=gigabitethernet 0/6
# EOOB-LAN2: <I>=gigabitethernet 0/6
# CPU
# +---o---+
# | | |
# <I>-o---+---o- Radio
# | |
# +---o---+
# |
# MNGT-OnS
# Rev.0005a
# (siae microelettronica)
##########################################################+##############
#========================================================================
interface <I>
no shutdown
exit
vlan <MNGT_VLAN>
ports <I> name mngt1
ports add <RADIO>
exit
default ip vlan id <MNGT_VLAN>
default ip address <DOT_IP_ADRS> subnet-mask <DOT_IP_MASK>
default gateway route <DOT_IP_GATEWAY>
#To redirect mng packets to the higher queue
mac access-list extended 1
permit any any vlan <MNGT_VLAN>
exit
mac access-list extended 2
permit any any vlan <MNGT_VLAN>
exit
interface <I>
mac access-group 1 in
exit
interface <RADIO>
mac access-group 2 in
exit
class-map 10
match access-group mac-access-list 1
set class 10 regen-priority 7 group-name mng_group_1
exit
class-map 20
match access-group mac-access-list 2
set class 20 regen-priority 7 group-name mng_group_2
exit
MN.00320.E - 013 43
#----------------------------------------------------------------------
#----------------------------------------------------------------------
interface <LAN1>
switchport ingress-filter
exit
interface <LAN2>
switchport ingress-filter
exit
interface <RADIO>
switchport ingress-filter
exit
exit
#========================================================================
# To make effective the above ‘default’ commands,
# following commands must be launched.
set hitless-restart enable
sleep 5
reload
#========================================================================
#CONTEXT-EXIT
#CONTEXT-ENTRY
configure terminal
#CONTEXT::SM-OS(config)#
#########################################################################
# Script name: SYS-PEB-XXB_T
# <MNGT_VLAN>: default is 1.
#
# INB-LAN1: <I>=gigabitethernet 0/10
# INB-LAN2: <I>=gigabitethernet 0/6
# EOOB-LAN2: <I>=gigabitethernet 0/6
# CPU
# +---o---+
# | | |
# <I>-o---+---o- Radio
# | |
# +---o---+
# |
# MNGT-OnS
# Rev.0005a
# (siae microelettronica)
##########################################################+##############
#========================================================================
interface <I>
bridge port-type providerNetworkPort
no shutdown
exit
vlan <MNGT_VLAN>
ports <I> name mngt1
ports add <RADIO>
exit
44 MN.00320.E - 013
default ip vlan id <MNGT_VLAN>
default ip address <DOT_IP_ADRS> subnet-mask <DOT_IP_MASK>
default gateway route <DOT_IP_GATEWAY>
#To redirect mng packets to the higher queue
mac access-list extended 1
permit any any vlan <MNGT_VLAN>
exit
mac access-list extended 2
permit any any vlan <MNGT_VLAN>
exit
interface <I>
mac access-group 1 in
exit
interface <RADIO>
mac access-group 2 in
exit
class-map 10
match access-group mac-access-list 1
set class 10 regen-priority 7 group-name mng_group_1
exit
class-map 20
match access-group mac-access-list 2
set class 20 regen-priority 7 group-name mng_group_2
exit
#----------------------------------------------------------------------
#----------------------------------------------------------------------
interface <LAN1>
switchport ingress-filter
exit
interface <LAN2>
switchport ingress-filter
exit
interface <RADIO>
switchport ingress-filter
exit
exit
#========================================================================
# To make effective the above ‘default’ commands,
# following commands must be launched.
set hitless-restart enable
sleep 5
reload
#========================================================================
#CONTEXT-EXIT
MN.00320.E - 013 45
6.3.13 INB CB (LAN1&2, C-tagged)
#CONTEXT-ENTRY
configure terminal
#CONTEXT::SM-OS(config)#
#########################################################################
# Script name: SYS-CB-INB_T
# <MNGT_VLAN>: default is 1.
#
# INB-LAN1&2: <I1>=gigabitethernet 0/10, <I2>=gigabitethernet 0/6
#
# CPU
# +---o---+
# <I1>-o. | |
# | >-+-- o- Radio
# <I2>-o’ |
# +---o---+
# |
# MNGT-OnS
# Rev.0005a
# (siae microelettronica)
##########################################################+##############
#========================================================================
interface <I1>
no shutdown
exit
interface <I2>
no shutdown
exit
vlan <MNGT_VLAN>
ports <I1> <I2> name mngt1
ports add <RADIO>
exit
default ip vlan id <MNGT_VLAN>
default ip address <DOT_IP_ADRS> subnet-mask <DOT_IP_MASK>
default gateway route <DOT_IP_GATEWAY>
#To redirect mng packets to the higher queue
mac access-list extended 1
permit any any vlan <MNGT_VLAN>
exit
mac access-list extended 2
permit any any vlan <MNGT_VLAN>
exit
mac access-list extended 3
permit any any vlan <MNGT_VLAN>
exit
interface <I1>
mac access-group 1 in
exit
interface <I2>
mac access-group 2 in
exit
interface <RADIO>
mac access-group 3 in
exit
46 MN.00320.E - 013
class-map 10
match access-group mac-access-list 1
set class 10 regen-priority 7 group-name mng_group_1
exit
class-map 20
match access-group mac-access-list 2
set class 20 regen-priority 7 group-name mng_group_2
exit
class-map 30
match access-group mac-access-list 3
set class 30 regen-priority 7 group-name mng_group_3
exit
#----------------------------------------------------------------------
interface <LAN1>
switchport ingress-filter
exit
interface <LAN2>
switchport ingress-filter
exit
interface <RADIO>
switchport ingress-filter
exit
exit
#========================================================================
# To make effective the above ‘default’ commands,
# following commands must be launched.
set hitless-restart enable
sleep 5
reload
#========================================================================
#CONTEXT-EXIT
#CONTEXT-ENTRY
configure terminal
#CONTEXT::SM-OS(config)#
#########################################################################
# Script name: SYS-PEBB-XXB_T
# <MNGT_VLAN>: default is 1.
#
# INB-LAN1&2: <I1>=gigabitethernet 0/10, <I2>=gigabitethernet 0/6
#
# CPU
# +---o---+
# <I1>-o. | |
# | >-+-- o- Radio
# <I2>-o’ |
# +---o---+
# |
# MNGT-OnS
# Rev.0005a
# (siae microelettronica)
MN.00320.E - 013 47
##########################################################+##############
#========================================================================
interface <I1>
bridge port-type providerNetworkPort
no shutdown
exit
interface <I2>
bridge port-type providerNetworkPort
no shutdown
exit
vlan <MNGT_VLAN>
ports <I1> <I2> name mngt1
ports add <RADIO>
exit
default ip vlan id <MNGT_VLAN>
default ip address <DOT_IP_ADRS> subnet-mask <DOT_IP_MASK>
default gateway route <DOT_IP_GATEWAY>
#To redirect mng packets to the higher queue
mac access-list extended 1
permit any any vlan <MNGT_VLAN>
exit
mac access-list extended 2
permit any any vlan <MNGT_VLAN>
exit
mac access-list extended 3
permit any any vlan <MNGT_VLAN>
exit
interface <I1>
mac access-group 1 in
exit
interface <I2>
mac access-group 2 in
exit
interface <RADIO>
mac access-group 3 in
exit
class-map 10
match access-group mac-access-list 1
set class 10 regen-priority 7 group-name mng_group_1
exit
class-map 20
match access-group mac-access-list 2
set class 20 regen-priority 7 group-name mng_group_2
exit
class-map 30
match access-group mac-access-list 3
set class 30 regen-priority 7 group-name mng_group_3
exit
#-----------------------------------------------------------------------
interface <LAN1>
switchport ingress-filter
exit
interface <LAN2>
48 MN.00320.E - 013
switchport ingress-filter
exit
interface <RADIO>
switchport ingress-filter
exit
exit
#========================================================================
# To make effective the above ‘default’ commands,
# following commands must be launched.
set hitless-restart enable
sleep 5
reload
#========================================================================
#CONTEXT-EXIT
#CONTEXT-ENTRY
configure terminal
#CONTEXT::SM-OS(config)#
#########################################################################
# Script name: SYS-CB-INB_T-OnS_LOU
# <MNGT_VLAN>: default is 1.
#
# INB-LAN1&2: <I1>=gigabitethernet 0/10, <I2>=gigabitethernet 0/6
#
# CPU
# +---o---+
# <I1>-o. | |
# | >-+-- o- Radio
# <I2>-o’ | |
# +---o---+
# |
# MNGT-OnS
# Rev.0005a
# (siae microelettronica)
##########################################################+##############
#========================================================================
interface <MNGT-OnS>
no shutdown
exit
interface <I1>
no shutdown
exit
interface <I2>
no shutdown
exit
MN.00320.E - 013 49
vlan <MNGT_VLAN>
ports <I1> <I2> name mngt1
ports add <RADIO>
ports add <MNGT-OnS> untagged <MNGT-OnS>
exit
default ip vlan id <MNGT_VLAN>
default ip address <DOT_IP_ADRS> subnet-mask <DOT_IP_MASK>
default gateway route <DOT_IP_GATEWAY>
interface <MNGT-OnS>
switchport priority default 7
switchport ingress-filter
exit
#To redirect mng packets to the higher queue
mac access-list extended 1
permit any any vlan <MNGT_VLAN>
exit
mac access-list extended 2
permit any any vlan <MNGT_VLAN>
exit
mac access-list extended 3
permit any any vlan <MNGT_VLAN>
exit
interface <I1>
mac access-group 1 in
exit
interface <I2>
mac access-group 2 in
exit
interface <RADIO>
mac access-group 3 in
exit
class-map 10
match access-group mac-access-list 1
set class 10 regen-priority 7 group-name mng_group_1
exit
class-map 20
match access-group mac-access-list 2
set class 20 regen-priority 7 group-name mng_group_2
exit
class-map 30
match access-group mac-access-list 3
set class 30 regen-priority 7 group-name mng_group_3
exit
#----------------------------------------------------------------------
#----------------------------------------------------------------------
interface <LAN1>
switchport ingress-filter
exit
interface <LAN2>
switchport ingress-filter
exit
interface <RADIO>
switchport ingress-filter
50 MN.00320.E - 013
exit
exit
#========================================================================
# To make effective the above ‘default’ commands,
# following commands must be launched.
set hitless-restart enable
sleep 5
reload
#========================================================================
#CONTEXT-EXIT
MN.00320.E - 013 51
6.4.2 INB + On-site PEB/PB (LAN1&2, S-tagged/OnS, untagged)
#CONTEXT-ENTRY
configure terminal
#CONTEXT::SM-OS(config)#
#########################################################################
# Script name: SYS-PEB-XXB_T-OnS_LOU
# <MNGT_VLAN>: default is 1.
#
# INB-LAN1&2: <I1>=gigabitethernet 0/10, <I2>=gigabitethernet 0/6
#
# CPU
# +---o---+
# <I1>-o. | |
# | >-+-- o- Radio
# <I2>-o’ | |
# +---o---+
# |
# MNGT-OnS
# Rev.0005a
# (siae microelettronica)
##########################################################+##############
#========================================================================
interface <MNGT-OnS>
bridge port-type propProviderNetworkPort
no shutdown
exit
interface <I1>
bridge port-type providerNetworkPort
no shutdown
exit
interface <I2>
bridge port-type providerNetworkPort
no shutdown
exit
vlan <MNGT_VLAN>
ports <I1> <I2> name mngt1
ports add <RADIO>
ports add <MNGT-OnS> untagged <MNGT-OnS>
exit
default ip vlan id <MNGT_VLAN>
default ip address <DOT_IP_ADRS> subnet-mask <DOT_IP_MASK>
default gateway route <DOT_IP_GATEWAY>
interface <MNGT-OnS>
switchport priority default 7
switchport ingress-filter
exit
#To redirect mng packets to the higher queue
mac access-list extended 1
permit any any vlan <MNGT_VLAN>
exit
mac access-list extended 2
permit any any vlan <MNGT_VLAN>
exit
52 MN.00320.E - 013
mac access-list extended 3
permit any any vlan <MNGT_VLAN>
exit
interface <I1>
mac access-group 1 in
exit
interface <I2>
mac access-group 2 in
exit
interface <RADIO>
mac access-group 3 in
exit
class-map 10
match access-group mac-access-list 1
set class 10 regen-priority 7 group-name mng_group_1
exit
class-map 20
match access-group mac-access-list 2
set class 20 regen-priority 7 group-name mng_group_2
exit
class-map 30
match access-group mac-access-list 3
set class 30 regen-priority 7 group-name mng_group_3
exit
#-----------------------------------------------------------------------
#-----------------------------------------------------------------------
interface <LAN1>
switchport ingress-filter
exit
interface <LAN2>
switchport ingress-filter
exit
interface <RADIO>
switchport ingress-filter
exit
exit
#========================================================================
# To make effective the above ‘default’ commands,
# following commands must be launched.
set hitless-restart enable
sleep 5
reload
#========================================================================
#CONTEXT-EXIT
MN.00320.E - 013 53
6.5 PAYLOAD INTERFACES
The next step in the switch configuration is the setting of the traffic ports.
INTERFACES
#CONTEXT-ENTRY
configure terminal
#CONTEXT::SM-OS(config)#
########################################################################
# Script name: SYS-PYLD_IF
#
# Rev.0002a
# (siae microelettronica)
#########################################################+##############
#====================================================================
# LINE INTERFACES
interface <LAN1>
# This is the LAN1.
no shutdown
exit
interface <LAN2>
# This is the LAN2.
no shutdown
exit
#=====================================================================
# RADIO INTERFACE
interface <RADIO>
# This is the RADIO.
shutdown
no negotiation
no shutdown
exit
exit
#=======================================================================
#CONTEXT-EXIT
#show vlan device info
#show vlan device capabilities
#show interface bridge port-type
#show vlan port config switch default
In case of Radio port a further setting has to be applied: local Radio port and remote Radio port don't need
to perform any autonegotiation.
54 MN.00320.E - 013
6.6 NETWORK APPLICATION
All possible network scenarios have been inserted in a list and named by a SIAE scenario code. Among
these scenarios, six main examples have been pointed out: 1, 2, 3, 4, 5 and 6.
In the following pages they are explained.
6.6.1 Scenario #1
Transport Access
Script ID: APP-Scenario1-TR Script ID: APP-Scenario1-TR
C1 0 C10
C1 0 CP C1 0 CP
1 1
R
R
2 2
CB CB
MN.00320.E - 013 55
Scenario1_Transport&Access
#CONTEXT-ENTRY
configure terminal
#CONTEXT::SM-OS(config)#
#########################################################################
# Script name: APP-SCENARIO1_TR
#
# Rev.0001
# (siae microelettronica)
################################################################+########
bridge-mode customer
# LAN 1
interface <LAN1>
switchport ingress-filter
no shutdown
exit
# RADIO
interface <RADIO>
switchport ingress-filter
no shutdown
exit
#========================================================================
#CONTEXT-EXIT
exit
56 MN.00320.E - 013
The Scenario#1 describes one radio link with the following characteristics: one radio is Transport side, the
other radio is Access side.
A script is provided for the Transport side switch and another is provided for the Access side switch.
The two switches of the link (transport switch and access switch) are set in Customer Bridge-mode (CB),
a switch that manages a single level of VLAN tag described by several C-tag.
Core/Transport Network:
• The C-VLAN IDs identify the different destination NodeB in the Access network
Access Network:
• The traffic from different NodeBs is differentiated on the basis of the VLAN (the customer can use
one or more VLAN IDs for each NodeB, C-VLAN 10 in the script example)
MN.00320.E - 013 57
6.6.2 Scenario #2
Transport Access
S 10 0 Cx S 10 0 Cx C 10
1 S 100 C10 C 20
PNP ...
PNP R S 100 C20
2 C x
1
R CNP
PCB
PNP 2
PEB
Scenario2-Transport
#CONTEXT-ENTRY
configure terminal
#CONTEXT::SM-OS(config)#
#########################################################################
# Script name: APP-SCENARIO2_TR
#
# Rev.0001
# (siae microelettronica)
################################################################+########
bridge-mode provider-core
# LAN1
interface <LAN1>
bridge port-type providerNetworkPort
switchport ingress-filter
no shutdown
exit
# RADIO
interface <RADIO>
bridge port-type providerNetworkPort
switchport ingress-filter
no shutdown
exit
58 MN.00320.E - 013
vlan 100
ports <LAN1> <RADIO>
exit
#========================================================================
#CONTEXT-EXIT
exit
Scenario2-Access
#CONTEXT-ENTRY
configure terminal
#CONTEXT::SM-OS(config)#
#########################################################################
# Script name: APP-SCENARIO2_ACC
#
# Rev.0002
# (siae microelettronica)
################################################################+########
bridge-mode provider-edge
# LAN1
interface <LAN1>
bridge port-type customerNetworkPort port-based
## Choose one option and put it on #<EXEC.LINE>.
## 1.Assign a fixed SVLAN Priority:
##<EXEC.LINE>= switchport svlan-priotype fixed 2
## 2.Copy incoming CVLAN Priority as SVLAN Priority:
##<EXEC.LINE>= switchport svlan-priotype copy
#<EXEC.LINE>
switchport ingress-filter
no shutdown
exit
# RADIO
interface <RADIO>
bridge port-type providerNetworkPort
switchport ingress-filter
no shutdown
exit
# UNTAGGED LAN1
interface <LAN1>
switchport pvid 100
exit
#========================================================================
#CONTEXT-EXIT
exit
MN.00320.E - 013 59
The Scenario#2 describes one radio link with the following characteristics: one radio is Transport side, the
other radio is Access side.
A script is provided for the Transport side switch and another is provided for the Access side switch.
The Transport side switch is set as Provider Core Bridge (PCB). The Access side switch is set as Provider
Edge Bridge (PEB).
PCB and PEB switches manage two levels of VLAN tag described by C-tag and S-tag.
Core/Transport Network:
• Ethernet traffic is to/from the router is tagged with S-VLAN + C-VLAN tag
• The S-VLAN IDs identify the destination NodeB (S-VLAN 100 in the script example) in the Access
network
Access Network:
• The traffic from different NodeBs is differentiated on the basis of the ingress port (the customer can
use the same VLAN on all the NodeBs)
• In the microwave network an additional Tag (S-Tag) is added by the radio connected to the NodeBs
(S-VLAN 100 in the script example).
6.6.3 Scenario #3
Transport Access
PVID C10
C1 0 C10
CP C10
1
R 1
2 R
2
CB
CB
Scenario3_Access
#CONTEXT-ENTRY
configure terminal
#CONTEXT::SM-OS(config)#
#########################################################################
# Script name: APP-SCENARIO3_ACC
#
60 MN.00320.E - 013
# Rev.0001
# (siae microelettronica)
################################################################+########
bridge-mode customer
# LAN 1
interface <LAN1>
switchport ingress-filter
no shutdown
exit
# RADIO
interface <RADIO>
switchport ingress-filter
no shutdown
exit
MN.00320.E - 013 61
The Scenario#3 describes one radio link with the following characteristics: one radio is Transport side, the
other radio is Access side.
A script is provided for the Transport side switch and another is provided for the Access side switch.
The Transport side switch is set as Customer Bridge (CB). The Access side switch is set as Customer Bridge
(CB).
A CB, "customer bridge-mode" switch is a switch that manages a single level of VLAN tag described by
several C-tag.
Transport Network:
• The C-VLAN IDs identify the destination NodeB (C-VLAN 10 in the script example)
Access Network:
• In the microwave network n additional C-VLAN Tag is added by the radio connected to the NodeBs
(C-VLAN 10 in the script example)
• The traffic from different NodeBs is differentiated on the basis of the ingress port.
62 MN.00320.E - 013
6.6.4 Scenario #4
PVID 100
S 100 C10 A
S 200 C10 B C 10 A
CN P
1
R
PNP 2
C 10 B
PEB
PVID 200
Scenario4-Transport2
#CONTEXT-ENTRY
configure terminal
#CONTEXT::SM-OS(config)#
###############################################
# Script name: APP-SCENARIO4_TR2
#
# Rev.0002
# (siae microelettronica)
######################################+########
bridge-mode provider-edge
# LAN 1
interface <LAN1>
bridge port-type customeredgePort
## Choose one option and put it on #<EXEC.LINE>.
## 1.Assign a fixed SVLAN Priority:
##<EXEC.LINE>= switchport svlan-priotype fixed 2
## 2.Copy incoming CVLAN Priority as SVLAN Priority:
##<EXEC.LINE>= switchport svlan-priotype copy
## 3.Apply fixed SVLAN priority for specific CVID entry:
# #<EXEC.LINE>= \
## switchport customer-vlan 10 svlan-priotype fixed 3
#<EXEC.LINE>
switchport ingress-filter
MN.00320.E - 013 63
no shutdown
exit
# RADIO
interface <RADIO>
bridge port-type providerNetworkPort
switchport ingress-filter
no shutdown
exit
#TAGGED LAN 1
interface <LAN1>
ethernet uni id UNI01
ethernet map ce-vlan 10 evc 100
ethernet map ce-vlan 20 evc 200
exit
#=======================================================
#CONTEXT-EXIT
exit
Scenario4-Transport1
#CONTEXT-ENTRY
configure terminal
#CONTEXT::SM-OS(config)#
###############################################
# Script name: APP-SCENARIO4_TR1
#
# Rev.0002
# (siae microelettronica)
################################+##############
bridge-mode provider-core
# LAN 1
interface <LAN1>
bridge port-type providerNetworkPort
switchport ingress-filter
no shutdown
exit
64 MN.00320.E - 013
# RADIO
interface <RADIO>
bridge port-type providerNetworkPort
switchport ingress-filter
no shutdown
exit
# S-VLAN 100
# S-VLAN 200
vlan 100
ports <LAN1> <RADIO>
exit
vlan 200
ports <LAN2> <RADIO>
exit
#==============================================
#CONTEXT-EXIT
exit
Scenario4-Access
#CONTEXT-ENTRY
configure terminal
#CONTEXT::SM-OS(config)#
###############################################
# Script name: APP-SCENARIO4_ACC
#
# Rev.0002
# (siae microelettronica)
################################+##############
bridge-mode provider-edge
# LAN 1
interface <LAN1>
bridge port-type customerNetworkPort port-based
## Choose one option and put it on #<EXEC.LINE>.
## 1.Assign a fixed SVLAN Priority:
##<EXEC.LINE>= switchport svlan-priotype fixed 2
## 2.Copy incoming CVLAN Priority as SVLAN Priority:
# #<EXEC.LINE>= switchport svlan-priotype copy
#<EXEC.LINE>
switchport ingress-filter
no shutdown
exit
# LAN 2
interface <LAN2>
bridge port-type customerNetworkPort port-based
## Choose one option and put it on #<EXEC.LINE>.
## 1.Assign a fixed SVLAN Priority:
##<EXEC.LINE>= switchport svlan-priotype fixed 2
MN.00320.E - 013 65
## 2.Copy incoming CVLAN Priority as SVLAN Priority:
##<EXEC.LINE>= switchport svlan-priotype copy
#<EXEC.LINE>
switchport ingress-filter
no shutdown
exit
# RADIO
interface <RADIO>
bridge port-type providerNetworkPort
switchport ingress-filter
no shutdown
exit
vlan200
ports <LAN2> <RADIO> untagged <LAN2>
exit
# UNTAGGED LAN2
interface <LAN2>
switchport pvid 200
exit
#==============================================
#CONTEXT-EXIT
exit
###############################################
#CONTEXT - REMOVE EVC
###############################################
configure terminal
interface <LAN1>
no ethernet uni id
exit
vlan 100
no ethernet evc id
exit
vlan 200
no ethernet evc id
end
66 MN.00320.E - 013
Scenario#4 describes two radio links. Tree radios are on Transport side, the other radio is on Access side.
Depending on position of the switch, two scripts are provided for Transport side and a script is provided
for Access side.
The Transport side switch on left is set as Provider Edge Bridge (PEB), the Transport side switches in the
centre of the network are set as Provider Core Bridge (PCB) and the Access side switch is set as Provider
Edge Bridge (PEB).
PCB and PEB switches manage two levels of VLAN tag described by C-tag and S-tag.
• Ethernet traffic to/from the router ports is tagged with C-VLAN Tag (3Gand 4G could have the same
VLAN IDs)
• E-line connections between each NodeB and the relevant router interface
- On the router side: the VLAN re-write functionality is used by microwave network to add the
second VLAN Tag.
- On NodeB side: the second VLAN Tag is added by the microwave according to the connected
NodeBs (S-VLAN 100and S-VLAN 200 in the script example)
Access Network:
• The traffic from different NodeBs is differentiated on the basis of the ingress port (the customer can
use the same VLAN on all the NodeBs)
6.6.5 Scenario #5
MN.00320.E - 013 67
Transport Transport Access
S10 0 B S 10 0 B EVC100
EVC100 C10‐p3 A1
C10‐p3 A1/2 S 100 B
CEP
P NP 1
CEP 1 1
1 P NP PNP S100‐p3 C 10‐p3 A1/2 R
R R CEP
A R PNP
S 100‐p3 C 10‐p3 A1/2 PNP 2 2 2
2 PNP
C10‐p3 A2
PCB PEB
PEB EVC1 00 EVC 100 PCB
68 MN.00320.E - 013
Scenario5-Transport2
#CONTEXT-ENTRY
configure terminal
#CONTEXT::SM-OS(config)#
###############################################
# Script name: APP-SCENARIO5_TR2
#
# Rev.0002a
# (siae microelettronica)
################################+##############
bridge-mode provider-edge
# LAN 1
interface <LAN1>
bridge port-type customeredgePort
## Choose one option and put it on #<EXEC.LINE>.
## 1.Assign a fixed SVLAN Priority:
##<EXEC.LINE>= switchport svlan-priotype fixed 2
## 2.Copy incoming CVLAN Priority as SVLAN Priority:
##<EXEC.LINE>= switchport svlan-priotype copy
## 3.Apply fixed SVLAN priority for specific CVID entry:
# #<EXEC.LINE>= \
## switchport customer-vlan 10 svlan-priotype fixed 3
#<EXEC.LINE>
switchport ingress-filter
no shutdown
exit
# RADIO
interface <RADIO>
bridge port-type providerNetworkPort
switchport ingress-filter
no shutdown
exit
# C-TAGGED LAN1
interface <LAN1>
ethernet uni id UNI01
ethernet map ce-vlan 10 evc 100
exit
#==============================================
#CONTEXT-EXIT
exit
MN.00320.E - 013 69
Scenario5-Transport1
#CONTEXT-ENTRY
configure terminal
#CONTEXT::SM-OS(config)#
###############################################
# Script name: APP-SCENARIO5_TR1
#
# Rev.0001a
# (siae microelettronica)
################################+##############
bridge-mode provider-core
# LAN 1
interface <LAN1>
bridge port-type providerNetworkPort
switchport ingress-filter
no shutdown
exit
# RADIO
interface <RADIO>
bridge port-type providerNetworkPort
switchport ingress-filter
no shutdown
exit
# S-VLAN 100
vlan 100
ports <LAN1> <RADIO>
ethernet evc id evc100
ethernet evc type point-to-Point
exit
#==============================================
#CONTEXT-EXIT
exit
Scenario5-Access
#CONTEXT-ENTRY
configure terminal
#CONTEXT::SM-OS(config)#
###############################################
# Script name: APP-SCENARIO5_ACC
#
# Rev.0002a
# (siae microelettronica)
################################+##############
bridge-mode provider-edge
# LAN 1
interface <LAN1>
bridge port-type customeredgePort
70 MN.00320.E - 013
## Choose one option and put it on #<EXEC.LINE>.
## 1.Assign a fixed SVLAN Priority:
##<EXEC.LINE>= switchport svlan-priotype fixed 2
## 2.Copy incoming CVLAN Priority as SVLAN Priority:
##<EXEC.LINE>= switchport svlan-priotype copy
## 3.Apply fixed SVLAN priority for specific CVID entry:
# #<EXEC.LINE>= \
## switchport customer-vlan 10 svlan-priotype fixed 3
#< EXEC.LINE>
switchport ingress-filter
no shutdown
exit
# LAN 2
interface <LAN2>
bridge port-type customeredgePort
## Choose one option and put it on #<EXEC.LINE>.
## 1.Assign a fixed SVLAN Priority:
##<EXEC.LINE>= switchport svlan-priotype fixed 2
## 2.Copy incoming CVLAN Priority as SVLAN Priority:
##<EXEC.LINE>= switchport svlan-priotype copy
## 3.Apply fixed SVLAN priority for specific CVID entry:
# #<EXEC.LINE>= \
## switchport customer-vlan 10 svlan-priotype fixed 3
#<EXEC.LINE>
switchport ingress-filter
no shutdown
exit
# RADIO
interface <RADIO>
bridge port-type providerNetworkPort
switchport ingress-filter
no shutdown
exit
# C-TAGGED LAN1
interface <LAN1>
ethernet uni id UNI01
ethernet map ce-vlan 10 evc 100
exit
# C-TAGGED LAN2
interface <LAN2>
ethernet uni id UNI02
ethernet map ce-vlan 10 evc 100
MN.00320.E - 013 71
exit
#==============================================
#CONTEXT-EXIT
exit
###############################################
#CONTEXT - REMOVE EVC
###############################################
configure terminal
interface <LAN1>
no ethernet uni id
exit
interface <LAN2>
no ethernet uni id
exit
vlan 100
no ethernet evc id
end
The Scenario#5 describes two radio links. Three radios are on Transport side, the other radio is on Access
side.
Depending on position of the switch, two scripts are provided for Transport side and a script is provided
for Access side.
The Transport side switch on left is set as Provider Edge Bridge (PEB), the Transport side switches in the
centre of the network are set as Provider Core Bridge (PCB) and the Access side switch is set as Provider
Edge Bridge (PEB).
PCB and PEB switches manage two levels of VLAN tag described by C-tag and S-tag.
• E-LAN connections between each NodeB and the relevant router interface
• In the existing microwave network, a S-VLAN Tag is added by radio to separate the different E-LAN
connections (S-VLAN 100 in the script example)
Access Network
• The traffic from different NodeBs is differentiated on the basis of the ingress port and MAC address
72 MN.00320.E - 013
6.6.6 Scenario #6
Scenario6-Transport2
#CONTEXT-ENTRY
configure terminal
#CONTEXT::SM-OS(config)#
###############################################
# Script name: APP-SCENARIO6_TR2
#
# Rev.0002a
# (siae microelettronica)
################################+##############
bridge-mode provider-edge
# LAN 1
interface <LAN1>
bridge port-type customerNetworkPort port-based
## Choose one option and put it on #<EXEC.LINE>.
## 1.Assign a fixed SVLAN Priority:
# #<EXEC.LINE>= switchport svlan-priotype fixed 2
## 2.Copy incoming CVLAN Priority as SVLAN Priority:
# #<EXEC.LINE>= switchport svlan-priotype copy
#<EXEC.LINE>
switchport ingress-filter
no shutdown
MN.00320.E - 013 73
exit
# RADIO
interface <RADIO>
bridge port-type providerNetworkPort
switchport ingress-filter
no shutdown
exit
#UNTAGGED LAN1
interface <LAN1>
switchport pvid 100
exit
#==============================================
#CONTEXT-EXIT
exit
Scenario6-Transport1
#CONTEXT-ENTRY
configure terminal
#CONTEXT::SM-OS(config)#
###############################################
# Script name: APP-SCENARIO6_TR1
#
# Rev.0001a
# (siae microelettronica)
################################+##############
bridge-mode provider-core
# LAN 1
interface <LAN1>
bridge port-type providerNetworkPort
switchport ingress-filter
no shutdown
exit
# RADIO
interface <RADIO>
bridge port-type providerNetworkPort
switchport ingress-filter
no shutdown
exit
# S-VLAN 100
vlan 100
74 MN.00320.E - 013
ports <LAN1> <RADIO>
exit
#==============================================
#CONTEXT-EXIT
exit
Scenario6-Access
#CONTEXT-ENTRY
configure terminal
#CONTEXT::SM-OS(config)#
###############################################
# Script name: APP-SCENARIO6_ACC
#
# Rev.0003a
# (siae microelettronica)
################################+##############
bridge-mode provider-edge
# LAN 1
interface <LAN1>
bridge port-type customerNetworkPort port-based
## Choose one option and put it on #<EXEC.LINE>.
## 1.Assign a fixed SVLAN Priority:
# #<EXEC.LINE>= switchport svlan-priotype fixed 2
## 2.Copy incoming CVLAN Priority as SVLAN Priority:
# #<EXEC.LINE>= switchport svlan-priotype copy
#<EXEC.LINE>
switchport ingress-filter
no shutdown
exit
# LAN 2
interface <LAN2>
bridge port-type customerNetworkPort port-based
## Choose one option and put it on #<EXEC.LINE>.
## 1.Assign a fixed SVLAN Priority:
# #<EXEC.LINE>= switchport svlan-priotype fixed 2
## 2.Copy incoming CVLAN Priority as SVLAN Priority:
# #<EXEC.LINE>= switchport svlan-priotype copy
#<EXEC.LINE>
switchport ingress-filter
no shutdown
exit
# RADIO
interface <RADIO>
bridge port-type providerNetworkPort
switchport ingress-filter
no shutdown
exit
MN.00320.E - 013 75
# RADIO <- S-VLAN 100 -> UNTAGGED LAN1
vlan 100
ports <LAN1> <LAN2> <RADIO> untagged <LAN1> <LAN2>
exit
#UNTAGGED LAN1
interface <LAN1>
switchport pvid 100
exit
#UNTAGGED LAN2
interface <LAN2>
switchport pvid 100
exit
#==============================================
#CONTEXT-EXIT
exit
The Scenario #6 describes two radio links. Three radios are on Transport side, the other radio is on Access
side.
Depending on position of the switch, two scripts are provided for Transport side and a script is provided
for Access side.
The Transport side switch on left is set as Provider Edge Bridge (PEB), the Transport side switches in the
centre of the network are set as Provider Core Bridge (PCB) and the Access side switch is set as Provider
Edge Bridge (PEB). PCB and PEB switches manage two levels of VLAN tag described by C-tag and S-tag.
• In the existing microwave network, a S-VLAN Tag is added by radio to separate the different E-LAN
connections (S-VLAN 100 in the script example).
Access Network
• Ethernet traffic to/from NEs can be Tagged with a VLAN Tag or Untagged (hybrid connection)
• The traffic from different NodeBs is differentiated on the basis of the ingress port and MAC address
76 MN.00320.E - 013
6.7 PAYLOAD SERVICES
Next step is to add some payload services (optional): in this chapter an explanation of the transport service
usable and customizable for any application.
CB ports/C-Tagged service
#CONTEXT-ENTRY
configure terminal
#CONTEXT::SM-OS(config)#
###############################################################################
# Script name: CB-CTAGGED-SRVC
#
# Rev.0001
# (siae microelettronica)
################################################################+##############
#============================================================================
vlan 19
# 19-VLAN for untagged and priority tagged traffic.
ports <LAN1> <RADIO> untagged <LAN1> name siae019
exit
vlan 29
# 29-VLAN for untagged and priority tagged traffic.
ports <LAN2> <RADIO> untagged <LAN2> name siae029
exit
vlan 10
ports <LAN1> <RADIO> name siae10
exit
vlan 20
ports <LAN2> <RADIO> name siae20
exit
MN.00320.E - 013 77
exit
#==============================================================================
# show interface bridge port-type
# show vlan
#==============================================================================
#CONTEXT-EXIT
• LAN1 and radio are members tagged of VLAN10 (VLAN10 passes unchanged)
• LAN2 and radio are members tagged of VLAN20 (VLAN20 passes unchanged)
• The incoming untagged traffic is tagged with port VLAN ID (PVID) of LAN interface into the switch.
78 MN.00320.E - 013
6.7.2 Provider edge bridge - Customer edge port
PEB-CEB ports
#CONTEXT-ENTRY
configure terminal
#CONTEXT::SM-OS(config)#
###############################################################################
# Script name: PEB-PORTS-CTAGGED-SRVC
#
# Rev.0002
# (siae microelettronica)
################################################################+##############
#============================================================================
interface <LAN1>
bridge port-type customerEdgePort
switchport ingress-filter
ethernet uni id UNI01
shutdown
exit
interface <LAN2>
bridge port-type customerEdgePort
switchport ingress-filter
ethernet uni id UNI02
shutdown
exit
interface <RADIO>
bridge port-type providerNetworkPort
switchport ingress-filter
shutdown
exit
exit
#==============================================================================
#CONTEXT-EXIT
MN.00320.E - 013 79
# 19-EVC for untagged and priority tagged traffic.
ports <LAN1> <RADIO> untagged <LAN1> name siae019
ethernet evc id evc019
ethernet evc type point-to-Point
exit
vlan 29
# 29-EVC for untagged and priority tagged traffic.
ports <LAN2> <RADIO> untagged <LAN2> name siae029
ethernet evc id evc029
ethernet evc type point-to-Point
exit
vlan 100
ports <LAN1> <RADIO> untagged <LAN1> name siae100
ethernet evc id evc100
ethernet evc type point-to-Point
exit
vlan 200
ports <LAN2> <RADIO> untagged <LAN2> name siae200
ethernet evc id evc200
ethernet evc type point-to-Point
exit
80 MN.00320.E - 013
# show ethernet ce-vlan evc map
#==============================================================================
#CONTEXT-EXIT
• a C-VLAN and a S-VLAN for ports LAN1 and RADIO with LAN1 untagged and a default PVID for port
LAN1
• a C-VLAN and a S-VLAN for ports LAN2 and RADIO with LAN2 untagged and a default PVID for port
LAN2
In this way all the C-tagged traffic (C-VID 10...14) entering in LAN1 is sent in S-VLAN 100 through the
RADIO port and all the C-tagged traffic (C-VID 20...24) entering in LAN2 is sent in S-VLAN 200 through
the RADIO port.
Untagged traffic entering in port LAN1 is sent to RADIO port using evc019 and untagged traffic entering in
port LAN2 is sent to RADIO port using evc029.
MN.00320.E - 013 81
exit
interface <LAN1>
# PVID-19-EVC for untagged and priority tagged traffic.
switchport pvid 19
# PRIO-1-EVC for untagged and priority tagged traffic.
switchport priority default 1
no shutdown
exit
interface <LAN2>
# PVID-29-EVC for untagged and priority tagged traffic.
switchport pvid 29
# PRIO-1-EVC for untagged and priority tagged traffic.
switchport priority default 1
82 MN.00320.E - 013
# choose one of the following:
#
switchport svlan-priotype fixed 2
#witchport svlan-priotype copy
no shutdown
exit
interface <RADIO>
no shutdown
exit
exit
#==============================================================================
# show interface bridge port-type
# show ethernet uni switch default
# show vlan
# show ethernet evc switch default
# show service vlan switch default
# show ethernet ce-vlan evc map
#==============================================================================
#CONTEXT-EXIT
The script performs the following behaviour: all the C-tagged traffic (C-VID 10...14) entering in LAN1 is
sent in S-VLAN 100 through the RADIO port and all the C-tagged traffic (C-VID 20...24) entering in LAN2
is sent in S-VLAN 200 through the RADIO port. Not only, the traffic entering through port LAN1 takes pri-
ority 2 and traffic entering through port LAN2 takes priority 2. Or in alternative the priority can be the orig-
inal in input in this example despite the two options available there are also the specific priority
assignments:
• traffic entering through port LAN 1 with C-VID 13 takes priority 3 and with C-VID 14 maintains its
original priority
• traffic entering through port LAN 2 with C-VID 23 takes priority 3 and with C-VID 24 maintains its
original priority
Untagged traffic entering in port LAN1 is sent to RADIO port using evc019 with priority 1 and untagged
traffic entering in port LAN2 is sent to RADIO port using evc029 with priority 1.
MN.00320.E - 013 83
#==============================================================
interface <LAN1>
switchport dot1q customer vlan 19
switchport customer-vlan 19 service-vlan 100 untagged-pep false untagged-cep true
exit
interface <LAN2>
switchport dot1q customer vlan 29
switchport customer-vlan 29 service-vlan 200 untagged-pep false untagged-cep true
exit
exit
#================================================================
# show service vlan
#================================================================
#CONTEXT-EXIT
• for LAN1 it sets the customer VLAN ID for the port (in this case 19), it adds an entry in the Customer
VLAN Identification (C-VID) registration table and configures the SVLAN id as 100. It sets the port
as the Untagged Customer Edge Port.
• for LAN2 it sets the customer VLAN ID for the port (in this case 29), it adds an entry in the Customer
VLAN Identification (C-VID) registration table and configures the SVLAN id as 200. It sets the port
as the Untagged Customer Edge Port.
84 MN.00320.E - 013
6.7.3 Provider edge bridge - Customer network port
PEB-CNP ports
#CONTEXT-ENTRY
configure terminal
#CONTEXT::SM-OS(config)#
###############################################################################
# Script name: PEB-PORTS-PORTBASED-SRVC
#
# Rev.0002
# (siae microelettronica)
################################################################+##############
#============================================================================
interface <LAN1>
bridge port-type customerNetworkPort port-based
switchport ingress-filter
shutdown
exit
interface <LAN2>
bridge port-type customerNetworkPort port-based
switchport ingress-filter
shutdown
exit
interface <RADIO>
bridge port-type providerNetworkPort
switchport ingress-filter
shutdown
exit
exit
#==============================================================================
#CONTEXT-EXIT
PEB-CNP-PortBased service
#CONTEXT-ENTRY
configure terminal
#CONTEXT::SM-OS(config)#
###############################################################################
# Script name: CNP-PORTBASED-SRVC
#
# Rev.0002
# (siae microelettronica)
################################################################+##############
#============================================================================
vlan 100
ports <LAN1> <RADIO> untagged <LAN1> name siae100
MN.00320.E - 013 85
exit
vlan 200
ports <LAN2> <RADIO> untagged <LAN2> name siae200
exit
86 MN.00320.E - 013
vlan 200
ports <LAN2> <RADIO> untagged <LAN2> name siae200
exit
no shutdown
exit
interface <LAN2>
# PVID-200-EVC for untagged and priority tagged traffic.
switchport pvid 200
switchport priority default 1
no shutdown
exit
interface <RADIO>
no shutdown
exit
exit
#==============================================================================
# show interface bridge port-type
# show ethernet uni switch default
# show vlan
# show ethernet evc switch default
# show service vlan switch default
# show ethernet ce-vlan evc map
#==============================================================================
#CONTEXT-EXIT
MN.00320.E - 013 87
• EVC 100, PVID 100 and fixed or copied PCP for LAN1
• EVC 200, PVID 200 and fixed or copied PCP for LAN2.
The script on a defined port allows any packet Untagged or Ctagged or Stagged to transit through the port.
PCB-PNP ports
#CONTEXT-ENTRY
configure terminal
#CONTEXT::SM-OS(config)#
###############################################################################
# Script name: PCB-PORTS-STAGGED-SRVC
#
# Rev.0001
# (siae microelettronica)
################################################################+##############
#============================================================================
interface <LAN1>
bridge port-type providerNetworkPort
switchport ingress-filter
shutdown
exit
interface <LAN2>
bridge port-type providerNetworkPort
switchport ingress-filter
shutdown
88 MN.00320.E - 013
exit
interface <RADIO>
bridge port-type providerNetworkPort
switchport ingress-filter
shutdown
exit
exit
#==============================================================================
#CONTEXT-EXIT
PCB-PNP/S-Tagged service
#CONTEXT-ENTRY
configure terminal
#CONTEXT::SM-OS(config)#
###############################################################################
# Script name: PCB-STAGGED-SRVC
#
# Rev.0001
# (siae microelettronica)
################################################################+##############
#============================================================================
vlan 100
ports <LAN1> <RADIO> name siae100
exit
vlan 200
ports <LAN2> <RADIO> name siae200
exit
MN.00320.E - 013 89
• Script name: PCB-STAGGED-SRVC
In this part are reported some scripts for the setting of priority type and priority values.
Some observations are necessary in order to understand and modify the scripts:
• The most important variable values are kept by "<>" in order to read the script more clearly
• <GEN_PORT> is the port where the setting is to be applied. It can be <LAN1>, <LAN2>, <RADIO>
or <ON_SITE> where:
ALFOplus80HD:
The scripts for the priority configuration are in the following pages.
90 MN.00320.E - 013
PRIORITY MAP DEFAULT VALUES
8 default priority-map (from 1 to 8) are defined and applied to all interfaces. Default priority map can not
be removed but modified.
Default 802.1p PCP-queue mapping (defined by default priority-map from 1 to 8) is according to table be-
low.
0 1 2 3 4 5 6 7
0
1
2
InPriority
3
(802.1p)
4
5
6
7
0 1 2 3 4 5 6 7
000xxx
001xxx
010xxx
InPriority
011xxx
(in DSCP)
100xxx
101xxx
110xxx
111xxx
#CONTEXT-ENTRY
configure terminal
#CONTEXT::SM-OS(config)#
###############################################################################
# Script name: APP-CLS-PCP
#
# Enable .1p and customize the map P-Bits/Queues
# Bridge/Vlan= Customer/C-VLAN or Provider/S-VLAN
# (basically the classification is done on the outer tag)
#
# Rev.0003
# (siae microelettronica)
################################################################+##############
#============================================================================
MN.00320.E - 013 91
interface <GEN_PORT>
qos pbit-preference enable
exit
priority-map 10
map interface <GEN_PORT> in-priority-type vlanPri in-priority 0 regen-priority 0
exit
priority-map 11
map interface <GEN_PORT> in-priority-type vlanPri in-priority 1 regen-priority 1
exit
priority-map 12
map interface <GEN_PORT> in-priority-type vlanPri in-priority 2 regen-priority 2
exit
priority-map 13
map interface <GEN_PORT> in-priority-type vlanPri in-priority 3 regen-priority 3
exit
priority-map 14
map interface <GEN_PORT> in-priority-type vlanPri in-priority 4 regen-priority 4
exit
priority-map 15
map interface <GEN_PORT> in-priority-type vlanPri in-priority 5 regen-priority 5
exit
priority-map 16
map interface <GEN_PORT> in-priority-type vlanPri in-priority 6 regen-priority 6
exit
priority-map 17
map interface <GEN_PORT> in-priority-type vlanPri in-priority 7 regen-priority 7
exit
exit
#show priority-map
#==============================================================================
#CONTEXT-EXIT
The 802.1p (Layer2) priority takes precedence over DSCP (Layer3) and maps the 802.1p priority values in
the 8 relevant queues.
The script enters a classifier (10, 11, 12, 13, 14, 15, 16, 17) for 802.1p priority values 0, 1, 2, 3, 4, 5, 6, 7.
The classification is done on the outer tag and so the relation Bridge/Vlan can be Customer/C-VLAN or Pro-
vider/S-VLAN.
#CONTEXT-ENTRY
configure terminal
#CONTEXT::SM-OS(config)#
###############################################################################
# Script name: APP-CLS-DSCP
#
# Enable DSCP and customize the map DSCP values/Queues
# Bridge/Vlan =Customer/C-VLAN or Provider/S-VLAN
# (basically the classification is done on the outer tag)
#
92 MN.00320.E - 013
# Rev.0003
# (siae microelettronica)
################################################################+##############
#============================================================================
interface <GEN_PORT>
qos pbit-preference disable
exit
priority-map 20
# in-priority = 0 = CS0, regen-priority = 0 = IP Precedence.
map interface <GEN_PORT> in-priority-type ipDscp in-priority 0 regen-priority 0
exit
priority-map 21
# in-priority = 8 = CS1, regen-priority = 1 = IP Precedence.
map interface <GEN_PORT> in-priority-type ipDscp in-priority 8 regen-priority 1
exit
priority-map 22
# in-priority = 16 = CS2, regen-priority = 2 = IP Precedence.
map interface <GEN_PORT> in-priority-type ipDscp in-priority 16 regen-priority 2
exit
priority-map 23
# in-priority = 24 = CS3, regen-priority = 3 = IP Precedence.
map interface <GEN_PORT> in-priority-type ipDscp in-priority 24 regen-priority 3
exit
priority-map 24
# in-priority = 32 = CS4, regen-priority = 4 = IP Precedence.
map interface <GEN_PORT> in-priority-type ipDscp in-priority 32 regen-priority 4
exit
priority-map 25
# in-priority = 40 = CS5, regen-priority = 5 = IP Precedence.
map interface <GEN_PORT> in-priority-type ipDscp in-priority 40 regen-priority 5
exit
priority-map 26
# in-priority = 48 = CS6, regen-priority = 6 = IP Precedence.
map interface <GEN_PORT> in-priority-type ipDscp in-priority 48 regen-priority 6
exit
priority-map 27
# in-priority = 56 = CS7, regen-priority = 7 = IP Precedence.
map interface <GEN_PORT> in-priority-type ipDscp in-priority 56 regen-priority 7
exit
exit
#show priority-map
#==============================================================================
#CONTEXT-EXIT
The DSCP (Layer3) priority takes precedence over 802.1p (Layer2) and maps the e.g. 0, 7, 15, 23, 31, 39,
47, 63 DSCP priority values in the 8 queues.
Enter a classifier (e.g. 20, 21, 22, 23, 24, 25, 26, 27) for e.g. 0, 7, 15, 23, 31, 39, 47, 63 DSCP priority
only.
The classification is done on the outer tag and so the relation Bridge/Vlan can be Customer/C-VLAN or Pro-
vider/S-VLAN.
MN.00320.E - 013 93
6.8.3 Classification perPORT
#CONTEXT-ENTRY
configure terminal
#CONTEXT::SM-OS(config)#
###############################################################################
# Script name: APP-CLS-PRT
#
# Force all the packets coming from a certain port to a specific queue
# Bridge= Customer or Provider
#
# Rev.0002
# (siae microelettronica)
################################################################+##############
#============================================================================
mac access-list extended <MAC_ACC_LIST_NUM>
permit any any
exit
interface <GEN_PORT>
mac access-group <MAC_ACC_LIST_NUM> in
exit
class-map <CLASS_NUM>
set class <CLASS_ID> regen-priority 7 group-name def_prio_7
match access-group mac-access-list <MAC_ACC_LIST_NUM>
exit
exit
#==============================================================================
#CONTEXT-EXIT
Force all the packets coming from a certain port <GEN_PORT> to a specific priority (priority 7 in the ex-
ample).
Bridge mode = Customer or Provider.
#CONTEXT-ENTRY
configure terminal
#CONTEXT::SM-OS(config)#
###############################################################################
# Script name: APP-CLS-PRTVLAN
#
# Force all the packets coming from a certain port and having a spefic
# outer vlan id to a specific queue.
# Bridge mode: Provider
#
# Rev.0002
# (siae microelettronica)
################################################################+##############
#============================================================================
mac access-list extended <MAC_ACC_LIST_NUM>
94 MN.00320.E - 013
permit any any svlan-id 100
exit
interface <GEN_PORT>
mac access-group <MAC_ACC_LIST_NUM> in
exit
class-map <CLASS_NUM>
set class <CLASS_ID> regen-priority 7 group-name def_prio_7
match access-group mac-access-list <MAC_ACC_LIST_NUM>
exit
exit
#==============================================================================
#CONTEXT-EXIT
#CONTEXT-ENTRY
configure terminal
#CONTEXT::SM-OS(config)#
###############################################################################
# Script name: APP-CLS-PRT_EXP
#
# Force all mpls packets coming from a certain port and having a spefic
# mpls-exp to a specific queue.
#
# Rev.0001
# (siae microelettronica)
################################################################+##############
#============================================================================
mac access-list extended <MAC_ACC_LIST_NUM>
permit any any priority 1 mpls-exp 7
exit
interface <GEN_PORT>
mac access-group <MAC_ACC_LIST_NUM> in
exit
class-map <CLASS_NUM>
set class <CLASS_ID> regen-priority 7 group-name siae
match access-group mac-access-list <MAC_ACC_LIST_NUM>
exit
exit
#==============================================================================
#CONTEXT-EXIT
Force all MPLS packet coming from a certain port and having a specific MPLS-EXP to a specific queue.
MN.00320.E - 013 95
6.8.6 Classification per (Port & MPLS & IPV4-DSCP) (IPv4oMPLS frame)
#CONTEXT-ENTRY
configure terminal
#CONTEXT::SM-OS(config)#
###############################################################################
# Script name: APP-CLS-PRT_EXP_v4DSCP
#
# Force all mpls-ipv4 packets coming from a certain port and having a spefic
# mpls-exp and ipv4-dscp to a specific queue.
#
# Rev.0001
# (siae microelettronica)
################################################################+##############
#============================================================================
mac access-list extended <MAC_ACC_LIST_NUM>
# DSCP AF22 (dec.20)
permit any any priority 1 ip-over-mpls ip-type ipv4 dscp af22 mpls-exp 3
exit
interface <GEN_PORT>
mac access-group <MAC_ACC_LIST_NUM> in
exit
class-map <CLASS_NUM>
set class <CLASS_ID> regen-priority 7 group-name siae
match access-group mac-access-list <MAC_ACC_LIST_NUM>
exit
exit
#==============================================================================
#CONTEXT-EXIT
6.8.7 Classification per (Port & MPLS & IPv6-DSCP) (IPv6oMPLS frame)
#CONTEXT-ENTRY
configure terminal
#CONTEXT::SM-OS(config)#
###############################################################################
# Script name: APP-CLS-PRT_MPLS_v6DSCP
#
# Force all mpls-ipv6 packets coming from a certain port and having a spefic
# ipv6-dscp to a specific queue.
#
# Rev.0001
# (siae microelettronica)
################################################################+##############
#============================================================================
mac access-list extended <MAC_ACC_LIST_NUM>
# DSCP AF22 (dec.20)
96 MN.00320.E - 013
permit any any priority 1 ip-over-mpls ip-type ipv6 dscp af22
exit
interface <GEN_PORT>
mac access-group <MAC_ACC_LIST_NUM> in
exit
class-map <CLASS_NUM>
set class <CLASS_ID> regen-priority 7 group-name siae
match access-group mac-access-list <MAC_ACC_LIST_NUM>
exit
exit
#==============================================================================
#CONTEXT-EXIT
6.8.8 Policing & Ingress filtering (CB CVLAN Meter trTCM cBlind)
#CONTEXT-ENTRY
configure terminal
#CONTEXT::SM-OS(config)#
###############################################################################
# Script name: APP-POLINF-CB-CVLAN-Meter_trTCM_cBlind
#
# CIR/EIR on a Customer Bridge and C-VLAN only.
# - ‘de-transmit-set’ option can only be
# applied in case of ‘mac access-group’ out.
#
# “<SET-TRANSMIT>” = “cos-transmit-set 1”
#
# Rev.0006
# (siae microelettronica)
################################################################+##############
#============================================================================
mac access-list extended <MAC_ACC_LIST_NUM>
permit any any vlan 100 single-tag
exit
interface <GEN_PORT>
mac access-group <MAC_ACC_LIST_NUM> in
exit
class-map <CMAP_NUM>
set class <CLASS_ID>
match access-group mac-access-list <MAC_ACC_LIST_NUM>
exit
meter <METER_NUM>
# NOTE: Must be: cbs < ebs.
#--------------- Kbps -- Kbit -- Kbps -- Kbit
meter-type trTCM cir 100 cbs 100 pir 200 ebs 200
exit
policy-map 10
MN.00320.E - 013 97
#change the .1P value to 1 for yellow packets
#AND drop red packets (green ones unchanged)
set meter <METER_NUM> exceed-action <SET-TRANSMIT> violate-action drop
set policy class <CLASS_ID>
exit
exit
#==============================================================================
#CONTEXT-EXIT
For the port <GEN_PORT> and a CVLAN (CVLAN 100 in the script, editable) sets the CIR/PIR CBS/EBS on
a Prov/Cust Bridge and Ingress Port.
PIR and EBS have to be considered as maximum Input rate and maximum Burst size.
The rule has to be repeated for all the <GEN_PORT> that need to be set.
6.8.9 Policing & ingress filtering (CB CVLAN&Pri Meter trTCM cBlind)
#CONTEXT-ENTRY
configure terminal
#CONTEXT::SM-OS(config)#
###############################################################################
# Script name: APP-POLINF-CB-CVLAN&Pri-Meter_trTCM_cBlind
#
# CIR/EIR on a Customer Bridge and C-VLAN+Prio.
# - ‘de-transmit-set’ option can only be
# applied in case of ‘mac access-group’ out.
#
# “<SET-TRANSMIT>” = “cos-transmit-set 1”
#
# Rev.0006
# (siae microelettronica)
################################################################+##############
#============================================================================
mac access-list extended <MAC_ACC_LIST_NUM>
permit any any vlan 100 cvlan-priority 7 single-tag
exit
interface <GEN_PORT>
mac access-group <MAC_ACC_LIST_NUM> in
exit
class-map <CMAP_NUM>
set class <CLASS_ID>
match access-group mac-access-list <MAC_ACC_LIST_NUM>
exit
meter <METER_NUM>
# NOTE: Must be: cbs < ebs.
#--------------- Kbps -- Kbit -- Kbps -- Kbit
meter-type trTCM cir 100 cbs 100 pir 200 ebs 200
exit
98 MN.00320.E - 013
policy-map 10
#change the .1P value to 1 for yellow packets
#AND drop red packets (green ones unchanged)
set meter <METER_NUM> exceed-action <SET-TRANSMIT> violate-action drop
set policy class <CLASS_ID>
exit
exit
#==============================================================================
#CONTEXT-EXIT
For the port <GEN_PORT> and a CVLAN and a priority (CVLAN 100 and priority 7 in the script, editable)
sets the CIR/PIR CBS/EBS on a Customer Bridge and Ingress Port with also red-drop and yellow-drop con-
dition.
PIR and EBS have to be considered as maximum Input rate and maximum Burst size.
The rule has to be repeated for all the <GEN_PORT> that need to be set.
6.8.10 Policing & ingress filtering (PB CVLAN Meter trTCM cBlind)
#CONTEXT-ENTRY
configure terminal
#CONTEXT::SM-OS(config)#
###############################################################################
# Script name: APP-POLINF-PB-CVLAN-Meter_trTCM_cBlind
#
# CIR/EIR on a Provider Bridge and C-VLAN.
# - ‘de-transmit-set’ option can only be
# applied in case of ‘mac access-group’ out.
#
# “<SET-TRANSMIT>” = “cos-transmit-set 1”
#
# Rev.0006
# (siae microelettronica)
################################################################+##############
#============================================================================
mac access-list extended <MAC_ACC_LIST_NUM>
permit any any vlan 100 double-tag
exit
interface <GEN_PORT>
mac access-group <MAC_ACC_LIST_NUM> in
exit
class-map <CMAP_NUM>
set class <CLASS_ID>
match access-group mac-access-list <MAC_ACC_LIST_NUM>
exit
meter <METER_NUM>
# NOTE: Must be: cbs < ebs.
#--------------- Kbps -- Kbit -- Kbps -- Kbit
meter-type trTCM cir 100 cbs 100 pir 200 ebs 200
MN.00320.E - 013 99
exit
policy-map 10
#change the .1P value to 1 for yellow packets
#AND drop red packets (green ones unchanged)
set meter <METER_NUM> exceed-action <SET-TRANSMIT> violate-action drop
set policy class <CLASS_ID>
exit
exit
#==============================================================================
#CONTEXT-EXIT
For the port <GEN_PORT> and a CVLAN (CVLAN 100 in the script, editable) sets the CIR/PIR CBS/EBS on
a Provider Bridge and Ingress Port.
PIR and EBS have to be considered as maximum Input rate and maximum Burst size.
The rule has to be repeated for all the <GEN_PORT> that need to be set.
6.8.11 Policing & ingress filtering (PB CVLAN&Pri Meter trTCM cBlind)
#CONTEXT-ENTRY
configure terminal
#CONTEXT::SM-OS(config)#
###############################################################################
# Script name: APP-POLINF-PB-CVLAN&Pri-Meter_trTCM_cBlind
#
# CIR/EIR on a Provider Bridge and C-VLAN+C-Prio.
# - ‘de-transmit-set’ option can only be
# applied in case of ‘mac access-group’ out.
#
# “<SET-TRANSMIT>” = “cos-transmit-set 1”
#
# Rev.0006
# (siae microelettronica)
################################################################+##############
#============================================================================
mac access-list extended <MAC_ACC_LIST_NUM>
permit any any vlan 100 cvlan-priority 7 double-tag
exit
interface <GEN_PORT>
mac access-group <MAC_ACC_LIST_NUM> in
exit
class-map <CMAP_NUM>
set class <CLASS_ID>
match access-group mac-access-list <MAC_ACC_LIST_NUM>
exit
meter <METER_NUM>
# NOTE: Must be: cbs < ebs.
#--------------- Kbps -- Kbit -- Kbps -- Kbit
For the port <GEN_PORT> and a CVLAN and a priority (CVLAN 100 and priority 7 in the script, editable)
sets the CIR/PIR CBS/EBS on a Provider Bridge and Ingress Port. Red packets are dropped. The script is
an example (edit if necessary).
PIR and EBS have to be considered as maximum Input rate and maximum Burst size.
The rule has to be repeated for all the <GEN_PORT> that need to be set.
6.8.12 Policing & ingress filtering (PB SVLAN Meter trTCM cBlind)
#CONTEXT-ENTRY
configure terminal
#CONTEXT::SM-OS(config)#
###############################################################################
# Script name: APP-POLINF-PB-SVLAN-Meter_trTCM_cBlind
#
# CIR/EIR on a Provider Bridge and S-VLAN.
# - ‘de-transmit-set’ option can only be
# applied in case of ‘mac access-group’ out.
#
# “<SET-TRANSMIT>” = “cos-transmit-set 1”
#
# Rev.0005
# (siae microelettronica)
################################################################+##############
#============================================================================
mac access-list extended <MAC_ACC_LIST_NUM>
permit any any svlan-id 100
exit
interface <GEN_PORT>
mac access-group <MAC_ACC_LIST_NUM> in
exit
class-map <CMAP_NUM>
set class <CLASS_ID>
match access-group mac-access-list <MAC_ACC_LIST_NUM>
exit
meter <METER_NUM>
# NOTE: Must be: cbs < ebs.
#--------------- Kbps -- Kbit -- Kbps -- Kbit
meter-type trTCM cir 100 cbs 100 pir 200 ebs 200
For the port <GEN_PORT> and a SVLAN (SVLAN 100 in the script, editable) sets the CIR/PIR CBS/EBS on
a Provider Bridge and Ingress Port.
PIR and EBS have to be considered as maximum Input rate and maximum Burst size.
The rule has to be repeated for all the <GEN_PORT> that need to be set.
6.8.13 Policing & ingress filtering (PB SVLAN&Pri Meter trTCM cBlind)
#CONTEXT-ENTRY
configure terminal
#CONTEXT::SM-OS(config)#
###############################################################################
# Script name: APP-POLINF-PB-SVLAN&Pri-Meter_trTCM_cBlind
#
# CIR/EIR on a Provider Bridge and S-VLAN+S-Prio.
# - ‘de-transmit-set’ option can only be
# applied in case of ‘mac access-group’ out.
#
# “<SET-TRANSMIT>” = “cos-transmit-set 1”
#
# Rev.0006
# (siae microelettronica)
################################################################+##############
#============================================================================
mac access-list extended <MAC_ACC_LIST_NUM>
permit any any svlan-id 100 svlan-priority 7
exit
interface <GEN_PORT>
mac access-group <MAC_ACC_LIST_NUM> in
exit
class-map <CMAP_NUM>
set class <CLASS_ID>
match access-group mac-access-list <MAC_ACC_LIST_NUM>
exit
meter <METER_NUM>
# NOTE: Must be: cbs < ebs.
#--------------- Kbps -- Kbit -- Kbps -- Kbit
For the port <GEN_PORT> and a SVLAN and a priority (SVLAN 100 and priority 7 in the script, editable)
sets the CIR/PIR CBS/EBS on a Provider Bridge and Ingress Port. Red packets are dropped.
PIR and EBS have to be considered as maximum Input rate and maximum Burst size.
The rule has to be repeated for all the <GEN_PORT> that need to be set.
6.8.14 Policing & ingress filtering (PB SVLAN&CVLAN Meter trTCM cBlind)
#CONTEXT-ENTRY
configure terminal
#CONTEXT::SM-OS(config)#
###############################################################################
# “<SET-TRANSMIT>” = “cos-transmit-set 1”
# Rev.0006
# (siae microelettronica)
################################################################+##############
#============================================================================
exit
interface <GEN_PORT>
exit
class-map <CMAP_NUM>
exit
meter <METER_NUM>
meter-type trTCM cir 100 cbs 100 pir 200 ebs 200
exit
policy-map 10
exit
exit
#==============================================================================
#CONTEXT-EXIT
For the port <GEN_PORT> and a SVLAN and a CVLAN (CVLAN200 and SVLAN 100 in the script, editable)
sets the CIR/PIR CBS/EBS on a Provider Bridge and Ingress Port. Red packets are dropped.
The script is an example (edit if necessary).
PIR and EBS have to be considered as maximum Input rate and maximum Burst size.
The rule has to be repeated for all the <GEN_PORT> that need to be set.
#CONTEXT-ENTRY
configure terminal
#CONTEXT::SM-OS(config)#
###############################################################################
# Script name: APP-POLINF-srcMacBASED
#
# To permit the access only to a certain src mac (on a certain port)
# ------------------------------------------------------------------
# PLEASE NOTE THAT THE 'DENY' PRIO IS LOWER THAN THE 'PERMIT' ONES
#
# Rev.0001
# (siae microelettronica)
################################################################+##############
#============================================================================
mac access-list extended <DENY_NUM>
deny any any priority 1
exit
mac access-list extended <PERMIT_NUM1>
permit host 00:90:90:90:09:09 any priority 2
exit
mac access-list extended <PERMIT_NUM2>
The purpose of this script is to permit the access only to a certain src mac (on port <GEN_PORT>).
In this case the 'deny' priority is lower than the 'permit' priority. Source MAC address must be inserted one
by one.
The rule has to be repeated for all the <GEN_PORT> that need to be set.
#CONTEXT-ENTRY
configure terminal
#CONTEXT::SM-OS(config)#
###############################################################################
# Script name: APP-CNG-TD
#
# Set the tail drop on a certain queue (it is the default algo)
# Rev.0002
# (siae microelettronica)
################################################################+##############
#============================================================================
queue-type <Q_ALGO_NUM>
set algo-type tailDrop
exit
queue 1 interface <GEN_PORT> qtype <Q_ALGO_NUM>
end
#==============================================================================
#CONTEXT-EXIT
For the port <GEN_PORT> sets the queue drop algorithm as tail drop (default). Generally set for most of
the queue. To be repeated for all the queues that need to be set.
#CONTEXT-ENTRY
configure terminal
#CONTEXT::SM-OS(config)#
###############################################################################
#============================================================
# Create 'WRED Queue Template':
queue-type 10
#-------------------------------------------------
# - min & max thres. range: 1-50000.
# - MPD=mark-probability-denominator.
# - MDP=max-drop-probability.
# - MPD acts as MDP: (1..50..100)%
#-------------------------------------------------
# All traffic is WRED processed:
# 1.non-TCP traffic:
random-detect dp 4 min-threshold 6500 max-threshold 7800 mark-probability-denominator
65
random-detect dp 3 min-threshold 10400 max-threshold 11700 mark-probability-denominator
50
# 2.TCP traffic:
random-detect dp 1 min-threshold 6500 max-threshold 7800 mark-probability-denominator
65
random-detect dp 0 min-threshold 10400 max-threshold 11700 mark-probability-denominator
50
#-------------------------------------------------
set algo-type wred queue-drop-algo enable
For the port <GEN_PORT> sets the queue drop algorithm as WRED. To be repeated for all the queues that
need to be set.
#CONTEXT-ENTRY
configure terminal
#CONTEXT::SM-OS(config)#
###############################################################################
# Script name: APP-SCH-SP
#
# Rev.0001
# (siae microelettronica)
################################################################+##############
#============================================================================
scheduler 1 interface <GEN_PORT> sched-algo strict-priority
end
#==============================================================================
#CONTEXT-EXIT
For the port <GEN_PORT> sets the packet scheduling algorithm as strict priority.
#CONTEXT-ENTRY
configure terminal
#CONTEXT::SM-OS(config)#
###############################################################################
# Script name: APP-SCH-WRR
#
# Rev.0001
# (siae microelettronica)
################################################################+##############
#============================================================================
scheduler 1 interface <GEN_PORT> sched-algo wrr
queue 1 interface <GEN_PORT> weight 1
queue 2 interface <GEN_PORT> weight 2
queue 3 interface <GEN_PORT> weight 3
queue 4 interface <GEN_PORT> weight 4
queue 5 interface <GEN_PORT> weight 5
queue 6 interface <GEN_PORT> weight 6
For the port <GEN_PORT> sets the packet scheduling algorithm as weighted round-robin with weight e.g.
8, 7, 6, 5, 4, 3, 2, 1 (values 1÷127) for queues 8, 7, 6, 5, 4, 3, 2, 1.
#CONTEXT-ENTRY
configure terminal
#CONTEXT::SM-OS(config)#
###############################################################################
# Script name: APP-SCH-SPWRR
#
# queue 8..5> SP part.
# queue 4..1> WRR part.
#
# Rev.0001
# (siae microelettronica)
################################################################+##############
#============================================================================
scheduler 1 interface <GEN_PORT> sched-algo wrr
queue 8 interface <GEN_PORT> weight 0
queue 7 interface <GEN_PORT> weight 0
queue 6 interface <GEN_PORT> weight 0
queue 5 interface <GEN_PORT> weight 0
queue 4 interface <GEN_PORT> weight 4
queue 3 interface <GEN_PORT> weight 3
queue 2 interface <GEN_PORT> weight 2
queue 1 interface <GEN_PORT> weight 1
end
#==============================================================================
#CONTEXT-EXIT
#CONTEXT-ENTRY
configure terminal
#CONTEXT::SM-OS(config)#
###############################################################################
# Script name: APP-SCH-RR
#
For the port <GEN_PORT> sets the packet scheduling algorithm as round-robin with same weight 1 for all
the queue. The user can edit the weights according his needs.
#CONTEXT-ENTRY
configure terminal
#CONTEXT::SM-OS(config)#
###############################################################################
# Script name: APP-SHP-PRT
#
# Rev.0002
# (siae microelettronica)
################################################################+##############
#============================================================================
interface <GEN_PORT>
#(kbps)
rate-limit output rate-value 10000 burst-value 10000
exit
end
#==============================================================================
#CONTEXT-EXIT
The purpose of this script is to apply the shaping that is the rate limit at the output port with 1st value as
max rate (kbps) and the 2nd value as max burst size (kbp).
#CONTEXT-ENTRY
configure terminal
#CONTEXT::SM-OS(config)#
###############################################################################
# Script name: APP-SHP-QUE
#
# Rev.0003
# (siae microelettronica)
################################################################+##############
#============================================================================
#(kbps)
shape-template <SHAPE_TEMP_NUM> cir 100 pir 200
queue 1 interface <GEN_PORT> shaper <SHAPE_TEMP_NUM>
end
#==============================================================================
#CONTEXT-EXIT
The purpose of this script is to apply the shape template <SHAPE_TEMP_NUM> with a defined CIR/PIR to
the scheduler (1, in this example) of <GEN_PORT> port.
To be repeated for all the schedulers that need to be set.
#CONTEXT-ENTRY
configure terminal
#CONTEXT::SM-OS(config)#
###############################################################################
# Script name: APP-STR
#
#
# Rev.0001
# (siae microelettronica)
################################################################+##############
#============================================================================
interface <GEN_PORT>
storm-control broadcast level 100
storm-control multicast level 100
storm-control dlf level 100
exit
end
#==============================================================================
#CONTEXT-EXIT
Figure - Reference
4x8 - SCHEDULERS x QUEUES - SCHEMA
#############################################################################
# DEFAULT CONFIGURATION
# ---------------------
# H-LVLs: 4th 3rd 2nd 1st
# REMAP L2 L1 L0 P0
# |P| > Q1 ======== SP
# VLAN |b| > : : : +---(1)
# GRP4 |i| > : : : | 4 |--
# |t| > : : : +---+ \
# |s| > Q8 ======== \
# |
# |P| > Q9 ======== SP |
# VLAN |b| > : : : +---(1) |
# GRP5 |i| > : : : | 5 |-- |
# |t| > : : : +---+ \ |WDRR
# |s| > Q16 ======== +---+
# | 1 |--
# |P| > Q17 ======== SP +---+ \
# VLAN |b| > : : : +---(1)/ | \
# GRP6 |i| > : : : | 6 |-- | |
# |t| > : : : +---+ | |LO-SP
# |s| > Q24 ======== | +---+
# | | 0 |- - - >[PORT]
# |P| > Q25 ======== SP / +---+
# VLAN |b| > : : : +---(1)/ |HI-SP
# GRP7 |i| > : : : | 7 |-- |
# |t| > : : : +---+ |
# |s| > Q32 ======== /
# +---+ /
# GOLD| 2 |--
# |P| > Q33 ======== SP +---+
# VLAN |b| > : : : +---(1)/ WDRR (emul.SP)
# GRP3 |i| > : : : | 3 |--
# |t| > : : : +---+
# |s| > Q40 ========
#
#############################################################################
#CONTEXT-ENTRY
configure terminal
###############################################################################
# Script name: HQOS-SCH4x8-ADM
#
#CONTEXT-ENTRY
###############################################################################
# Script name: HQOS-SCH4x8-OPR
#
# Rev.0001
# (siae microelettronica)
##############################################################+################
reload
#==============================================================================
#CONTEXT-EXIT
#CONTEXT-ENTRY
configure terminal
###############################################################################
# Script name: HQOS-MAP-VLAN
#
# NOTE
# - qos vlan-map allows 1 vlanId only.
#
# Rev.0001
# (siae microelettronica)
##############################################################+################
#-----------------------------------------------------------
# STD
qos vlan-map 10; map vlan <VLANx>; exit
qos vlan-map 11; map vlan <VLANy>; exit
qos vlan-map 12; map vlan <VLANw>; exit
qos vlan-map 13; map vlan <VLANz>; exit
#-----------------------------------------------------------
# GOLD
qos vlan-map 20; map vlan <gVLAN>; exit
qos vlan-map 21; map vlan <gMNGT>; exit
exit
#==============================================================================
NO-FORM
#CONTEXT-ENTRY
configure terminal
###############################################################################
# Script name: HQOS-MAP-VLAN-NO
#
# Rev.0001
# (siae microelettronica)
##############################################################+################
#-----------------------------------------------------------
no qos vlan-map <VLAN-MAP-ID>
exit
#==============================================================================
#CONTEXT-EXIT
#CONTEXT-ENTRY
configure terminal
###############################################################################
# Script name: HQOS-MAP-PCP
#
# NOTE
# - This Pbits remapping function acts as example only.
# - A full map or a single entry implementing the default
# Que = Pbits + 1
# can not be declared. So:
# - Only remap exceptions can be declared inside the map.
#
# Que = (8 - pcp)
# --------------------
# Q
# P 1 2 3 4 5 6 7 8
# 0 x
# 1 x
# 2 x
# 3 x
# 4 x
# 5 x
# 6 x
# 7 x
#
# Rev.0001
exit
#==============================================================================
#CONTEXT-EXIT
#CONTEXT-ENTRY
configure terminal
###############################################################################
# Script name: HQOS-MAP-PCP1-NO
#
# Rev.0001
# (siae microelettronica)
##############################################################+################
#-----------------------------------------------------------
scheduler-priority-map <Ix>
no map in-priority-type vlanPri in-priority <PRIx>
no map in-priority-type vlanPri in-priority <PRIy>
exit
exit
#==============================================================================
#CONTEXT-EXIT
NO-FORM (PCP-MAP)
#CONTEXT-ENTRY
configure terminal
###############################################################################
# Script name: HQOS-MAP-PCP8-NO
#
# Rev.0001
# (siae microelettronica)
exit
#==============================================================================
#CONTEXT-EXIT
#CONTEXT-ENTRY
configure terminal
###############################################################################
# Script name: HQOS-MAP-VLAN-PCP
#
# Rev.0001
# (siae microelettronica)
##############################################################+################
#-----------------------------------------------------------
# STD
qos vlan-map 10; map vlan <VLANx> scheduler-priority-map <Ix> scheduler-priority-type
vlanPri; exit
qos vlan-map 11; map vlan <VLANy> scheduler-priority-map <Iy> scheduler-priority-type
vlanPri; exit
qos vlan-map 12; map vlan <VLANw> scheduler-priority-map <Iw> scheduler-priority-type
vlanPri; exit
qos vlan-map 13; map vlan <VLANx> scheduler-priority-map <Iz> scheduler-priority-type
vlanPri; exit
#-----------------------------------------------------------
# GOLD
qos vlan-map 20; map vlan <gVLAN> scheduler-priority-map <Ix> scheduler-priority-type
vlanPri; exit
qos vlan-map 21; map vlan <gMNGT> scheduler-priority-map <Ix> scheduler-priority-type
vlanPri; exit
exit
#==============================================================================
#CONTEXT-EXIT
#CONTEXT-ENTRY
configure terminal
###############################################################################
# Script name: HQOS-MAP-VLAN-PRI-NO
#
# Rev.0001
# (siae microelettronica)
exit
#==============================================================================
#CONTEXT-EXIT
#CONTEXT-ENTRY
configure terminal
###############################################################################
# Script name: HQOS-MAP-SHAPE
#
# Rev.0001
# (siae microelettronica)
##############################################################+################
#-----------------------------------------------------------
# STD
shape-template 10 cir <Kbps1> pir <Kbps1>
shape-template 11 cir <Kbps2> pir <Kbps2>
shape-template 12 cir <Kbps3> pir <Kbps3>
shape-template 13 cir <Kbps4> pir <Kbps4>
#-----------------------------------------------------------
# GOLD
shape-template 20 cir <KbpsG> pir <KbpsG>
exit
#==============================================================================
#CONTEXT-EXIT
NO-FORM
#CONTEXT-ENTRY
configure terminal
###############################################################################
# Script name: HQOS-MAP-SHAPE-NO
#
# Rev.0001
# (siae microelettronica)
##############################################################+################
#-----------------------------------------------------------
no shape-template <Ix>
exit
#CONTEXT-ENTRY
configure terminal
###############################################################################
# Script name: HQOS-SCHED-VLANMAP
#
# Rev.0001
# (siae microelettronica)
##############################################################+################
#-----------------------------------------------------------
# STD
scheduler 4 interface <PORT> vlan-map 10
scheduler 5 interface <PORT> vlan-map 11
scheduler 6 interface <PORT> vlan-map 12
scheduler 7 interface <PORT> vlan-map 13
#-----------------------------------------------------------
# GOLD
scheduler 3 interface <PORT> vlan-map 20
scheduler 3 interface <PORT> vlan-map 21
exit
#==============================================================================
#CONTEXT-EXIT
NO-FORM
#CONTEXT-ENTRY
configure terminal
###############################################################################
# Script name: HQOS-SCHED-VLANMAP-NO
#
# Rev.0001
# (siae microelettronica)
##############################################################+################
#-----------------------------------------------------------
no scheduler <Ix> interface <PORT> vlan-map <Iy>
exit
#==============================================================================
#CONTEXT-EXIT
#CONTEXT-ENTRY
configure terminal
###############################################################################
# Script name: HQOS-SCHED-SHAPE
#
# Rev.0001
# (siae microelettronica)
##############################################################+################
#-----------------------------------------------------------
# STD
scheduler 4 interface <PORT> shape 10
scheduler 5 interface <PORT> shape 11
scheduler 6 interface <PORT> shape 12
scheduler 7 interface <PORT> shape 13
#-----------------------------------------------------------
# GOLD
scheduler 3 interface <PORT> shape 20
exit
#==============================================================================
#CONTEXT-EXIT
NO-FORM
#CONTEXT-ENTRY
configure terminal
###############################################################################
# Script name: HQOS-SCHED-SHAPE-NO
#
# Rev.0001
# (siae microelettronica)
##############################################################+################
#-----------------------------------------------------------
scheduler <Ix> interface <PORT> shape 0
exit
#==============================================================================
#CONTEXT-EXIT
#CONTEXT-ENTRY
configure terminal
###############################################################################
# Script name: HQOS-SCHED-L0-WGHT
exit
#==============================================================================
#CONTEXT-EXIT
#CONTEXT-ENTRY
configure terminal
###############################################################################
# Script name: HQOS-SCHED-L1-ALGO-SP
#
# 3rd LEVEL BW ALLOCATION (NESTED TO THE 2nd LEVEL)
# -------------------------------------------------
# L1-SP:
# traffic Que(i) stops Que(i-1)
#
# Rev.0001
# (siae microelettronica)
##############################################################+################
scheduler 4 interface <PORT> sched-algo strict-priority
scheduler 5 interface <PORT> sched-algo strict-priority
scheduler 6 interface <PORT> sched-algo strict-priority
scheduler 7 interface <PORT> sched-algo strict-priority
exit
#CONTEXT-ENTRY
configure terminal
###############################################################################
# Script name: HQOS- SCHED-L1-ALGO-WRR
#
# 3rd LEVEL BW ALLOCATION (NESTED TO THE 2nd LEVEL)
# -------------------------------------------------
# weight -> BW% allocation:
# BW%ofQue(1) = 5 / (5+10+15+20+20+15+10+5) => 5%
# BW%ofQue(2) = 10 / (5+10+15+20+20+15+10+5) => 10%
# BW%ofQue(3) = 15 / (5+10+15+20+20+15+10+5) => 15%
# BW%ofQue(4) = 20 / (5+10+15+20+20+15+10+5) => 20%
# BW%ofQue(5) = 20 / (5+10+15+20+20+15+10+5) => 20%
# BW%ofQue(6) = 15 / (5+10+15+20+20+15+10+5) => 15%
# BW%ofQue(7) = 10 / (5+10+15+20+20+15+10+5) => 10%
# BW%ofQue(8) = 5 / (5+10+15+20+20+15+10+5) => 5%
#
# BW%: The assured BW% in case of congestion.
# Additional BW% is available in case of non-congestion.
#
# Rev.0001
# (siae microelettronica)
##############################################################+################
#-----------------------------------------------------------
scheduler 4 interface <PORT> sched-algo wrr
#-----------------------------------------------------------
queue 1 interface <PORT> weight 5
queue 2 interface <PORT> weight 10
queue 3 interface <PORT> weight 15
queue 4 interface <PORT> weight 20
queue 5 interface <PORT> weight 20
queue 6 interface <PORT> weight 15
queue 7 interface <PORT> weight 10
queue 8 interface <PORT> weight 5
#-----------------------------------------------------------
scheduler 5 interface <PORT> sched-algo wrr
#-----------------------------------------------------------
queue 9 interface <PORT> weight 5
queue 10 interface <PORT> weight 10
queue 11 interface <PORT> weight 15
queue 12 interface <PORT> weight 20
queue 13 interface <PORT> weight 20
queue 14 interface <PORT> weight 15
queue 15 interface <PORT> weight 10
queue 16 interface <PORT> weight 5
exit
#==============================================================================
#CONTEXT-EXIT
#CONTEXT-ENTRY
configure terminal
###############################################################################
# Script name: HQOS-SCHED-L1-ALGO-MIX
#
# 3rd LEVEL BW ALLOCATION (NESTED TO THE 2nd LEVEL)
# -------------------------------------------------
# L1-SP:
# traffic Que(i) stops Que(i-1)
#
# L1-WRR:
# weight -> BW% allocation:
# BW%ofQue(q+1) = 5 / (5+10+15+20+20+15+10+5) => 5%
# BW%ofQue(q+2) = 10 / (5+10+15+20+20+15+10+5) => 10%
# BW%ofQue(q+3) = 15 / (5+10+15+20+20+15+10+5) => 15%
# BW%ofQue(q+4) = 20 / (5+10+15+20+20+15+10+5) => 20%
# BW%ofQue(q+5) = 20 / (5+10+15+20+20+15+10+5) => 20%
# BW%ofQue(q+6) = 15 / (5+10+15+20+20+15+10+5) => 15%
# BW%ofQue(q+7) = 10 / (5+10+15+20+20+15+10+5) => 10%
# BW%ofQue(q+8) = 5 / (5+10+15+20+20+15+10+5) => 5%
#
exit
#==============================================================================
#CONTEXT-EXIT
#CONTEXT-ENTRY
configure terminal
###############################################################################
# Script name: HQOS-QUE-L2-ALGO-MIX
#
# 4th LEVEL BW ALLOCATION (NESTED TO THE 3rd LEVEL)
# -------------------------------------------------
# L2-WRR:
# weight -> BW% allocation:
exit
#==============================================================================
#CONTEXT-EXIT
#CONTEXT-ENTRY
configure terminal
###############################################################################
# Script name: HQOS-SCH4x8-OFF
#
# Rev.0001
# (siae microelettronica)
##############################################################+################
no hierarchical-scheduler interface <PORT>
exit
reload
#==============================================================================
#CONTEXT-EXIT
show hierarchical-sched
show hierarchical-sched interface <i>
show sched-hierarchy
show sched-hierarchy interface <i>
show scheduler-priority-map
show scheduler-priority-map <map-id>
show scheduler-priority-map queue-id <1..8>
show qos vlan-map
show qos vlan-map <map-id>
RMON (Remote Monitoring) is a standard to provide a set of services of statistics count, monitoring and
alarm report with reference to the activity of a LAN network.
SIAE equipment support RMONv1, first MIB, as defined in RFC2819. This MIB contains real-time LAN sta-
tistics e.g. utilization, collisions and CRC errors. These counters are managed locally into the radio equip-
ment and are defined independently for each port of the device (LAN and Radio interfaces).
SIAE NMS5UX systems collects periodically this data and stores it into the network database. More in de-
tails, the RMON implementation in SIAE Network Elements is classified into:
• RMON – Ethernet Statistics: These are the counters data collected in real time by the Network
Equipment. These data are stored in the network equipment itself and, the NMS5UX Statistics view-
er (or WebLCT) can visualize this data with the “Refresh” button.
• RMON – Ethernet History: This is managed by the NMS5UX through the collection of the counters
data from the Network Equipment. After a periodical polling to the Network Element, NMS5UX col-
lects all data and these data may be shown as the RMON History. The “RMON Ethernet Statistics
and Ethernet History” are collected and stored in the Network Equipment.
• RMON – Ethernet Service Statistics: These are the counters data collected in real time by the Net-
work Equipment related to a specific priority or a specific CVID or a specific SVID. These data are
stored in the network equipment itself and, the NMS5UX Statistics viewer (or WebLCT) can visualize
this data with the “Refresh” button.
• RMON – Ethernet Service History: This is managed by the NMS5UX through (or WebLCT) the col-
lection of the counters data from the Network Equipment related to a specific priority or a specific
CVID or a specific SVID. After a periodical polling to the Network Element, the NMS5UX collects all
the data and these data are seen as the RMON Ethernet Service History.
Ethernet statistics
Ethernet History
• Interval (s) = interval in seconds where the instances of measurement will be produced
• Priority = If priority was selected into Select service, select the internal queue to perform the meas-
urement
• CVID = If priority was selected into Select service, select one of used CVID
• Interval (s) = interval in seconds where the instances of measurement will be produced
• CVID = If priority was selected into Select service, select one of used CVID
RMON Ethernet Statistics show the counters for each port of the device that are stored into the equipment
on site.
Into the equipment it can be chosen to store the values with a sampling period that can be defined by
Interval (s), the most used values are: 1 min and 15 min. For each sampling period the counters values
are stored into the equipment. After a predefined period (polling period), all the RMON data stored by the
equipment are get by the NMS5UX. The polling period can be either less than 4 hours (if the sampling pe-
riod is 1 min) or 1 day (in case the sampling period is 15 min). The NMS5UX aggregates the files received
to create a bigger database with the History of the Performance Monitoring samples.
Here below are described the RMON counters for Ethernet History available for each device interface (LAN
and radio ports):
• DropEvents (RX): Total number of events (frames, or whole queue contents) in which packets were
dropped by the interface due to lack of resources.
• Octets (RX): Total number of octets of data (including those in bad packets) received by the inter-
face.
• Pkts (RX): Total number of packets (including bad packets, broadcast packets, and multicast pack-
ets) received.
• Broadcast Pkts (RX): Total number of good packets received that were directed to the broadcast
address.
• Multicast Pkts (RX): Total number of good packets received that were directed to a multicast ad-
dress.
• Undersize Pkts (RX): Total number of packets received that were less than 64 octets long and were
otherwise well formed.
• Oversize Pkts (RX): The number of packets received during this sampling interval that were longer
than maximum allowable length (excluding framing bits but including FCS octets) but were other-
wise well formed.
• Fragments (RX): Total number of packets received that were less than 64 octets in length and had
either a bad Frame Check Sequence (FCS) with an integral number of octets (FCS Error) or a bad
FCS with a non integral number of octets (Alignment Error).
• CRC Align Errors (RX): Total number of packets received that had a length between 64 and the Max
Packet Size configured on the equipment switch (in any case not exceeding 10240 bytes) with bad
• Utilization (RX): The best estimate of the mean physical layer network utilization on this interface
during this sampling interval, in hundredths of a percent. The percentage is always referred to a
1Gbit/s port speed. So, it represents the mean RX throughput measured on the port during the sam-
pling period and it is expressed as a percentage of a port speed.
For Ethernet Statistics the available counter (all into RX) are: DropEvents, Octets, Pkts, Broadcast Pkts,
Multicast Pkts, Undersize Pkts, Oversize Pkts, Fragments, CRC Align Errors, Pkts 64 Octets, Pkts 65 to 127
Octets, Pkts 128 to 255 Octets, Pkts 256 to 511 Octets, Pkts 512 to 1023 Octets, Pkts > 1024 Octets.
All the counters described above are part of the RMON statistics and it is not possible to collect only a sub-
set of them. It is however possible to select on which equipment interface activate the RMON statistics (for
example, they can be enabled only on the one LAN port). This allows reducing the total amount of PM data,
for example avoiding data collection from unused LAN interfaces. This can be done on all Payload Interfaces
(regardless if electrical or optical), the Radio interfaces are included as well.
Warning: on Radio port of ALFOplus80HD the reference speed is 2,5Gbit/s, so 2Gbit/s of traffic gives an
Utilization around 80%.
• RMON recommended per service maximum instance number: 40 (within the previous 84 instances)
• RMON recommended maximum bucket number: 2400
• RMON recommended sampling time: 60s, 300s, 600s, 900s, 1800s, 3600s
• For high values of Buckets, acquisition from WebLCT may be slow in this case it is suggested to use
CLI commands for RMON.
• Ethernet Service Statistics and Ethernet Service History include also wrong FCS frames or too long
frames. This can be verified with port counters.
• RMON Statistics recommended maximum instance number: 74 (max 10 per port and max 64 per
service)
• RMON recommended per service maximum instance number: 64 (within this max 40 Vlan instanc-
es)
• RMON recommended maximum History 1 minute instances: 74 (with a maximum 240 buckets each)
• RMON recommended minimum sampling time: 1 minute
• RMON recommended sampling time: 60s, 300s, 600s, 900s, 1800s, 3600s
• For high values of Buckets, acquisition from WebLCT may be slow in this case it is suggested to use
CLI commands for RMON.
• Ethernet Service Statistics and Ethernet Service History include also wrong FCS frames or too long
frames. This can be verified with port counters.
Examples:
Interval(s) 60 (1 min) and 10 Buckets this shows only the 10 last measurements
Into SM-OS switch it is possible to set RMON counters per Service (Vlan or Priority Queues). The Service
counters can be activated with the following variables.
• Received Pkts: Total number of packets (including bad packets, broadcast packets, and multicast
packets) received.
• Received Octets: Total number of octets of data (including those in bad packets) received by the
interface.
• Sent Octets: Total number of octets of data (including those in bad packets) transmitted.
• Received Discard Pkts: Total number of inbound packets which were discarded due to forbidden for-
warding or policing violation.
• Sent Discard Pkts: Total number of outbound packets which were discarded. Reasons for discarding
such packets could be buffer space lack due to output shaping, rate limitation or egress MTU ex-
ceeded.
• Received Non Unicast Pkts: Total number of inbound Multicast and Broadcat packets
• Sent Non Unicast Pkts: Total number of outbound Multicast and Broadcat packets
The RMON Ethernet Service History can be activated and collected from WebLCT or NMS5UX (Network
Management System).
RMON STATS
#CONTEXT-ENTRY
configure terminal
#CONTEXT::SM-OS(config)#
###############################################################################
# Script name: CNTR-RMON-STATS
#
# Rev.0003
# (siae microelettronica)
################################################################+##############
set rmon enable
#============================================================================
interface <LAN1>
rmon collection stats 1 owner rmonObserver1
exit
interface <LAN2>
rmon collection stats 2 owner rmonObserver2
exit
interface <RADIO>
rmon collection stats 3 owner rmonObserver3
exit
exit
#==============================================================================
#show rmon
#show rmon statistics
#show rmon statistics 1
#show rmon statistics 2
#show rmon statistics 3
#==============================================================================
#CONTEXT-EXIT
Identifies an entry in the alarm table: the entry defines a diagnostic sample at a particular level for a MIB
object in the device and allows the user to enter the name of the owner of the RMON group of statistics (in
this case the owner is rmonObserver1 for LAN1, rmonObserver2 for LAN2, rmonObserver3 for RADIO).
This command enables RMON statistic collection for a defined VLAN on the selected interface.
Identifies an entry in the alarm table: the entry defines a diagnostic sample at a particular level for a MIB
object in the device and allows the user to enter the name of the owner of the RMON group of statistics (in
this case the owner is rmonObserver1 for LAN1, rmonObserver2 for LAN2, rmonObserver3 for RADIO).
This command enables RMON statistic collection for a defined priority PCP on the selected interface.
Identifies an entry in the alarm table: the entry defines a diagnostic sample at a particular level for a MIB
object in the device and allows the user to enter the name of the owner of the RMON group of statistics (in
this case the owner is rmonObserver1 for LAN1, rmonObserver2 for LAN2, rmonObserver3 for RADIO).
RMON history
#CONTEXT-ENTRY
configure terminal
#CONTEXT::SM-OS(config)#
###############################################################################
# Script name: CNTR-RMON-HIST
#
# Rev.0003
# (siae microelettronica)
################################################################+##############
set rmon enable
#============================================================================
This command enables RMON History per PCP with the number of buckets and interval time on the selected
interface.
#CONTEXT-ENTRY
###############################################################################
# Script name: CNTR-CLR-STATS
#
# Rev.0001
# (siae microelettronica)
################################################################+##############
#============================================================================
clear counters
#==============================================================================
#CONTEXT-EXIT
#CONTEXT-ENTRY
configure terminal
#CONTEXT::SM-OS(config)#
###############################################################################
# Script name: FEAT-SYS-MTU
#
# Rev.0001
# (siae microelettronica)
################################################################+##############
#============================================================================
system mtu <46-12266>
exit
#==============================================================================
#CONTEXT-EXIT
The purpose of this script is to define the MTU into the switch.
#CONTEXT-ENTRY
configure terminal
#CONTEXT::SM-OS(config)#
#################################################################
# Script name: FEAT-PNP-VLAN-REWR
#
# - This command configures a VLAN translation entry for a PNP.
# VLAN translation works on bidirectional way once it is
# configured on a port.
# No need to declare <EXT-VLAN> on vlan table: switch works
# on relayed <VLAN>.
#
# Rev.0001
# (siae microelettronica)
################################################################+
#==============================================================
interface <PNP_PORT>
switchport service vlan mapping <EXT-VLAN> <VLAN>
no shutdown
exit
exit
#================================================================
#CONTEXT-EXIT
The purpose of this script is to configure a VLAN translation entry for a PNP. VLAN translation works on
bidirectional way once it is configured on a port.
#CONTEXT-ENTRY
configure terminal
#CONTEXT::SM-OS(config)#
###############################################################################
# Script name: FEAT-PORT-IS
#
# Before After
# <LAN1> +-----------+ <LAN1> +--------------+
# <--> o <-->| | <--> o <--> \ |
# <LAN2> | |<--> o <--> <LAN2> | > <--> o <-->
# <--> o <-->| | <RADIO> <--> o <--> / | <RADIO>
# +-----------+ +--------------+
# multipoint rooted-multipoint
#
# Rev.0002
# (siae microelettronica)
################################################################+##############
#============================================================================
# set <LAN1> <--> <LAN2> isolation
interface <LAN1>
port-isolation <RADIO>
exit
interface <LAN2>
port-isolation <RADIO>
exit
interface <RADIO>
port-isolation <LAN1> <LAN2>
exit
exit
#==============================================================================
show port-isolation
#==============================================================================
#CONTEXT-EXIT
The script configures the list of ports through which the traffic is allowed.
LAN1 and LAN2 port can send traffic to RADIO port. RADIO Port can send traffic to both LAN1 and LAN2
ports.
LAN1 and LAN2 ports can not send traffic each other.
#CONTEXT-ENTRY
configure terminal
#CONTEXT::SM-OS(config)#
###############################################################################
# Script name: FEAT-MAC
#
# Rev.0001
# (siae microelettronica)
################################################################+##############
#============================================================================
set mac-learning [enable|disable]
mac-address-table aging-time <10..1000000>
exit
#==============================================================================
#CONTEXT-EXIT
#CONTEXT-ENTRY
configure terminal
#CONTEXT::SM-OS(config)#
###############################################################################
# Script name: FEAT-MAC-CLR
#
# Rev.0001
# (siae microelettronica)
################################################################+##############
#============================================================================
clear mac-address-table dynamic
exit
#==============================================================================
#CONTEXT-EXIT
#CONTEXT-ENTRY
configure terminal
#CONTEXT::SM-OS(config)#
###############################################################################
# Script name: FEAT-JUMBO
#
Messages larger than the MTU are divided into smaller packets before transmission.
6.10.7 Ethertype
#CONTEXT-ENTRY
configure terminal
#CONTEXT::SM-OS(config)#
###############################################################################
# Script name: FEAT-ETHER
#
# Rev.0001
# (siae microelettronica)
################################################################+##############
#============================================================================
interface <PNP_PORT>
switchport egress ether-type 0x8100
switchport ingress ether-type 0x8100
exit
exit
#==============================================================================
#CONTEXT-EXIT
This script forces the Ethertype 8100 both in TX and RX on the port <PNP-PORT>.
#CONTEXT-ENTRY
configure terminal
#CONTEXT::SM-OS(config)#
###############################################################################
# Script name: FEAT-LOOP-LL
#
# +--PHY--+ +---
# --> o --.-- | --> |
# line | | | switch
# <-- o <- X | <-- |
# +-------+ +---
#
# Rev.0001
# (siae microelettronica)
################################################################+##############
#============================================================================
interface <LINE_PORT>
loopback local
exit
exit
#==============================================================================
#CONTEXT-EXIT
#CONTEXT-ENTRY
configure terminal
#CONTEXT::SM-OS(config)#
###############################################################################
# Script name: FEAT-PORT-MIR
#
# <LAN1> +-----------+
# <--> o <-->| |
# <LAN2> | |<--> o <-->
# <--> o <-->| | <RADIO>
# +-----------+
# Redirect <LAN1> (rx|tx|both) traffic to <LAN2>.
#
# Rev.0001
# (siae microelettronica)
################################################################+##############
#============================================================================
monitor session 1 source interface <LAN1> [tx|rx|both]
monitor session 1 destination interface <LAN2>
exit
#==============================================================================
#CONTEXT-EXIT
This script allows to monitor the traffic rx or tx or both on a specific port (LAN1) and send it to another
port (LAN2).
6.10.10 Mediatype
#CONTEXT-ENTRY
configure terminal
#CONTEXT::SM-OS(config)#
###############################################################################
# Script name: FEAT-MEDIA
#
# Rev.0001
# (siae microelettronica)
################################################################+##############
#============================================================================
interface <LINE_PORT>
media-type [copper|fiber]
exit
exit
#==============================================================================
#CONTEXT-EXIT
Set the port Media-type as copper/fiber for the combo interfaces (IDU AGS-20).
#CONTEXT-ENTRY
configure terminal
#CONTEXT::SM-OS(config)#
###############################################################################
# Script name: FEAT-MDIX
#
# - Enables the MDI/MDIX Auto Crossover of the interface.
#
# Rev.0001
# (siae microelettronica)
################################################################+##############
#============================================================================
interface <LINE_PORT>
mdix auto
exit
exit
#==============================================================================
#CONTEXT-EXIT
6.10.12 MDIX
#CONTEXT-ENTRY
configure terminal
#CONTEXT::SM-OS(config)#
###############################################################################
# Script name: FEAT-MEDIA-DIX
#
# - Set the MDIX at the port interface.
#
# Rev.0001
# (siae microelettronica)
################################################################+##############
#============================================================================
interface <LINE_PORT>
set port mdix
exit
exit
#==============================================================================
#CONTEXT-EXIT
#CONTEXT-ENTRY
configure terminal
#CONTEXT::SM-OS(config)#
###############################################################################
# Script name: FEAT-MEDIA-DI
#
# - Set the MDI at the port interface.
#
# Rev.0001
# (siae microelettronica)
################################################################+##############
#============================================================================
interface <LINE_PORT>
set port mdi
exit
exit
#==============================================================================
#CONTEXT-EXIT
#CONTEXT-ENTRY
###############################################################################
# Script name: FEAT-ADV-PNP-ETHVLAN-REWR
#
# - This command configures a VLAN translation entry for a PNP.
# VLAN translation works on bidirectional way once it is
# configured on a port.
# No need to declare <USR_VLAN> on vlan table: switch works
# on relayed <NTW_VLAN>.
# - Changing Ingress/Egress TPID to 0x8100, PNP acts as CBP,
# emulating a Customer-Bridge and operating VLAN translation
# on C-VLAN.
#
# Rev.0001
# (siae microelettronica)
################################################################+##############
bridge-mode provider-edge
#============================================================================
#CONTEXT-ENTRY
configure terminal
#CONTEXT::SM-OS(config)#
#######################################################################
# Script name: PWE3-FEAT-DO
#
# Rev.0001
# (siae microelettronica)
################################################################+######
# enables pwe3 feature on the equipment
pwe3 enable
exit
#======================================================================
#CONTEXT-ENTRY
configure terminal
#CONTEXT::SM-OS(config)#
#######################################################################
# Script name: PWE3-FEAT-UNDO
#
# Rev.0001
# (siae microelettronica)
################################################################+######
# disables pwe3 feature on the equipment
pwe3 disable
exit
#======================================================================
#CONTEXT-EXIT
#CONTEXT-ENTRY
configure terminal
#CONTEXT::SM-OS(config)#
#######################################################################
# Script name: PWE3-ALARMS
#
# Rev.0001
# (siae microelettronica)
################################################################+######
#====================================================================
# changes severity codes associated to pwe3 alarms:
# <alarm-type>: localTdmDown |localPsnDown |remoteTdmDown |remotePsnDown
# <severity-code>: disable
# |statusTrapEnable |warningTrapEnable |minorTrapEnable |majorTrapEnable
|criticalTrapEnable
# |statusTrapDisable|warningTrapDisable|minorTrapDisable|majorTrapDis-
able|criticalTrapDisable
#
pwe3 alarm <alarm-type> severity <severity-code>
exit
#======================================================================
#CONTEXT-EXIT
#CONTEXT-ENTRY
configure terminal
#CONTEXT::SM-OS(config)#
#######################################################################
# Script name: PWE3-PROF-CONFIG-DO
#
# Rev.0001
# (siae microelettronica)
################################################################+######
pwe3 profile <integer(1-32)>
# configures pwe3 profile:
# <encapsulation> = { mef8
# | mpls { label <integer(0-1048575)> }
# | udp { udp-port <integer(0-1048575)>
# type { ipv4
# | ipv6
# }
# src-ip <string(32)>
# dest-ip <string(32)>
# }
# }
# c-tag <integer(2-4094)>
# dest-mac-address <mac_addr>
set encapsulation <encapsulation>
#CONTEXT-ENTRY
configure terminal
#CONTEXT::SM-OS(config)#
#######################################################################
# Script name: PWE3-PROF-CONFIG-UNDO
#
# Rev.0001
# (siae microelettronica)
################################################################+######
# deletes pwe3 profile
no pwe3 profile <integer(1-32)>
exit
#======================================================================
#CONTEXT-EXIT
#CONTEXT-ENTRY
configure terminal
#CONTEXT::SM-OS(config)#
#######################################################################
# Script name: PWE3-E1-CONFIG
#
# Rev.0001
# (siae microelettronica)
################################################################+######
pwe3 controller E1 <integer(1-32)>
# bind controller E1 to a given profile
# and sets channel identifier according to encapsulation type
add to profile <integer(0-32)> as pwe3-id <integer(0-1048575)>
#disables/enables retiming
set retiming {disable | enable}
exit
exit
#======================================================================
#CONTEXT-EXIT
#CONTEXT-ENTRY
#######################################################################
# Script name: PWE3-SHOWS
#
# Rev.0001
# (siae microelettronica)
################################################################+######
# shows pwe3 status:
show pwe3 status
#======================================================================
#CONTEXT-EXIT
• Script name: PWE3-SHOWS
#CONTEXT-ENTRY
###############################################################################
# Script name: SYS-ADM-HLRST
#
# Rev.0001
# (siae microelettronica)
################################################################+##############
#============================================================================
set hitless-restart enable
HITLESS RESTART
#CONTEXT-ENTRY
configure terminal
#CONTEXT::SM-OS(config)#
###############################################################
# Script name: APP-L2PT
#
# Rev.0001
# (siae microelettronica)
##############################################################+
# cos/pcp for encapsulated packet:
l2protocol-tunnel cos 3
interface <LINE_PORT>
l2protocol-tunnel stp
l2protocol-tunnel dot1x
l2protocol-tunnel lacp
l2protocol-tunnel gmrp
l2protocol-tunnel gvrp
l2protocol-tunnel mmrp
l2protocol-tunnel mvrp
l2protocol-tunnel igmp
l2protocol-tunnel lldp
exit
#CONTEXT::SM-OS(config)#
exit
#==============================================================
#show l2protocol tunnel-mac-address
#show l2protocol-tunnel summary
#show l2protocol-tunnel
#==============================================================
#CONTEXT-EXIT
• Dot1x
• LACP
• STP
• GVRP
• GMRP
• IGMP
• LLDP
• Peer (default) protocol is terminated on the defined port to communicate with remote peer
#CONTEXT-ENTRY
configure terminal
#CONTEXT::SM-OS (config)#
###############################################################
# Script name: APP-L2PT-P
#
# Rev.0001
# (siae microelettronica)
##############################################################+
interface <LINE_PORT>
l2protocol-peer stp
l2protocol-peer lacp
exit
#CONTEXT::iss(config)#
exit
#==============================================================
#CONTEXT-EXIT
• STP
• LACP
#CONTEXT-ENTRY
configure terminal
#CONTEXT::SM-OS(config)#
###############################################################
l2protocol-discard lldp
exit
#CONTEXT::SM-OS(config)#
exit
#==============================================================
#show l2protocol-discard statistics
#==============================================================
#CONTEXT-EXIT
• Dot1x
• LACP
• STP
• GVRP
• GMRP
• IGMP
• LLDP.
#CONTEXT-ENTRY
configure terminal
#CONTEXT::SM-OS(config)#
###############################################################################
# Script name: CPLANE-ELP
#
# ELP is available as a special LAG case (max-ports 1).
# This template builds a ELP with the following properties:
# - aggregator interface: po100.
# - aggregated interfaces: LAN1, LAN2.
#
# Rev.0001
# (siae microelettronica)
##############################################################+################
#============================================================================
# Global init
no shutdown port-channel
set port-channel enable
set port-channel independentmode disable
# LAN1 connector
interface <LAN1>
no channel-group
exit
# LAN2 connector
interface <LAN2>
no channel-group
exit
#============================================================================
# Per-aggregator configuration
interface port-channel 100
shutdown
mtu 1500
no shutdown
#-------------------------------------------------------
# Insert below one of the following bridge port-types:
# - providerNetworkPort.
# - customerNetworkPort port-based.
# - customerNetworkPort s-tagged.
# - customerEdgePort (N/A).
# - customerBridgePort.
#-------------------------------------------------------
bridge port-type <BRIDGE_PORT_TYPE>
switchport ingress-filter
#============================================================================
# Per-intf configuration
# LAN1 connector
interface <LAN1>
#-------------------------------------------------------
# bind this interface to the aggregator po 100:
channel-group 100 mode on
exit
# LAN2 connector
interface <LAN2>
#-------------------------------------------------------
# bind this interface to the aggregator po 100:
channel-group 100 mode on
exit
exit
#==============================================================================
#CONTEXT-EXIT
• PCP classification
• DSCP classification
• port classification
• scheduling
• output port shaping
• storm control
• negotiation/no negotiation
#CONTEXT-ENTRY
configure terminal
#CONTEXT::SM-OS(config)#
###############################################################################
# Script name: CPLANE-LAG-BASIC
#
# This template builds a LAG with the following properties:
# - aggregator interface: po100.
# - aggregated interfaces: LAN1, LAN2.
# - Hot-standby ports: NO.
# - LACP: YES, mode active, rate normal (30s).
# - load balance: src-dest-mac.
#
# The above profile allows interoperability with sm legacy
# equipments.
#
# If needed, additional aggregator and/or aggregated
# interfaces can be included in this template.
#
# Rev.0001
# (siae microelettronica)
##############################################################+################
#============================================================================
# Global init
no shutdown port-channel
set port-channel enable
set port-channel independentmode disable
# LAN1 connector
interface <LAN1>
no channel-group
exit
# LAN2 connector
interface <LAN2>
no channel-group
exit
#============================================================================
# Per-aggregator configuration
interface port-channel 100
shutdown
mtu 1500
no shutdown
#-------------------------------------------------------
# Insert below one of the following bridge port-types:
# - providerNetworkPort.
port-channel max-ports 2
no default port
exit
#============================================================================
# Per-intf configuration
# LAN1 connector
interface <LAN1>
#lacp port-identifier : default is <LAN1>, conn. is 1.
lacp port-identifier 1
#-------------------------------------------------------
# bind this interface to the aggregator po 100:
channel-group 100 mode active
#-------------------------------------------------------
# set defaults (optional):
no lacp port-priority
no lacp rate
#-------------------------------------------------------
# set new:
lacp rate normal
exit
# LAN2 connector
interface <LAN2>
#lacp port-identifier : default is <LAN2>, conn. is 2.
lacp port-identifier 2
#-------------------------------------------------------
# bind this interface to the aggregator po 100:
channel-group 100 mode active
#-------------------------------------------------------
# set defaults (optional):
no lacp port-priority
no lacp rate
#-------------------------------------------------------
# set new:
lacp rate normal
exit
The script configures a Link Aggregation Protocol (Layer L2), with LACP protocol active in both LAN1 and
LAN2 ports.
7.3.2 LAG-STD-MAN
#CONTEXT-ENTRY
configure terminal
#CONTEXT::SM-OS(config)#
###############################################################################
# Script name: CPLANE-LAG-STD-MAN
#
# This template builds a LAG with the following properties:
# - aggregator interface: po100.
# - aggregated interfaces: LAN1, LAN2.
# - Manual: YES.
# - LACP: NO.
# - load balance: src-dest-mac, src-ip, dest-ip, src-dest-ip
#
# If needed, additional aggregator and/or aggregated
# interfaces can be included in this template.
#
# Rev.0002
# (siae microelettronica)
##############################################################+################
#============================================================================
# Global init
no shutdown port-channel
set port-channel enable
set port-channel independentmode disable
# LAN1 connector
interface <LAN1>
no channel-group
exit
# LAN2 connector
interface <LAN2>
no channel-group
exit
#============================================================================
# Per-aggregator configuration
interface port-channel 100
#-------------------------------------------------------
# Insert below one of the following bridge port-types:
# - providerNetworkPort.
# - customerNetworkPort port-based.
# - customerNetworkPort s-tagged.
# - customerEdgePort (N/A).
# - customerBridgePort.
#-------------------------------------------------------
bridge port-type <BRIDGE_PORT_TYPE>
switchport ingress-filter
port-channel max-ports 2
no default port
exit
#============================================================================
# Per-intf configuration
# LAN1 connector
interface <LAN1>
#lacp port-identifier : default is <LAN1>, conn. is 1.
lacp port-identifier 1
#-------------------------------------------------------
# bind this interface to the aggregator po 100:
channel-group 100 mode on
exit
# LAN2 connector
interface <LAN2>
#lacp port-identifier : default is <LAN2>, conn. is 2.
lacp port-identifier 2
#-------------------------------------------------------
# bind this interface to the aggregator po 100:
channel-group 100 mode on
exit
exit
#==============================================================================
#CONTEXT-EXIT
The script configures a Link Aggregation Protocol (Layer L2), with LACP protocol disabled in both LAN1 and
LAN2 ports.
#CONTEXT-ENTRY
configure terminal
#CONTEXT::SM-OS(config)#
###############################################################################
# Script name: CPLANE-LAG-STD-HSBY
#
# This template builds a LAG with the following properties:
# - aggregator interface: po100.
# - aggregated interfaces: LAN1, LAN2, LAN4.
# - Hot-standby ports: YES, LAN4.
# - LACP: YES, mode active/passive,
# rate normal(30s)/fast(1s).
# - load balance: src-dest-mac, src-ip, dest-ip, src-dest-ip.
#
# If needed, additional aggregator and/or aggregated
# interfaces can be included in this template.
#
# Rev.0002
# (siae microelettronica)
##############################################################+################
#============================================================================
# Global init
no shutdown port-channel
set port-channel enable
set port-channel independentmode disable
# LAN1 connector
interface <LAN1>
no channel-group
exit
# LAN2 connector
interface <LAN2>
no channel-group
exit
# LAN4 connector
interface <LAN4>
no channel-group
exit
#============================================================================
# Per-aggregator configuration
interface port-channel 100
shutdown
mtu 1500
no shutdown
#-------------------------------------------------------
# Insert below one of the following bridge port-types:
# - providerNetworkPort.
#-------------------------------------------------------
# Select max-ports according to the scheme:
# LAN1 LAN2 LAN4
# SCHEME 1> (Bndl)(Bndl)(Bndl) -> MAX-PORTS = 3
# SCHEME 2> (Bndl)(Bndl)(HSby) -> MAX-PORTS = 2
#-------------------------------------------------------
port-channel max-ports <MAX-PORTS>
no default port
exit
#============================================================================
# Per-intf configuration
# LAN1 connector
interface <LAN1>
#lacp port-identifier : default is <LAN1>, conn. is 1.
lacp port-identifier 1
#-------------------------------------------------------
# Insert below one of the following mode:
# - active | passive.
# bind this interface to the aggregator po 100:
channel-group 100 mode <MODE>
#-------------------------------------------------------
# set defaults (optional):
no lacp port-priority
no lacp rate
#-------------------------------------------------------
# Insert below one of the following rate:
# - normal | fast.
lacp rate <RATE>
exit
# LAN2 connector
interface <LAN2>
#lacp port-identifier : default is <LAN2>, conn. is 2.
lacp port-identifier 2
#-------------------------------------------------------
# Insert below one of the following mode:
#-------------------------------------------------------
# set defaults (optional):
no lacp port-priority
no lacp rate
#-------------------------------------------------------
# Insert below one of the following rate:
# - normal | fast.
lacp rate <RATE>
exit
# LAN4 connector
interface <LAN4>
#lacp port-identifier : default is <LAN4>, conn. is 4.
lacp port-identifier 4
#-------------------------------------------------------
# Insert below one of the following mode:
# - active | passive.
# bind this interface to the aggregator po 100:
channel-group 100 mode <MODE>
#-------------------------------------------------------
# set defaults (optional):
no lacp port-priority
no lacp rate
#-------------------------------------------------------
# Insert below one of the following rate:
# - normal | fast.
lacp rate <RATE>
exit
exit
#==============================================================================
#CONTEXT-EXIT
The script configures a Link Aggregation Protocol (Layer L2), considering two schemes:
• IF <MAX-PORTS>=2 LAN1 and LAN2 have LACP protocol active and LAN4, in stand-by,
used for protection
#CONTEXT-ENTRY
configure terminal
#CONTEXT::SM-OS(config)#
###############################################################
# Script name: CPLANE-LLDP
#
# To enable lldp and set lldp version
#
# Rev.0001
# (siae microelettronica)
##############################################################+
set lldp enable
set lldp version [v1|v2]
no shutdown lldp
exit
#==============================================================
#CONTEXT-EXIT
#CONTEXT-ENTRY
configure terminal
#CONTEXT::SM-OS(config)#
###############################################################
# Script name: CPLANE-LLDP-UNDO
#
# To disable and shutdown lldp
#
# Rev.0001
# (siae microelettronica)
##############################################################+
set lldp disable
shutdown lldp
exit
#==============================================================
#CONTEXT-EXIT
#CONTEXT-ENTRY
configure terminal
#CONTEXT-ENTRY
configure terminal
#CONTEXT::SM-OS(config)#
###############################################################
# Script name: CPLANE-LLDP-TIMER
#
# Configurations for lldp timers
# NOTE: about specific v1/v2 sections, please use only the
# required one.
#
# Rev.0001
# (siae microelettronica)
##############################################################+
lldp transmit-interval <seconds(5-32768)>
lldp reinitialization-delay <seconds(1-10)>
lldp holdtime-multiplier <value(2-10)>
lldp notification-interval <seconds(5-3600)>
#LLDP VERSION 1 ONLY
lldp tx-delay <seconds(1-8192)>
#END FOR LLDP VERSION 1:
#CONTEXT-ENTRY
configure terminal
#CONTEXT::SM-OS(config)#
###############################################################
# Script name: CPLANE-LLDP-TIMER-UNDO
#
# Rev.0001
# (siae microelettronica)
##############################################################+
no lldp notification-interval
no lldp holdtime-multiplier
no lldp reinitialization-delay
no lldp transmit-interval
exit
#==============================================================
#CONTEXT-EXIT
#CONTEXT-ENTRY
configure terminal
#CONTEXT::SM-OS(config)#
###############################################################
# Script name: CPLANE-LLDP-PRT
#
# Configurations for lldp trasmit and receive
# Configurations for lldp traps notification
# Configurations for port-id TLV
# NOTE: Please remove LLDPv2 section in case of v1 configured
#CONTEXT-ENTRY
configure terminal
#CONTEXT::SM-OS(config)#
###############################################################
# Script name: CPLANE-LLDP-PRT-UNDO
#
# Undo configurations for lldp trasmit and receive
# Undo configurations for lldp traps notification
# NOTE: Please remove LLDPv2 section in case of v1 configured
#
# Rev.0001
# (siae microelettronica)
##############################################################+
interface <INTF>
no lldp transmit
no lldp receive
no lldp notification
#CONTEXT-ENTRY
configure terminal
#CONTEXT::SM-OS(config)#
###############################################################
# Script name: CPLANE-LLDP-PRT-TLV-SYSC
#
# Enabling lldp basic optional sys-capab TLV
# NOTE: Please remove LLDPv2 section in case of v1 configured
#
# Rev.0001
# (siae microelettronica)
##############################################################+
interface <INTF>
lldp tlv-select basic-tlv sys-capab
#LLDP VERSION 2 ONLY
lldp tlv-select basic-tlv sys-capab mac-address <mac_addr>
#END LLDP VERSION 2 ONLY
exit
exit
#==============================================================
#CONTEXT-EXIT
#CONTEXT-ENTRY
configure terminal
#CONTEXT::SM-OS(config)#
###############################################################
# Script name: CPLANE-LLDP-PRT-TLV-SYSC-UNDO
#
# Undo lldp basic optional sys-capab TLV
#CONTEXT-ENTRY
configure terminal
#CONTEXT::SM-OS(config)#
###############################################################
# Script name: CPLANE-LLDP-PRT-TLV-SYSN
#
# Enabling lldp basic optional sys-name TLV
# NOTE: Please remove LLDPv2 section in case of v1 configured
#
# Rev.0001
# (siae microelettronica)
##############################################################+
interface <INTF>
lldp tlv-select basic-tlv sys-name
#LLDP VERSION 2 ONLY
lldp tlv-select basic-tlv sys-name mac-address <mac_addr>
#END LLDP VERSION 2 ONLY
exit
exit
#==============================================================
#CONTEXT-EXIT
#CONTEXT-ENTRY
configure terminal
#CONTEXT-ENTRY
configure terminal
#CONTEXT::SM-OS(config)#
###############################################################
# Script name: CPLANE-LLDP-PRT-TLV-SYSD
#
# Enabling lldp basic optional sys-descr TLV
# NOTE: Please remove LLDPv2 section in case of v1 configured
#
# Rev.0001
# (siae microelettronica)
##############################################################+
interface <INTF>
lldp tlv-select basic-tlv sys-descr
#LLDP VERSION 2 ONLY
lldp tlv-select basic-tlv sys-descr mac-address <mac_addr>
#END LLDP VERSION 2 ONLY
exit
exit
#==============================================================
#CONTEXT-EXIT
#CONTEXT-ENTRY
configure terminal
#CONTEXT::SM-OS(config)#
###############################################################
# Script name: CPLANE-LLDP-PRT-TLV-SYSD-UNDO
#
# Undo lldp basic optional sys-descr TLV
# NOTE: Please remove LLDPv2 section in case of v1 configured
#
# Rev.0001
# (siae microelettronica)
##############################################################+
interface <INTF>
no lldp tlv-select basic-tlv sys-descr
#LLDP VERSION 2 ONLY
no lldp tlv-select basic-tlv sys-descr mac-address <mac_addr>
#END LLDP VERSION 2 ONLY
exit
exit
#==============================================================
#CONTEXT-EXIT
#CONTEXT-ENTRY
configure terminal
#CONTEXT::SM-OS(config)#
###############################################################
# Script name: CPLANE-LLDP-PRT-TLV-PRTD
#
# Enabling lldp basic optional port-descr TLV
# NOTE: Please remove LLDPv2 section in case of v1 configured
#
# Rev.0001
# (siae microelettronica)
##############################################################+
interface <INTF>
lldp tlv-select basic-tlv port-descr
#LLDP VERSION 2 ONLY
lldp tlv-select basic-tlv port-descr mac-address <mac_addr>
#END LLDP VERSION 2 ONLY
exit
exit
#==============================================================
#CONTEXT-EXIT
#CONTEXT-ENTRY
configure terminal
#CONTEXT::SM-OS(config)#
###############################################################
# Script name: : CPLANE-LLDP-PRT-TLV-PRTD-UNDO
#
# Undo lldp basic optional port-descr TLV
# NOTE: Please remove LLDPv2 section in case of v1 configured
#
# Rev.0001
# (siae microelettronica)
##############################################################+
interface <INTF>
no lldp tlv-select basic-tlv port-descr
#LLDP VERSION 2 ONLY
no lldp tlv-select basic-tlv port-descr mac-address <mac_addr>
#END LLDP VERSION 2 ONLY
exit
exit
#==============================================================
#CONTEXT-EXIT
#CONTEXT-ENTRY
configure terminal
#CONTEXT::SM-OS(config)#
###############################################################
# Script name: CPLANE-LLDP-PRT-TLV-MNGT
#
# Enabling lldp basic optional mgmt-addr TLV
# NOTE: Please remove LLDPv2 section in case of v1 configured
#
# Rev.0001
# (siae microelettronica)
##############################################################+
interface <INTF>
lldp tlv-select basic-tlv mgmt-addr all
lldp tlv-select basic-tlv mgmt-addr ipv4 <ucast_addr>
#LLDP VERSION 2 ONLY
lldp tlv-select basic-tlv mgmt-addr all mac-address <mac_addr>
lldp tlv-select basic-tlv mgmt-addr ipv4 <ucast_addr> mac-address <mac_addr>
#CONTEXT-ENTRY
configure terminal
#CONTEXT::SM-OS(config)#
###############################################################
# Script name: CPLANE-LLDP-PRT-TLV-MNGT-UNDO
#
# Undo lldp basic optional mgmt-addr TLV
# NOTE: Please remove LLDPv2 section in case of v1 configured
#
# Rev.0001
# (siae microelettronica)
##############################################################+
interface <INTF>
no lldp tlv-select basic-tlv mgmt-addr all
no lldp tlv-select basic-tlv mgmt-addr ipv4 <ucast_addr>
#LLDP VERSION 2 ONLY
no lldp tlv-select basic-tlv mgmt-addr all mac-address <mac_addr>
no lldp tlv-select basic-tlv mgmt-addr ipv4 <ucast_addr> mac-address <mac_addr>
#END LLDP VERSION 2 ONLY
exit
#==============================================================
#CONTEXT-EXIT
#CONTEXT-ENTRY
configure terminal
#CONTEXT::SM-OS(config)#
###############################################################
# Script name: CPLANE-LLDP-PRT-TLV-DOT1-PortVID
#
# Enabling lldp 802.1 defined port-vlan-id TLV
# NOTE: Please remove LLDPv2 section in case of v1 configured
#
# Rev.0001
#CONTEXT-ENTRY
configure terminal
#CONTEXT::SM-OS(config)#
###############################################################
# Script name: CPLANE-LLDP-PRT-TLV-DOT1-PortVID-UNDO
#
# Undo lldp 802.1 defined port-vlan-id TLV
# NOTE: Please remove LLDPv2 section in case of v1 configured
#
# Rev.0001
# (siae microelettronica)
##############################################################+
interface <INTF>
no lldp tlv-select basic-tlv port-vlan-id
#LLDP VERSION 2 ONLY
no lldp tlv-select dot1tlv port-vlan-id mac-address <mac_addr>
#END LLDP VERSION 2 ONLY
exit
exit
#==============================================================
#CONTEXT-EXIT
#CONTEXT-ENTRY
configure terminal
#CONTEXT::SM-OS(config)#
###############################################################
# Script name: CPLANE-LLDP-PRT-TLV-DOT1-ProtVID
#CONTEXT-ENTRY
configure terminal
#CONTEXT::SM-OS(config)#
###############################################################
# Script name: CPLANE-LLDP-PRT-TLV-DOT1-ProtVID-UNDO
#
# Undo lldp 802.1 defined protocol-vlan-id TLV
# NOTE: Please remove LLDPv2 section in case of v1 configured
#
# Rev.0001
# (siae microelettronica)
##############################################################+
interface <INTF>
no lldp tlv-select dot1tlv protocol-vlan-id <vlan-id>
no lldp tlv-select dot1tlv protocol-vlan-id all
#LLDP VERSION 2 ONLY
no lldp tlv-select dot1tlv protocol-vlan-id <vlan-id> mac-address <mac_addr>
no lldp tlv-select dot1tlv protocol-vlan-id all mac-address <mac_addr>
#END LLDP VERSION 2 ONLY
exit
exit
#==============================================================
#CONTEXT-EXIT
#CONTEXT-ENTRY
configure terminal
#CONTEXT::SM-OS(config)#
###############################################################
# Script name: CPLANE-LLDP-PRT-TLV-DOT1-VIDName
#
# Enabling lldp 802.1 defined vlan-name TLV
# NOTE: Please remove LLDPv2 section in case of v1 configured
#
# Rev.0001
# (siae microelettronica)
##############################################################+
interface <INTF>
lldp tlv-select dot1tlv vlan-name <vlan-id>
lldp tlv-select dot1tlv vlan-name all
#LLDP VERSION 2 ONLY
lldp tlv-select dot1tlv vlan-name <vlan-id> mac-address <mac_addr>
lldp tlv-select dot1tlv vlan-name all mac-address <mac_addr>
#END LLDP VERSION 2 ONLY
exit
exit
#==============================================================
#CONTEXT-EXIT
#CONTEXT-ENTRY
configure terminal
#CONTEXT::SM-OS(config)#
###############################################################
# Script name: CPLANE-LLDP-PRT-TLV-DOT1-VIDName-UNDO
#
# Undo lldp 802.1 defined vlan-name TLV
# NOTE: Please remove LLDPv2 section in case of v1 configured
#
# Rev.0001
# (siae microelettronica)
##############################################################+
interface <INTF>
no lldp tlv-select dot1tlv vlan-name <vlan-id>
no lldp tlv-select dot1tlv vlan-name all
#LLDP VERSION 2 ONLY
no lldp tlv-select dot1tlv vlan-name <vlan-id> mac-address <mac_addr>
no lldp tlv-select dot1tlv vlan-name all mac-address <mac_addr>
#END LLDP VERSION 2 ONLY
exit
#CONTEXT-ENTRY
configure terminal
#CONTEXT::SM-OS(config)#
###############################################################
# Script name: : CPLANE-LLDP-PRT-TLV-DOT1-MngtVID
#
# Enabling lldp 802.1 defined mgmt-vid TLV. V2 only
#
# Rev.0001
# (siae microelettronica)
##############################################################+
interface <INTF>
#LLDP VERSION 2 ONLY
lldp tlv-select dot1tlv mgmt-vid
lldp tlv-select dot1tlv mgmt-vid mac-address <mac_addr>
exit
exit
#==============================================================
#CONTEXT-EXIT
#CONTEXT-ENTRY
configure terminal
#CONTEXT::SM-OS(config)#
###############################################################
# Script name: CPLANE-LLDP-PRT-TLV-DOT1-MngtVID-UNDO
#
# Undo lldp 802.1 defined mgmt-vid TLV. V2 only
#
# Rev.0001
# (siae microelettronica)
##############################################################+
interface gigabitethernet <INTF>
#LLDP VERSION 2 ONLY
no lldp tlv-select dot1tlv mgmt-vid
no lldp tlv-select dot1tlv mgmt-vid mac-address <mac_addr>
#CONTEXT-ENTRY
configure terminal
#CONTEXT::SM-OS(config)#
###############################################################
# Script name: CPLANE-LLDP-PRT-TLV-DOT1-VIDDgst
#
# Enabling lldp 802.1 defined vid-usage-digest TLV. V2 only
#
# Rev.0001
# (siae microelettronica)
##############################################################+
interface <INTF>
#LLDP VERSION 2 ONLY
lldp tlv-select dot1tlv vid-usage-digest
lldp tlv-select dot1tlv vid-usage-digest mac-address <mac_addr>
exit
exit
#==============================================================
#CONTEXT-EXIT
#CONTEXT-ENTRY
configure terminal
#CONTEXT::SM-OS(config)#
###############################################################
# Script name: CPLANE-LLDP-PRT-TLV-DOT1-VIDDgst-UNDO
#
# Undo lldp 802.1 defined vid-usage-digest TLV. V2 only
#
# Rev.0001
# (siae microelettronica)
##############################################################+
interface gigabitethernet <INTF>
#LLDP VERSION 2 ONLY
no lldp tlv-select dot1tlv vid-usage-digest
#CONTEXT-ENTRY
configure terminal
#CONTEXT::SM-OS(config)#
###############################################################
# Script name: CPLANE-LLDP-PRT-TLV-DOT1-LAG
#
# Enabling lldp 802.1 defined link-aggregation TLV. V2 only
#
# Rev.0001
# (siae microelettronica)
##############################################################+
interface <INTF>
#LLDP VERSION 2 ONLY
lldp tlv-select dot1tlv link-aggregation
lldp tlv-select dot1tlv link-aggregation mac-address <mac_addr>
exit
exit
#==============================================================
#CONTEXT-EXIT
#CONTEXT-ENTRY
configure terminal
#CONTEXT::SM-OS(config)#
###############################################################
# Script name: CPLANE-LLDP-PRT-TLV-DOT1-LAG-UNDO
#
# Undo lldp 802.1 defined link-aggregation TLV. V2 only
#
# Rev.0001
# (siae microelettronica)
##############################################################+
interface gigabitethernet <INTF>
#LLDP VERSION 2 ONLY
#CONTEXT-ENTRY
configure terminal
#CONTEXT::SM-OS(config)#
###############################################################
# Script name: CPLANE-LLDP-PRT-TLV-DOT3-MAC
#
# Enabling lldp 802.3 defined macphy-config TLV
# NOTE: Please remove LLDPv2 section in case of v1 configured
#
# Rev.0001
# (siae microelettronica)
##############################################################+
interface <INTF>
lldp tlv-select dot3tlv macphy-config
#LLDP VERSION 2 ONLY
lldp tlv-select dot3tlv macphy-config mac-address <mac_addr>
#END LLDP VERSION 2 ONLY
exit
exit
#==============================================================
#CONTEXT-EXIT
#CONTEXT-ENTRY
configure terminal
#CONTEXT::SM-OS(config)#
###############################################################
# Script name: CPLANE-LLDP-PRT-TLV-DOT3-MAC-UNDO
#
# Undo lldp 802.3 defined macphy-config TLV
# NOTE: Please remove LLDPv2 section in case of v1 configured
#
# Rev.0001
#CONTEXT-ENTRY
configure terminal
#CONTEXT::SM-OS(config)#
###############################################################
# Script name: CPLANE-LLDP-PRT-TLV-DOT3-FSZ
#
# Enabling lldp 802.3 defined max-framesize TLV
# NOTE: Please remove LLDPv2 section in case of v1 configured
#
# Rev.0001
# (siae microelettronica)
##############################################################+
interface <INTF>
lldp tlv-select dot3tlv max-framesize
#LLDP VERSION 2 ONLY
lldp tlv-select dot3tlv max-framesize mac-address <mac_addr>
#END LLDP VERSION 2 ONLY
exit
exit
#==============================================================
#CONTEXT-EXIT
#CONTEXT-ENTRY
configure terminal
#CONTEXT::SM-OS(config)#
###############################################################
# Script name: CPLANE-LLDP-PRT-TLV-DOT3-FSZ-UNDO
#CONTEXT-ENTRY
configure terminal
#CONTEXT::SM-OS(config)#
###############################################################
# Script name: CPLANE-LLDP-PRT-TLV-DOT3-LAG
#
# Enabling lldp 802.3 defined link-aggregation TLV. V1 only
#
# Rev.0001
# (siae microelettronica)
##############################################################+
interface <INTF>
lldp tlv-select dot3tlv link-aggregation
exit
exit
#==============================================================
#CONTEXT-EXIT
#CONTEXT-ENTRY
configure terminal
#CONTEXT::SM-OS(config)#
###############################################################
#CONTEXT-ENTRY
configure terminal
#CONTEXT::SM-OS(config)#
###############################################################
# Script name: CPLANE-RSTP
#
# Rev.0001
# (siae microelettronica)
##############################################################+
spanning-tree mode rst
spanning-tree priority 36864
spanning-tree hello-time 1
spanning-tree forward-time 15
spanning-tree max-age 20
spanning-tree transmit hold-count 6
no shutdown spanning-tree
exit
#==============================================================
#CONTEXT-EXIT
#CONTEXT-ENTRY
configure terminal
#CONTEXT::MS-OS(config)#
###############################################################
# Script name: CPLANE-RSTP-UNDO
#
# Rev.0001
# (siae microelettronica)
##############################################################+
shutdown spanning-tree
no spanning-tree
exit
#==============================================================
#CONTEXT-EXIT
#CONTEXT-ENTRY
configure terminal
#CONTEXT::SM-OS(config)#
###############################################################
# Script name: CPLANE-RSTP-PRT
#
# Rev.0001
# (siae microelettronica)
##############################################################+
interface <INTF>
spanning-tree cost 2000
spanning-tree port-priority 32
no spanning-tree disable
exit
exit
#==============================================================
#CONTEXT-EXIT
#CONTEXT-ENTRY
configure terminal
#CONTEXT::SM-OS(config)#
###############################################################
# Script name: CPLANE-RSTP-PRT-UNDO
# Rev.0001
# (siae microelettronica)
##############################################################+
interface <INTF>
#CONTEXT-ENTRY
configure terminal
#CONTEXT::SM-OS(config)#
###############################################################
# Script name: CPLANE-RSTP-PRT-1W-UNDO
#
# Rev.0001
# (siae microelettronica)
##############################################################+
interface <INTF>
spanning-tree mode dot1w disable
exit
exit
#==============================================================
#CONTEXT-EXIT
• ITU-T Y.1731 (see paragraph 7.6.3 ITU-T Y.1731 - Device config and 7.6.4 ITU-T Y.1731 - Port con-
fig)
• create domain, level and service (see paragraph 7.6.5 Domain, level and service)
• add MEP and MIP (see paragraph 7.6.6 MEP and MIP)
• remove MEP and MIP (see paragraph7.6.9 MEP and MIP (UNDO))
• remove domain, level and service (see paragraph 7.6.10 Domain, level and service (UNDO)).
#CONTEXT-ENTRY
configure terminal
#CONTEXT::SM-OS(config)#
###############################################################
# Script name: CPLANE-ECFM-SYS-DEV-8021
#
# SM-OS supports both ieee802.1ag and itu-t y.1731 std.
# -----------------------------------------------------
# This script enables a device to be compliant to the
# ieee802.1ag standard at device level.
# A per-port setup is also available to change the active std.
# to be y.1731.
# A static rmep archive has been choosed too.
#
# Rev.0001
# (siae microelettronica)
##############################################################+
#======================================================
ethernet cfm start
ethernet cfm enable
#CONTEXT-ENTRY
configure terminal
#CONTEXT::SM-OS(config)#
###############################################################
# Script name: CPLANE-ECFM-SYS-PRT-8021
#
# SM-OS supports both ieee802.1ag and itu-t y.1731 std.
# -----------------------------------------------------
# This script enables a port to be compliant to the
# ieee802.1ag standard.
# A per-device setup is also available to change the active std.
# to be y.1731.
#
# Rev.0001
# (siae microelettronica)
##############################################################+
#======================================================
interface <INTFx>
no ethernet cfm y1731 enable
exit
#======================================================
exit
#CONTEXT-ENTRY
configure terminal
#CONTEXT::SM-OS(config)#
###############################################################
# Script name: CPLANE-ECFM-SYS-DEV-1731
#
# SM-OS supports both itu-t y.1731 and ieee802.1ag std.
# -----------------------------------------------------
# This script enables a device to be compliant to the
# itu-t y.1731 standard at device level.
# A per-port setup is also available to change the active std.
#CONTEXT-ENTRY
configure terminal
#CONTEXT::SM-OS(config)#
###############################################################
# Script name: CPLANE-ECFM-SYS-PRT-1731
#
# SM-OS supports both itu-t y.1731 and ieee802.1ag std.
# -----------------------------------------------------
# This script enables a port to be compliant to the
# itu-t y.1731 standard.
# A per-device setup is also available to change the active std.
# to be 802.1ag.
#
# Rev.0001
# (siae microelettronica)
##############################################################+
#======================================================
interface <INTFx>
ethernet cfm y1731 enable
exit
#======================================================
exit
• Script-name: CPLANE-ECFM-SYS-PRT-1731
#CONTEXT-ENTRY
configure terminal
#CONTEXT::SM-OS(config)#
###############################################################
# Script name: CPLANE-ECFM-DL-MA
# Rev.0001
# (siae microelettronica)
##############################################################+
#====================================================
ethernet cfm domain name <DomainName> level <LVL>
service name <ServiceName> vlan 1000
# mep list of device1:
mep crosscheck mpid 1101 vlan 1000
mep crosscheck mpid 1102 vlan 1000
# mep list of device2:
mep crosscheck mpid 1201 vlan 1000
mep crosscheck mpid 1202 vlan 1000
## mep list of device<n>:
#mep crosscheck mpid <mpid> vlan 1000
#mep crosscheck mpid <mpid> vlan 1000
#-----------------------------------
set mip-creation-criteria default
exit
exit
#CONTEXT-ENTRY
configure terminal
#CONTEXT::SM-OS(config)#
###############################################################
# Script name: CPLANE-ECFM-MEP-MIP
#
# Rev.0002
# (siae microelettronica)
##############################################################+
#====================================================
# UP MEP
interface <INTF-1>
ethernet cfm mep level <LVL> inward mpid 1101 vlan 1000 active
exit
exit
#====================================================
# DOWN MEP
interface <INTF-2>
ethernet cfm mep level <LVL> mpid 1201 vlan 1000 active
exit
• Create MEP (Maintenance End Point) in the interface and define the direction:
• MEP is an “active” End Point at the edge of a domain; it can generate the CCM (Continuity Check
Message)
• MIP is a “passive” Maintenance Intermediate Point of a domain; it can reply at the LBM (LoopBack
Message) and LTM (Link Trace Message).
#CONTEXT-ENTRY
configure terminal
#CONTEXT::SM-OS(config)#
###############################################################
# Script name: CPLANE-ECFM-CCM
#
# Rev.0001
# (siae microelettronica)
##############################################################+
#====================================================
#----------------------------------( sec. )
# ... interval three-hundred-hertz ( 0,003)
# ten-ms ( 0,010)
# hundred-ms ( 0,100) def. when PM.
# one-sec ( 1,000) def. when FM.
# ten-sec ( 10,000)
# one-min ( 60,000)
# ten-min (600,000)
ethernet cfm cc domain <DmnName> service <SrvName> interval <INTRVL>
ethernet cfm cc enable domain <DmnName> service <SrvName>
# OR:
ethernet cfm cc domain <DmnName> vlan 1000 interval <INTRVL>
ethernet cfm cc enable domain <DmnName> vlan 1000
# OR:
ethernet cfm cc level <LVL> vlan 1000 interval <INTRVL>
ethernet cfm cc enable level <LVL> vlan 1000
exit
#CONTEXT-ENTRY
configure terminal
#CONTEXT::SM-OS(config)#
###############################################################
# Script name: CPLANE-ECFM-CCM-undo
#
# Rev.0001
# (siae microelettronica)
##############################################################+
#====================================================
no ethernet cfm cc enable domain <DmnName> service <SrvName>
# OR:
no ethernet cfm cc enable domain <DmnName> vlan 1000
# OR:
no ethernet cfm cc enable level <LVL> vlan 1000
exit
#CONTEXT-ENTRY
configure terminal
#CONTEXT::SM-OS(config)#
###############################################################
# Script name: CPLANE-ECFM-MEP-MIP-undo
#
# Rev.0002
# (siae microelettronica)
##############################################################+
#====================================================
# UP MEP
interface <INTF-1>
no ethernet cfm mep level <LVL> inward mpid 1101 vlan 1000 active
exit
#====================================================
# DOWN MEP
interface <INTF-2>
no ethernet cfm mep level <LVL> mpid 1201 vlan 1000 active
exit
#====================================================
# MIP
interface <INTF-3>
no ethernet cfm mip level <LVL> vlan 1000 active
exit
exit
#CONTEXT-ENTRY
configure terminal
#CONTEXT::SM-OS(config)#
###############################################################
# Script name: CPLANE-ECFM-DL-MA-undo
#
# Rev.0001
# (siae microelettronica)
##############################################################+
#====================================================
ethernet cfm domain name <DomainName> level <LVL>
# mep list of device1:
no mep crosscheck mpid 1101 vlan 1000
no mep crosscheck mpid 1102 vlan 1000
# mep list of device2:
no mep crosscheck mpid 1201 vlan 1000
no mep crosscheck mpid 1202 vlan 1000
## mep list of device<n>:
# no mep crosscheck mpid <mpid> vlan 1000
# no mep crosscheck mpid <mpid> vlan 1000
no service name <ServiceName> vlan 1000
#-----------------------------------
exit
no ethernet cfm domain name <DomainName> level <LVL>
exit
This command configures the MEP lowest priority defect that is allowed to generate a fault alarm.
#CONTEXT-ENTRY
configure terminal
#CONTEXT::SM-OS(config)#
###############################################################
# Script name: CPLANE-ECFM-MEP-LOWEST-THRS
#
# Rev.0001
# (siae microelettronica)
##############################################################+
#====================================================
# up MEP: <DIR> = inward
# down MEP: <DIR> = <blank>
interface <INTF-1>
ethernet cfm mep level <LVL> <DIR> mpid 1101 vlan 1000 active
#-- lowest-priority-defect:
# <lpd-thres> = all-Defects
# <lpd-thres> = mac-Rem-Err-Xcon-Defects
#CONTEXT-ENTRY
configure terminal
#CONTEXT::SM-OS(config)#
###############################################################
# Script name: CPLANE-ECFM-MEP-LOWEST-THRS-DEF
#
# Rev.0001
# (siae microelettronica)
##############################################################+
#====================================================
# up MEP: <DIR> = inward
# down MEP: <DIR> = <blank>
interface <INTF-1>
ethernet cfm mep level <LVL> <DIR> mpid 1101 vlan 1000 active
#-- lowest-priority-defect:
set lowest-priority-defect mac-Rem-Err-Xcon-Defects
exit
exit
exit
This command enables/disables the cross-checking functionality between the MEPs configured in the cross-
check list at the specified level and Vlan.
#CONTEXT-ENTRY
configure terminal
#CONTEXT::SM-OS(config)#
###############################################################
##############################################################+
exit
ethernet cfm mep crosscheck [enable|disable] level <LVL> vlan <VLANID>
###############################################################
# Script name: CPLANE-ECFM-PING
#
# Rev.0001
# (siae microelettronica)
##############################################################+
#
#== ping by mac
ping ethernet mac <aa:bb:cc:dd:ee:ff> level <LVL> vlan 1000 count 5
#
#== ping by mpid
ping ethernet mpid <MPID> level <LVL> vlan 1000 count 5
This command enables caching of Ethernet Connectivity Fault Management (CFM) data learned through
traceroute (link trace replies) message.
#CONTEXT-ENTRY
#CONTEXT-ENTRY
configure terminal
#CONTEXT::MS-OS(config)#
###############################################################
# Script name: CPLANE-ECFM-TRACE-DIS
#
# Rev.0001
# (siae microelettronica)
##############################################################+
exit
clear ethernet cfm traceroute-cache
configure terminal
no ethernet cfm traceroute cache
exit
This command initiates linktrace message by providing MEP identifier of the destination MEP (Maintenance
End Point) or the MAC address of the MEP or MIP.
###############################################################
# Script name: CPLANE-ECFM-TRACE
#
# Rev.0001
# (siae microelettronica)
##############################################################+
#
#== traceroute by mac
traceroute ethernet mac <aa:bb:cc:dd:ee:ff> level <LVL> vlan 1000 time-to-live 5
#
#== traceroute by mpid
traceroute ethernet mpid <MPID> level <LVL> vlan 1000 time-to-live 5
Example: traceroute from a 802.1ag port through Y.1731 and 802.1ag devices
HOPS - 1 :
------------
LTR Management Address: No management address was present in the LTR
Ingress PortId Subtype: NONE
Ingress PortId : NONE
Egress PortId Subtype : 1
Egress PortId : Slot0/9
HOPS - 2 :
------------
LTR Management Address: No management address was present in the LTR
HOPS - 3 :
------------
LTR Management Address: No management address was present in the LTR
Ingress PortId Subtype: 1
Ingress PortId : Slot0/10
Egress PortId Subtype : 1
Egress PortId : Slot0/8
SM-OS#
Example: traceroute from a Y.1731 port through 802.1ag and Y.1731 devices
HOPS - 1 :
------------
LTR Management Address: No management address was present in the LTR
Ingress PortId Subtype: NONE
Ingress PortId : NONE
Egress PortId Subtype : 1
Egress PortId : Slot0/9
HOPS - 2 :
------------
LTR Management Address: No management address was present in the LTR
Ingress PortId Subtype: 0
Ingress PortId :
HOPS - 3 :
------------
LTR Management Address: No management address was present in the LTR
Ingress PortId Subtype: 1
Ingress PortId : Slot0/10
Egress PortId Subtype : 1
Egress PortId : Slot0/8
SM-OS#
#CONTEXT-ENTRY
configure terminal
#CONTEXT::SM-OS(config)#
###############################################################
# Script name: CPLANE-ECFM-ETH-LM-SingleEnded-ST
#
# ETH-CC must be already configured.
#
# BUFSIZE Size of Buffer (def. 1024)
# LVL Level of LM is applied.
# VLAN Vlan of LM is applied.
# RMEP RMEP of LM is applied.
# CNT No. of transaction.
#
# Rev.0001
# (siae microelettronica)
##############################################################+
ethernet cfm frame loss buffer size <BUFSIZE>
exit
ethernet cfm frame loss start level <LVL> vlan <VLAN> mpid <RMEP> count <CNT>
#==============================================================
#CONTEXT-EXIT
#CONTEXT-ENTRY
###############################################################
# Script name: CPLANE-ECFM-ETH-LM-SingleEnded-SP
#
# Rev.0001
# (siae microelettronica)
##############################################################+
ethernet cfm frame loss stop level <LVL> vlan <VLAN> mpid <RMEP> count <CNT>
#==============================================================
#CONTEXT-EXIT
#CONTEXT-ENTRY
###############################################################
#
# Rev.0001
# (siae microelettronica)
##############################################################+
show ethernet cfm frame loss buffer detail single-ended
#==============================================================
#CONTEXT-EXIT
Example
Interface : Gi0/8
MEP-ID : 14
Level : 0
VLAN-ID : 1001
ISID : -
SM-OS#
#CONTEXT-ENTRY
configure terminal
#CONTEXT::SM-OS (config)#
###############################################################
# Script name: CPLANE-ECFM-ETH-LM-DualEnded-ST
#
# ETH-CC must be already configured.
#
# BUFSIZE Size of Buffer (def. 1024)
# LVL Level of LM is applied.
# VLAN Vlan of LM is applied.
#
# INTRVL must be compliant with ccm interval:
#----------------------------------( sec. )
# ... interval three-hundred-hertz ( 0,003)
# ten-ms ( 0,010)
# hundred-ms ( 0,100) def. when PM.
# one-sec ( 1,000) def. when FM.
# ten-sec ( 10,000)
# one-min ( 60,000)
# ten-min (600,000)
#
# Rev.0001
# (siae microelettronica)
##############################################################+
ethernet cfm frame loss buffer size <BUFSIZE>
clear ethernet cfm frame loss buffer
ethernet cfm cc level <LVL> vlan <VLAN> interval <INTRVL> role performance-monitoring
#==============================================================
exit
#CONTEXT-ENTRY
configure terminal
#CONTEXT::SM-OS (config)#
###############################################################
# Script name: CPLANE-ECFM-ETH-LM-DualEnded-SP
#
# LVL, VLAN, INTRVL See Start script.
#
# Rev.0001
# (siae microelettronica)
##############################################################+
ethernet cfm cc level <LVL> vlan <VLAN> interval <INTRVL> role fault-management
#==============================================================
exit
#CONTEXT-ENTRY
###############################################################
# Rev.0001
# (siae microelettronica)
##############################################################+
show ethernet cfm frame loss buffer detail dual-ended
#==============================================================
#CONTEXT-EXIT
Example
SM-OS#
SM-OS# show ethernet cfm frame loss buffer detail dual-ended
Interface : Gi0/8
MEP-ID : 14
Level : 1
VLAN-ID : 1002
ISID : -
SM-OS#
#CONTEXT-ENTRY
###############################################################
# Rev.0001
# (siae microelettronica)
##############################################################+
clear ethernet cfm frame loss buffer
#==============================================================
#CONTEXT-EXIT
#CONTEXT-ENTRY
configure terminal
#CONTEXT::SM-OS(config)#
###############################################################
# Script name: CPLANE-ECFM-ETH-DM-OneWay-ST
#
# ETH-CC must be already configured.
#
# BUFSIZE Size of Buffer (def. 1024)
# LVL Level of DM is applied.
# VLAN Vlan of DM is applied.
# RMEP RMEP of DM is applied.
# CNT No. of transaction.
#
# Rev.0001
# (siae microelettronica)
##############################################################+
ethernet cfm frame delay buffer size <BUFSIZE>
exit
clear ethernet cfm frame delay buffer
ethernet cfm frame delay start type one-way level <LVL> vlan <VLAN> mpid <RMEP> count <CNT>
#==============================================================
#CONTEXT-ENTRY
###############################################################
# Script name: CPLANE-ECFM-ETH-DM-OneWay-SP
#
# Rev.0001
# (siae microelettronica)
##############################################################+
ethernet cfm frame delay stop type one-way level <LVL> vlan <VLAN> mpid <RMEP> count <CNT>
#==============================================================
#CONTEXT-EXIT
#CONTEXT-ENTRY
###############################################################
#
# Rev.0001
# (siae microelettronica)
##############################################################+
show ethernet cfm frame delay buffer detail one-way
#==============================================================
#CONTEXT-EXIT
Example on peer
SM-OS#
SM-OS# sho eth cfm frame delay buffer detail one-way
Interface : Gi0/8
MEP-ID : 11
Level : 0
VLAN-ID : 1001
ISID : -
SM-OS#
#CONTEXT-ENTRY
configure terminal
#CONTEXT::SM-OS(config)#
###############################################################
# Script name: CPLANE-ECFM-ETH-DM-TwoWay-ST
#
# ETH-CC must be already configured.
#
# BUFSIZE Size of Buffer (def. 1024)
# LVL Level of DM is applied.
# VLAN Vlan of DM is applied.
# RMEP RMEP of DM is applied.
# CNT No. of transaction.
#
# Rev.0001
# (siae microelettronica)
##############################################################+
ethernet cfm frame delay buffer size <BUFSIZE>
exit
clear ethernet cfm frame delay buffer
ethernet cfm frame delay start type two-way level <LVL> vlan <VLAN> mpid <RMEP> count <CNT>
#==============================================================
exit
#CONTEXT-ENTRY
###############################################################
# Script name: CPLANE-ECFM-ETH-DM-TwoWay-SP
#
# Rev.0001
# (siae microelettronica)
##############################################################+
ethernet cfm frame delay stop type two-way level <LVL> vlan <VLAN> mpid <RMEP> count <CNT>
#==============================================================
#CONTEXT-EXIT
#CONTEXT-ENTRY
###############################################################
#
# Rev.0001
# (siae microelettronica)
##############################################################+
show ethernet cfm frame delay buffer detail two-way
#==============================================
#CONTEXT-EXIT
Example
SM-OS#
SM-OS# sho eth cfm frame delay buffer detail two-way
Interface : Gi0/8
MEP-ID : 14
Level : 0
VLAN-ID : 1001
ISID : -
SM-OS#
#CONTEXT-ENTRY
###############################################################
# Rev.0001
# (siae microelettronica)
##############################################################+
clear ethernet cfm frame delay buffer
#==============================================================
#CONTEXT-EXIT
#CONTEXT-ENTRY
configure terminal
#CONTEXT::SM-OS(config)#
###############################################################
# Script name: CPLANE-ECFM-ETH-AIS-EN
#
# Rev.0001
# (siae microelettronica)
##############################################################+
#===========================================================
# ADAPTATION FUNC.
ethernet cfm domain name <DOMAIN> level <LVL>
service name <SERVICE> vlan <VLAN>
mep crosscheck mpid <LMEP> vlan <VLAN>
# AIS or LCK ---------------------------------------------
client-layer-level <LVL+n>
exit
#===========================================================
# TERMINATION FUNC.
interface <INTF>
ethernet cfm mep level <LVL> mpid <LMEP> vlan <VLAN> active
set ais enable interval one-sec
exit
exit
#=============================================================
#=============================================================
exit
#CONTEXT-ENTRY
configure terminal
#CONTEXT::SM-OS(config)#
###############################################################
# Script name: CPLANE-ECFM-ETH-AIS-DIS
#
# Rev.0001
# (siae microelettronica)
##############################################################+
#===========================================================
ethernet cfm domain name <DOMAIN> level <LVL>
# AIS or LCK ---------------------------------------------
no client-layer-level
exit
interface <INTF>
ethernet cfm mep level <LVL> mpid <LMEP> vlan <VLAN> active
set ais disable
exit
exit
#=============================================================
#=============================================================
exit
#CONTEXT-ENTRY
###############################################################
#
# Rev.0001
# (siae microelettronica)
##############################################################+
show ethernet cfm maintenance-points local detail mpid <LMEP>
#==============================================================
#CONTEXT-EXIT
#CONTEXT-ENTRY
###############################################################
#
# Rev.0001
# (siae microelettronica)
##############################################################+
show ethernet cfm errors
#==============================================================
#CONTEXT-EXIT
#CONTEXT-ENTRY
configure terminal
#CONTEXT::SM-OS(config)#
###############################################################
# Script name: CPLANE-ECFM-ETH-LCK-EN
#
# Rev.0001
# (siae microelettronica)
##############################################################+
#===========================================================
# ADAPTATION FUNC.
ethernet cfm domain name <DOMAIN> level <LVL>
service name <SERVICE> vlan <VLAN>
mep crosscheck mpid <LMEP> vlan <VLAN>
# AIS or LCK ---------------------------------------------
client-layer-level <LVL+n>
exit
#===========================================================
# TERMINATION FUNC.
interface <INTF>
ethernet cfm mep level <LVL> mpid <LMEP> vlan <VLAN> active
set out-of-service enable interval one-sec
exit
exit
#=============================================================
#=============================================================
exit
#CONTEXT-ENTRY
configure terminal
interface <INTF>
ethernet cfm mep level <LVL> mpid <LMEP> vlan <VLAN> active
set out-of-service disable
exit
exit
#=============================================================
#=============================================================
exit
7.7.1 DHCP-LAO
#CONTEXT-ENTRY
configure terminal
#CONTEXT::SM-OS(config)#
###############################################################
# Script name: MNGT-LAO
#
# - Availability: AGS-20.
#
# Rev.0001
# (siae microelettronica)
##############################################################+
#CONTEXT::SM-OS(config)
interface cpu0
ip address <DOT_IP_ADRS> <DOT_IP_MASK>
# above network parameters must be compliant to the DHCP
# config parameters.
7.7.2 DHCP-Enable
#CONTEXT-ENTRY
configure terminal
#CONTEXT::SM-OS(config)#
###############################################################
# Script name: MNGT-DHCP
#
# Rev.0001
# (siae microelettronica)
##############################################################+
# the DHCP service enabling:
service dhcp-server
ip dhcp ping packets
#CONTEXT-ENTRY
configure terminal
#CONTEXT::SM-OS(config)#
###############################################################
# Script name: MNGT-DHCP-UNDO
#
# Rev.0001
# (siae microelettronica)
##############################################################+
# the DHCP service disabling:
no service dhcp-server
#CONTEXT::SM-OS(config)#
exit
#==============================================================
#CONTEXT-EXIT
#CONTEXT-ENTRY
configure terminal
#CONTEXT::SM-OS(config)#
#########################################################################
# Script name: SYS-PEB-C_CxP
# <MNGT_VLAN>: default is 1.
#
# INB-LAN1: CEP.
# INB-LAN2: CNP port-based.
#
# CPU
# +----o----+
# | | |
class-map 10
match access-group mac-access-list 1
set class 10 regen-priority 7 group-name mng_group_1
exit
class-map 20
match access-group mac-access-list 2
set class 20 regen-priority 7 group-name mng_group_2
exit
class-map 30
match access-group mac-access-list 3
set class 30 regen-priority 7 group-name mng_group_3
exit
class-map 40
match access-group mac-access-list 4
set class 40 regen-priority 7 group-name mng_group_4
exit
#----------------------------------------------------------------------
# MNGT-LAN3,2,1,A already handled above.
#----------------------------------------------------------------------
# LAN / RADIO INTERFACES
interface gigabitethernet 0/7
# This is the LAN-ODU-B.
switchport ingress-filter
exit
interface gigabitethernet 0/1
# This is the LAN-ODU-C.
switchport ingress-filter
exit
interface gigabitethernet 0/2
# This is the LAN-ODU-D.
switchport ingress-filter
exit
exit
#========================================================================
#CONTEXT-EXIT
With this script, SM-OS switch accepts the management C-Tagged on port CNP/CEP in case of Provider
Edge Bridge mode and classifies <MNGT-VLAN> at priority 7.
#CONTEXT-ENTRY
configure terminal
#CONTEXT::MS-OS(config)#
###############################################################
# Script name: MNGT-IP-ROUT
#
# - Availability: AGS-20 1.3.0 and next.
# --------------------------------------
#CONTEXT-ENTRY
configure terminal
#CONTEXT::SM-OS(config)#
###############################################################
# Script name: MNGT-IP-ROUT-UNDO
#
# - Availability: AGS-20 1.3.0 and next.
# --------------------------------------
#
# Rev.0001
# (siae microelettronica)
##############################################################+
set mgmt-port routing disable
exit
#==============================================================
#CONTEXT-EXIT
#CONTEXT-ENTRY
configure terminal
#CONTEXT: :SM-OS (config) #
#################################################################
# Script name: MNGT-ACL-LIST
#
#
#===============================================================
#CONTEXT-EXIT
• for each rule the user shall be able to configure the SRC IP address to be BLOCKED/FORWARDED
and relevant IP MASK (if not configured the default MASK is 255.255.255.255) and assign a certain
priority to the rule. IP and priority are mandatory fields
• the first rule matching starting from higher priority shall be executed and then no other rule shall
be checked/executed. Inside the same group rules are ordered by ID (higher wins)
7.9 SNTP
#CONTEXT-ENTRY
configure terminal
#CONTEXT::SM-OS(config)#
###############################################################
# Script name: SNTP-ENABLE
#
# Rev.0001
# (siae microelettronica)
##############################################################+
# the SNTP service enabling:
sntp
set sntp client version v4
set sntp client addressing-mode unicast
set sntp unicast-server ipv4 <1°_server_IP_Address> primary version 3
set sntp unicast-server ipv4 <2°_server_IP_Address> secondary version 3
set sntp client enabled
exit
#==============================================================
#CONTEXT-ENTRY
configure terminal
#CONTEXT::SM-OS(config)#
###############################################################
# Script name: SNTP-DISABLE
#
# Rev.0001
# (siae microelettronica)
##############################################################+
# the SNTP service disabling:
sntp
no sntp unicast-server ipv4 <2°_server_IP_Address>
no sntp unicast-server ipv4 <1°_server_IP_Address>
set sntp client disabled
exit
#==============================================================
show vlan
It displays VLAN entry related information of all active VLANs and VLANs (that are not active) for which the
port details are configured.
show port-isolation
This command displays isolation between switch ports
8.1.3 RMON
RMON is enabled
Entry 1 is active, and owned by monitor
Monitors ifEntry.1.1 every 60 second(s)
Requested # of time intervals, ie buckets, is 240,
Granted # of time intervals, ie buckets, is 50,
Sample 1 began measuring at Apr 11 11:53:07 2014
Received 47074 octets, 493 packets,
274 broadcast and 41 multicast packets,
0 undersized and 0 oversized packets,
0 fragments and 0 jabbers,
0 CRC alignment errors and 0 collisions,
# of dropped packet events is 0
Network utilization is estimated at 0
RMON is enabled
Collection 1 on Interface Gi0/1, service type port+outerPriority,
Outer Vid 0, Inner Vid 0, Priority 7,
active, owned by monitor,
Packets Rx msn 0 | lsn 0,
Packets Tx msn 0 | lsn 0,
Bytes Rx msn 0 | lsn 0,
Bytes Tx msn 0 | lsn 0,
Discard Packets Rx msn 0 | lsn 0,
Discard Packets Tx msn 0 | lsn 0,
Unicast Packets Rx msn 0 | lsn 0,
Unicast Packets Tx msn 0 | lsn 0,
Not Unicast Packets Rx msn 0 | lsn 0,
Not Unicast Packets Tx msn 0 | lsn 0
Total number of service collection statistics: 1
Number of service port-outerVlan collection statistics: 0
Number of service port-priority collection statistics: 1
SM-OS#
RMON is enabled
Entry 1 is active, and owned by monitor
Monitors ifEntry.1.1 every 60 second(s)
Requested # of time intervals, ie buckets, is 240,
Granted # of time intervals, ie buckets, is 50,
Sample 1 began measuring at Apr 11 11:53:07 2014
Received 47074 octets, 493 packets,
274 broadcast and 41 multicast packets,
0 undersized and 0 oversized packets,
0 fragments and 0 jabbers,
0 CRC alignment errors and 0 collisions,
# of dropped packet events is 0
Network utilization is estimated at 0
show mac-address-table
It displays all static / dynamic unicast and multicast MAC entries created in the MAC address table.
SM-OS#
8.1.6 Routing
show ip interface
It displays IP address and status of each VLAN interface
show ip route
This command displays routes and default gateway.
SM-OS#
show priority-map
The command displays the priority map Pbit or DSCP into Queue (1-8 default)
PriorityMapId : 2
IfIndex : 0
VlanId : 0
InPriorityType : VlanPriority
InPriority : 1
RegenPriority : 1
InnerRegenPriority : None
show access-list
It displays the access lists configuration
show class-map
This command displays the class map entry
8.1.9 Meter
show meter
This command displays the Meter entry for policing
8.1.10 Policer
show policy-map
This command displays the QoS policy maps, which defines criteria for incoming traffic
show queue-template
This command displays the configured congestion control for each queue (Tail Drop or Strict).
Q Template Id : 2
Q Limit : 50000
Drop Type : WRED
Drop Algo Status : Enable
DP 0, MinTH 12, MaxTH 222, MaxPktSize 1000,MaxDropProb 100, ExpWeight 0, Gain
0, ECN Threshold 0
Drop threshold type : Discard Packets
RD Cfg Flag : none
show queue
It displays the configured queue behaviour (weight in case of WRR)
show scheduler
It displays the queue scheduling for each port (1 default)
8.1.13 Sharper
show shaper-template
This command displays the configured shaper entries
SM-OS#
This is a list of commands showing the information about all the CFM maintenance domains.
9 LIST OF FIGURES
For more information, refer to the section relevant to the technical support on the Internet site of the com-
pany manufacturing the product.