Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Management
Issue
02
Date
2012-07-20
Notice
The purchased products, services and features are stipulated by the contract made between Huawei and the
customer. All or part of the products, services and features described in this document may not be within the
purchase scope or the usage scope. Unless otherwise specified in the contract, all statements, information,
and recommendations in this document are provided "AS IS" without warranties, guarantees or representations
of any kind, either express or implied.
The information in this document is subject to change without notice. Every effort has been made in the
preparation of this document to ensure accuracy of the contents, but all statements, information, and
recommendations in this document do not constitute a warranty of any kind, express or implied.
Website:
http://www.huawei.com
Email:
support@huawei.com
Issue 02 (2012-07-20)
Commissioning engineers
Symbol Conventions
The symbols that may be found in this document are defined as follows.
Symbol
Description
DANGER
WARNING
Issue 02 (2012-07-20)
ii
Symbol
Description
CAUTION
TIP
NOTE
Command Conventions
The command conventions that may be found in this document are defined as follows.
Convention
Description
Boldface
Italic
[]
{ x | y | ... }
[ x | y | ... ]
{ x | y | ... }*
[ x | y | ... ]*
&<1-n>
Change History
Updates between document issues are cumulative. Therefore, the latest document issue contains
all changes made in previous issues.
iii
Issue 02 (2012-07-20)
iv
Contents
Contents
About This Document.....................................................................................................................ii
1 Auto-Config....................................................................................................................................1
1.1 Overview............................................................................................................................................................2
1.2 Auto-Config Features Supported by the S2700..................................................................................................3
1.3 Deploying Unconfigured Switches (Same Network Segment)..........................................................................6
1.3.1 Establishing the Configuration Task.........................................................................................................6
1.3.2 Configuring the DHCP Server...................................................................................................................7
1.3.3 Configuring the FTP/TFTP Server............................................................................................................8
1.3.4 Checking the Configuration.......................................................................................................................8
1.4 Deploying Unconfigured Switches (Different Network Segments)...................................................................9
1.4.1 Establishing the Configuration Task.........................................................................................................9
1.4.2 Configuring the DHCP Server.................................................................................................................10
1.4.3 Configuring DHCP Relay........................................................................................................................11
1.4.4 Configuring the FTP/TFTP Server..........................................................................................................11
1.4.5 Checking the Configuration.....................................................................................................................11
2 NAP Configuration.....................................................................................................................13
2.1 NAP Overview.................................................................................................................................................14
2.2 Configuring NAP-based Remote Deployment.................................................................................................14
2.2.1 Establishing the Configuration Task.......................................................................................................14
2.2.2 Configuring and Starting the NAP Master Interface...............................................................................15
2.2.3 Remote Login..........................................................................................................................................17
2.2.4 Disabling NAP on the Slave Device........................................................................................................18
2.2.5 Checking the Configuration.....................................................................................................................18
2.3 Configuration Examples...................................................................................................................................19
2.3.1 Example for Configuring NAP-based Remote Deployment in Static Mode...........................................20
2.3.2 Example for Configuring NAP-based Remote Deployment in Automatic Mode...................................21
3 Stacking.........................................................................................................................................24
3.1 Stacking Overview...........................................................................................................................................25
3.2 Stacking Function Supported by the S2700.....................................................................................................25
3.3 Configuring the Stacking Function on the S2700............................................................................................26
3.3.1 Establishing the Configuration Task.......................................................................................................26
3.3.2 Configuring an IP Address Pool for a Stack............................................................................................26
Issue 02 (2012-07-20)
Contents
5 Hardware Management..............................................................................................................37
5.1 Hardware Management Overview....................................................................................................................38
5.2 Hardware Management Features Supported by the S2700...............................................................................38
5.3 Backing Up the Electronic Label......................................................................................................................38
5.3.1 Establishing the Configuration Task.......................................................................................................38
5.3.2 Backing Up the Electronic Label.............................................................................................................39
5.4 Configuring Electrical Port Sleep.....................................................................................................................39
5.4.1 Establishing the Configuration Task.......................................................................................................39
5.4.2 Enabling Electrical Port Sleep.................................................................................................................40
5.4.3 Checking the Configuration.....................................................................................................................40
vi
Contents
7 Mirroring.......................................................................................................................................57
7.1 Introduction......................................................................................................................................................59
7.1.1 Mirroring Functions.................................................................................................................................59
7.2 Configuring Local Port Mirroring....................................................................................................................62
7.2.1 Establishing the Configuration Task.......................................................................................................63
7.2.2 Configuring Local Port Mirroring...........................................................................................................63
7.2.3 Checking the Configuration.....................................................................................................................64
7.3 Configuring Remote Port Mirroring.................................................................................................................64
7.3.1 Establishing the Configuration Task.......................................................................................................64
7.3.2 Configuring Remote Port Mirroring........................................................................................................65
7.3.3 Checking the Configuration.....................................................................................................................68
7.4 Canceling Port Mirroring..................................................................................................................................68
7.4.1 Establishing the Configuration Task.......................................................................................................68
7.4.2 Canceling Port Mirroring.........................................................................................................................69
7.4.3 Checking the Configuration.....................................................................................................................69
7.5 Configuring Local VLAN Mirroring................................................................................................................69
7.5.1 Establishing the Configuration Task.......................................................................................................69
7.5.2 Configuring Local VLAN Mirroring.......................................................................................................70
7.5.3 Checking the Configuration.....................................................................................................................70
7.6 Configuring Remote VLAN Mirroring............................................................................................................71
7.6.1 Establishing the Configuration Task.......................................................................................................71
7.6.2 Configuring Remote VLAN Mirroring...................................................................................................72
7.6.3 Checking the Configuration.....................................................................................................................73
7.7 Canceling VLAN Mirroring.............................................................................................................................73
7.7.1 Establishing the Configuration Task.......................................................................................................73
7.7.2 Canceling VLAN Mirroring....................................................................................................................74
7.7.3 Checking the Configuration.....................................................................................................................74
7.8 Configuring MAC Address-based Local Mirroring.........................................................................................74
7.8.1 Establishing the Configuration Task.......................................................................................................75
7.8.2 Configuring Local SPAN Based on MAC Addresses.............................................................................75
7.8.3 Checking the Configuration.....................................................................................................................76
7.9 Configuring RSPAN Based on MAC Addresses.............................................................................................76
7.9.1 Establishing the Configuration Task.......................................................................................................76
Issue 02 (2012-07-20)
vii
Contents
viii
Contents
8 PoE Configuration.....................................................................................................................106
8.1 PoE Overview.................................................................................................................................................107
8.2 PoE Features Supported by the S2700...........................................................................................................107
8.3 Configuring PoE Functions............................................................................................................................107
8.3.1 Establishing the Configuration Task.....................................................................................................108
8.3.2 Configuring the PoE Function Globally................................................................................................108
8.3.3 Configuring the PoE Function on an Interface......................................................................................110
8.3.4 Checking the Configuration...................................................................................................................112
8.4 Configuration Examples.................................................................................................................................112
8.4.1 Example for Configuring PoE on the Switch........................................................................................112
9 ALS Configuration....................................................................................................................115
9.1 ALS Overview................................................................................................................................................116
9.2 ALS Features Supported by the S2700...........................................................................................................116
9.3 Configuring ALS............................................................................................................................................117
9.3.1 Establishing the Configuration Task.....................................................................................................117
9.3.2 Enabling ALS on an Interface...............................................................................................................118
9.3.3 (Optional) Setting the Restart Mode of the Laser..................................................................................119
9.3.4 (Optional) Starting the Laser Manually.................................................................................................119
9.3.5 (Optional) Setting the ALS Pulse Interval and Width of the Laser.......................................................120
9.3.6 Checking the Configuration...................................................................................................................121
9.4 Configuration Examples.................................................................................................................................121
9.4.1 Example for Configuring ALS..............................................................................................................121
Issue 02 (2012-07-20)
ix
1 Auto-Config
Auto-Config
Issue 02 (2012-07-20)
1 Auto-Config
1.1 Overview
This section describes the functions, application scenarios, and terms of Auto-Config.
When a new switch or a switch without any configuration file is powered on, Auto-Config runs
automatically to obtain a configuration file. With the Auto-Config function, the network
administrator can manage new switches or switches without any configuration file remotely.
NOTE
When Auto-Config starts, the system delivers the dhcp enable command by default to enable DHCP
globally. After DHCP is enabled globally, DHCP are sent to the CPU.
The Auto-Config function is applicable to new switches or switches without any configuration file
(unconfigured switches).
The maintenance personnel do not need to manually configure each switch. With this
function, a few maintenance personnel can maintenance widely deployed devices.
Intermediate File
The intermediate file lswnet.cfg is used in the Auto-Config process. The intermediate file records
the mapping between MAC addresses of switches and names of configuration files. After an
unconfigured switch obtains the IP address of the FTP/TFTP server, it downloads the
lswnet.cfg file from the FTP/TFTP server to search for the name of the required configuration
file, and then downloads the configuration file from the FTP/TFTP server.
NOTE
Auto-Config uses Option 67 to obtain the configuration file first. If Option 67 is not configured, AutoConfig obtains the intermediate file.
For example, if the MAC address of an S2700 is 0018-82C5-AA89 and the S2700 needs to
download the configuration file S2700.cfg, the contents of the intermediate file are as follows:
mac=0018-82C5AA89;vrpfile=V100R006C00.cc;vrpver=V100R006C00;cfgfile=S2700.cfg;patchfile=S2700pat.pat;
esn=0213778899;vrpfile=V100R006C00.cc;vrpver=V100R006C00;cfgfile=S2700.
cfg;patchfile=S2700-pat.pat;
NOTE
If the configuration file is located on the FTP or TFTP server, its extension must be .cfg.
A MAC address and a configuration file name are separated by a semicolon. The format of a MAC address
is xxxx-xxxx-xxxx-xxxx. The name of a configuration file contains up to 48 characters, including the
extension .cfg. The name is case insensitive and cannot contain special characters. It is recommended that
the name consists of English letters, numbers, and underscore (_).
If multiple unconfigured switches need to be configured, each row in the intermediate file records the MAC
address of a switch and the name of the configuration file that the switch requires.
Issue 02 (2012-07-20)
1 Auto-Config
Option 67
The Option 67 field is configured on the DHCP server to specify the configuration file.
Option 150
The Option 150 field is configured on the DHCP server to specify the IP address of the TFTP
server.
Option 14x
The Option 14x field is configured on the DHCP server to specify the IP address, user name,
and password of the FTP server.
l
Issue 02 (2012-07-20)
1 Auto-Config
No
Yes
Are
DHCP Reply packets
valid?
No
Yes
Stop sending DHCP
Request packets
Allocate IP address
Configure nonauthentication for VTYs
Parse Option
parameters
Yes
Are there
No
Version file name and
version info?
Yes
Does the
No
device need to be
upgraded?
Yes
No
No
Is the
version file
obtained?
No
Is the patch
file obtained?
Yes
Yes
No
No
No
Issue 02 (2012-07-20)
Is the restart
flag 1?
No
Is there Web
file information?
No
Yes
Obtain the Web file
Obtain a configuration
file
Is the
No
configuration file
obtained?
Yes
Start a timer to set the
delay in device restart
Timer expires, delete
temporary
configuration and
make configuration
file effective
End
1 Auto-Config
Startup
After being powered on, an unconfigured switch checks whether there is *.cfg or *.zip file
except the *web.zip and web.zip files in the flash memory, and then takes actions according
to the checking result:
If the switch detects a configuration file, it loads the configuration file to complete the
startup.
If the switch does not detect any configuration file, it checks whether Auto-Config is
enabled. If Auto-Config is enabled, the switch starts a 5-minute timer for obtaining a
configuration file and then load the default configuration to complete the startup. If
Auto-Config is disabled, the switch loads the default configuration to complete the
startup.
2.
Downloading files
If Option 67 is not configured on the DHCP server, the Auto-Config downloads the
intermediate file lswnet.cfg from the FTP/TFTP server and obtains required files. If
Option 67 is configured on the DHCP server, the Auto-Config parses parameters in
Option 145 fields and obtains required files from the FTP/TFTP server.
a.
b.
c.
If the file fails to be obtained, it is downloaded once every 30 minutes. If it cannot be obtained
after 3 days, it is downloaded once every 2 hours. If it cannot be obtained after 30 days, the
process of downloading the patch file stops and waits to be handled manually.
l
Issue 02 (2012-07-20)
1 Auto-Config
Operator
SwitchA
SwitchB
DHCP Server
FTP/TFTP Server
SwitchC
Pre-configuration Tasks
Before deploying unconfigured switches, complete the following tasks:
l
Ensuring that there are routes from the DHCP server and FTP/TFTP server to the switches
Ensuring that there is no *.cfg or *.zip file except the *web.zip and web.zip files in the
flash memory of each switch
Ensuring that the switches are not added to any HGMP cluster
Data Preparation
To deploy unconfigured switches, you need the following data.
Issue 02 (2012-07-20)
1 Auto-Config
N
o.
Data
Interconnection information about the upstream interfaces on each S2700 and the
downstream interfaces on the DHCP server
IP address, mask, address pool, and Option 150 or Option 14x of the DHCP server
IP address, version file, patch file, and configuration file on the FTP/TFTP server
The DHCP server must support either Option 150 or Option 14x.
Procedure
l
Configure an address pool, including the address range and Option 150 (or Option 14x).
It is required that the address pool be on the same network segment with unconfigured
switches and the FTP/TFTP server.
NOTE
Pay attention to the following points when configuring Option 150 or Option 14x:
l When new switches obtain configuration files through TFTP, the DHCP server must support
Option 150.
l When new switches obtain configuration files through FTP, the DHCP server must support
Option 141, Option 142, and Option 143.
l If both Option 150 and Option 14x are configured on the DHCP server, Option 150 takes
precedence over Option 14x.
l If you use ordinary characters to configure Option 150 or Option 143 on the DHCP server, the
Auto-Config module cannot recognize the IP address, which results in an Auto-Config process
sends the DHCP messages incessantly.
Add the downstream interface on the DHCP server to the management VLAN in access
mode and assign an IP address on the same network segment as the IP address of the DHCP
server to the management VLAN.
After Auto-Config is enabled, packets from an unconfigured switch do not carry tags.
Therefore, ensure that untagged packets can be transmitted between unconfigured switches
and the DHCP server.
----End
Issue 02 (2012-07-20)
1 Auto-Config
Procedure
l
Save the intermediate file and configuration files to the working directory on the FTP/TFTP
server.
----End
Context
You can check different items in different phases in the Auto-Config process to confirm that
Auto-Config runs properly.
Procedure
Step 1 Five minutes after unconfigured switches are powered on, check address allocation on the DHCP
server to confirm that the switches are connected to the DHCP server.
NOTE
If the switches are connected to the DHCP server, you can log in to the switches through Telnet but do not
configure the switches.
Step 2 Five minutes after the switches obtain IP addresses, check the file downloading log on the FTP/
TFTP server or log in to the switches to confirm that correct configuration files have been
downloaded.
NOTE
Do not save a configuration file to a switch to be configured immediately after the configuration file is
downloaded; otherwise, only a temporary configuration file is saved because the configurations have not
taken effect.
Step 3 If the user has specified the activation delay, the configuration file will take effect after the delay.
If the user has not specified the activation delay, the configuration file will take effect
Issue 02 (2012-07-20)
1 Auto-Config
If you access the switch when it is busy delivering configurations in the Auto-Config process, the switch
may not respond in real time.
After the configurations take effect, modify the configuration of the downstream interface on the DHCP
server as required.
----End
Operator
SwitchA
Network
SwitchB
DHCP Relay
DHCP Server
FTP/TFTP Server
SwitchC
Pre-configuration Tasks
Before deploying unconfigured switches, complete the following tasks:
l
Issue 02 (2012-07-20)
Ensuring that there are routes from the DHCP server, DHCP relay, and FTP/TFTP server
to the switches
Huawei Proprietary and Confidential
Copyright Huawei Technologies Co., Ltd.
1 Auto-Config
Ensuring that there is no *.cfg or *.zip file except the *web.zip and web.zip files in the
flash memory of each switch
Ensuring that the switches are not added to any HGMP cluster and USB upgrade
Data Preparation
To deploy unconfigured switches, you need the following data.
N
o.
Data
Interconnection information about the upstream interfaces on each S2700 and the
downstream interfaces on the DHCP relay
IP address, mask, address pool, and Option 150 or Option 14x of the DHCP server
IP address, default configuration file, and configuration files on the FTP/TFTP server
The DHCP server must support either Option 150 or Option 14x.
Procedure
l
Configure an address pool, including the address range, gateway, and Option 150 (or Option
14x).
NOTE
Pay attention to the following points when configuring Option 150 or Option 14x:
l When new switches obtain configuration files through TFTP, the DHCP server must support
Option 150.
l When new switches obtain configuration files through FTP, the DHCP server must support
Option 141, Option 142, and Option 143.
l If both Option 150 and Option 14x are configured on the DHCP server, Option 150 takes
precedence over Option 14x.
l If you use ordinary characters to configure Option 150 or Option 143 on the DHCP server, the
Auto-Config module cannot recognize the IP address.
----End
Issue 02 (2012-07-20)
10
1 Auto-Config
Procedure
l
You can temporarily set the IP address of the downstream interface on the same network segment
with the IP addresses of unconfigured switches, and then add the downstream interface to the
management VLAN in access mode.
----End
Procedure
l
Save the intermediate file and configuration files to the working directory on the FTP/TFTP
server.
----End
11
1 Auto-Config
Context
You can check different items in different phases in the Auto-Config process to confirm that
Auto-Config runs properly.
Procedure
Step 1 Five minutes after unconfigured switches are powered on, check address allocation on the DHCP
server to confirm that the switches are connected to the DHCP server.
NOTE
If the switches are connected to the DHCP server, you can log in to the switches through Telnet but do not
configure the switches.
Step 2 Five minutes after the switches obtain IP addresses, check the file downloading log on the FTP/
TFTP server or log in to the switches to confirm that correct configuration files have been
downloaded.
NOTE
Do not save a configuration file to a switch to be configured immediately after the configuration file is
downloaded; otherwise, only a temporary configuration file is saved because the configurations have not
taken effect.
Step 3 If the user has specified the activation delay, the configuration file will take effect after the delay.
If the user has not specified the activation delay, the configuration file will take effect
immediately by default. Then run the display current-configuration command to check
whether the configurations take effect.
NOTE
If you access the switch when it is busy delivering configurations in the Auto-Config process, the switch
may not respond in real time.
After the configurations take effect, modify the configuration of the downstream interface on the DHCP
relay as required.
----End
Issue 02 (2012-07-20)
12
2 NAP Configuration
NAP Configuration
Issue 02 (2012-07-20)
13
2 NAP Configuration
Context
CAUTION
After the device with an empty configuration is powered on and started, you must make sure
that its interfaces connected to the devices on the current network are Up and support NAP;
otherwise, the function of NAP-based remote deployment cannot take effect.
Applicable Environment
To deploy devices having empty configurations, you can use NAP to perform remote login to
the devices from a device in the current network. In this manner, you can implement remote
deployment of devices.
Pre-configuration Tasks
Before configuring NAP-based remote deployment, complete the following tasks:
Issue 02 (2012-07-20)
14
2 NAP Configuration
Connecting the device having an empty configuration to a device in the current network
via a single hop by using network cables
Ensuring that the interfaces connecting the device with an empty configuration and the
device in the current network are both in the Up state, and support NAP.
Data Preparation
NOTE
l If the IP addresses used for establishing NAP connections are to be manually configured, you need to
prepare the following data before configuring NAP.
l Conversely, if the IP addresses for establishing NAP connections are to be automatically configured,
you can skip this.
Data
Two primary IP addresses. The two IP addresses are primary IP addresses for the
master interface and the slave interface respectively, and should be on the same
network segment.
Two secondary IP addresses. The two IP addresses are secondary IP addresses for
the master interface and the slave interface respectively, and should be on the same
network segment.
Context
CAUTION
If commands affecting the IP address configuration or IP packet forwarding (such as
configurations and commands related to the VPN, Eth-Trunk, or Layer 2 interface) exist on
device of the master interface, NAP enabled on the master interface becomes unavailable. You
are recommended to delete these commands and re-enable NAP.
Do as follows on the switch to configure and start the NAP master interface.
In NAP, IP addresses can be allocated either automatically or manually.
Procedure
l
Run:
system-view
Issue 02 (2012-07-20)
15
2 NAP Configuration
Run:
interface interface-type interface-number
Run:
nap port master
Run:
system-view
Run:
nap ip-pool ip-address mask-length
After NAP is started on the master device, the IP address pool cannot be changed.
3.
Run:
interface interface-type interface-number
Run:
nap port master
Run:
system-view
Run:
interface interface-type interface-number
Run:
nap port master
Run:
nap local-ip mast-inter-mast-ip sub-ip mast-inter-sub-ip peer-ip subinter-mast-ip sub-ip sub-inter-sub-ip mask-length
Issue 02 (2012-07-20)
16
2 NAP Configuration
Context
Using the display nap interface command, you can view the NAP status of an interface to
ensure that the interface is assigned a correct IP address.
Do as follows on the switch where the NAP master interface is configured.
Procedure
Step 1 Run:
system-view
The login to the slave device from the master device is performed.
l If the slave device has an empty configuration, you can log in to the slave device from the
master device without a user name and a password.
l If, however, the slave device is configured with user name(s) and password(s), you must
enter the correct user name and password to perform a NAP-based remote login to the slave
device.
NOTE
To ensure security for NAP, the slave device having an empty configuration checks the source address of
the Telnet login. If the Telnet source address is the NAP address of the master device that is telnetting to
the slave device, the slave device allows the master device to directly log in without being authenticated.
This is because by default, the user level of the remote login based on the NAP address is the same as the
login through the console interface, which enjoys the highest user level. If the Telnet source address is not
the NAP address of the master device, the remote login fails.
If ip source check user-bind enable command is executed on an interface, the interface cannot connect
to the NAP neighbor.
----End
Issue 02 (2012-07-20)
17
2 NAP Configuration
Context
The master device has logged in to the slave device through Telnet. The NAP function is no
longer required, and to ensure security of the network, NAP should be globally disabled on the
slave interface of the slave device.
Do as follows on the switch that is configured as the NAP slave device.
Procedure
Step 1 Run:
system-view
Prerequisites
NAP-based remote deployment has been completed.
Procedure
Step 1 Using the display nap status command, you can view the current NAP status.
Step 2 Using the display nap interface [ interface-type interface-number ] command, you can view
the NAP status of the specified interface.
----End
Example
Run the display nap status command to view the current NAP status.
<Quidway> display nap status
Slave port status
: Enable
Nap ip-pool/Mask
: 12.12.12.0/24
Run the display nap interface interface-type interface-number command to view the NAP status
of the specified interface.
<Quidway> display nap interface gigabitethernet0/0/1
Issue 02 (2012-07-20)
18
2 NAP Configuration
Issue 02 (2012-07-20)
19
2 NAP Configuration
Networking Requirements
As shown in Figure 2-1, the user needs to perform a remote login to Switch B from Switch A.
Switch B is the master device, and temporary neighbor relationship is to be set up between
Switch B and Switch C having an empty configuration. Switch B and Switch C need to be directly
connected via a single hop. Both the interfaces connecting Switch B and Switch C should be in
the Up state, and should support NAP.
Figure 2-1 Networking diagram of NAP-based remote deployment
Network
PC
SwitchA
SwitchB
SwitchC
Configuration Roadmap
The configuration roadmap is as follows:
1.
2.
3.
Data Preparation
To complete the configuration, you need the following data:
l
Two primary IP addresses. The two IP addresses are primary IP addresses for the master
interface and the slave interface respectively, and should be on the same network segment.
Two secondary IP addresses. The two IP addresses are secondary IP addresses for the
master interface and the slave interface respectively, and should be on the same network
segment.
Procedure
Step 1 Configure a NAP master interface on Switch B
<Quidway> system-view
[Quidway] sysname SwitchB
[SwitchB] interface gigabitethernet0/0/1
[SwitchB-GigabitEthernet0/0/1] nap port master
20
2 NAP Configuration
# After the preceding configuration is complete, run the display nap status command on
Switch B. You can view that NAP has been enabled on Switch B. Then, run the display nap
interface command. You can view that the primary and secondary IP addresses have been
assigned to the master and slave interfaces. For example:
[SwitchB-GigabitEthernet0/0/1] display nap status
Slave port status
: Enable
Nap ip-pool/Mask
: 10.167.253.0/24
[SwitchB-GigabitEthernet0/0/1] display nap interface
-----------------------------------------------------NAP master port list
Port count
: 1
-----------------------------------------------------Port property
: Master
Current status
: IP-ASSIGNED
Local port
: GigabitEthernet0/0/1
Peer port
: GigabitEthernet0/0/1
Local primary ip
: 12.12.12.5
Peer primary ip
: 12.12.12.6
Local secondary ip
: 12.12.12.9
Peer secondary ip
: 12.12.12.10
Hello time
: 3s
Linked time
: 00:02:33
------------------------------------------------------
----End
Configuration Files
None
Networking Requirements
As shown in Figure 2-2, the user needs to perform a remote login to Switch B from Switch A.
Switch B is the master device, and temporary neighbor relationship is to be set up between
Issue 02 (2012-07-20)
21
2 NAP Configuration
Switch B and Switch C having an empty configuration. Switch B and Switch C need to be directly
connected via a single hop. Both the interfaces connecting Switch B and Switch C should be in
the Up state, and should support NAP.
Figure 2-2 Networking diagram of NAP-based remote deployment
Network
PC
SwitchA
SwitchB
SwitchC
Configuration Roadmap
The configuration roadmap is as follows:
1.
2.
3.
Data Preparation
None
Procedure
Step 1 Configuring the NAP master interface
# Do as follows on Switch B.When configuring the NAP master interface, ensure that there are
unused VLAN IDs in the system.
<Quidway> system-view
[Quidway] sysname SwitchB
[SwitchB] interface gigabitethernet0/0/1
[SwitchB-GigabitEthernet0/0/1] nap port master
----End
Issue 02 (2012-07-20)
22
2 NAP Configuration
Configuration Files
None
Issue 02 (2012-07-20)
23
3 Stacking
Stacking
Issue 02 (2012-07-20)
24
3 Stacking
Master switch
The master switch assigns numbers and IP addresses to member switches in a stack.
Slave switch
In addition to a master switch, all the other switches in a stack are slave switches.
Interfaces connecting stack devices are stack interfaces, and other interfaces are common user
interfaces. Stack devices can be connected through upstream GE interfaces only. Interfaces can
be connected through common twisted pair cables or optical fibers.
The uplink GE interfaces are connected through twisted pair cables or optical fibers.
Interfaces connecting switches belong to one management VLAN and the VLANIF
interface corresponding to the management VLAN has been created on the member
switches.
By default, the management VLAN is VLAN 1 and you can create VLANIF 1.
The stack system supports the link topology only. If the master switch is faulty, the stack system does
not work. In this case, you need to select a new master switch and then set up a new stack system.
l
Issue 02 (2012-07-20)
25
3 Stacking
If you run the stacking enable command to enable the stacking function on a device where
an IP address pool is configured, the device is configured as the master switch, and other
switches function as slave switches.
l
Pre-configuration Tasks
Before creating a stack system, complete the following tasks:
l
Connecting the uplink GE interfaces through twisted pair cables or optical fibers
Adding the interconnecting interfaces to the management VLAN and creating the VLANIF
interface corresponding to the management VLAN on the member switches
Data Preparation
To configure the stacking function, you need the following data.
No.
Data
26
3 Stacking
Context
Before enabling the stacking function on a device, you need to configure an IP address pool for
a stack system on the device. The IP address pool can be configured on the master switch only.
Do as follows on the S2700.
Procedure
Step 1 Run:
system-view
l An IP address pool cannot be configured with IP addresses on different network segments. For example,
the start IP address in the address pool is 192.168.254.254 with a 24-bit mask. If the IP address pool
holds 10 IP addresses, these IP addresses are on different network segments, and so cannot be assigned
to the member switches in a stack. You need to pay attention to it when configuring an IP address pool
for the stack system.
l The network segment in the IP address pool cannot overlap IP addresses of other VLANIF interfaces.
----End
Procedure
Step 1 Run:
system-view
27
3 Stacking
Procedure
Step 1 Run:
stacking number
Procedure
l
Run the display stacking [ members ] command to check information about the member
switches in a stack.
----End
Example
Run the display stacking [ members ] command to check the stack IDs, device names, device
types, and MAC addresses of the master and slave switches.
<Quidway>display stacking members
Member number:0
Name:stack_0.2700-1
DeviceType:S2700
MAC Address:0018-82b8-5611
Member status:Admin
IP: 20.20.20.20/16
Member number:1
Name:stack_1.Quidway
DeviceType:
MAC Address:0200-0000-ab00
Member status:Up
IP: 20.20.20.21/16
Issue 02 (2012-07-20)
28
3 Stacking
Internet
Administrator
Stack link
Common link
SwitchB
SwitchA
SwitchC
Configuration Roadmap
The configuration roadmap is as follows:
1.
2.
Issue 02 (2012-07-20)
29
3 Stacking
NOTE
Adding the interconnecting interfaces to the management VLAN and creating the VLANIF interface
corresponding to the management VLAN on the member switches
Data Preparation
To complete the configuration, you need the following data:
l
Configuration Procedure
1.
# Create VLAN 10, change the management VLAN of the SwitchA to VLAN 10.
<SwitchA> system-view
[SwitchA] vlan batch 10
[SwitchA] interface vlanif 10
[SwitchA-vlanif10] quit
[SwitchA] cluster
[SwitchA-cluster] mngvlanid 10
[SwitchA-cluster] quit
Issue 02 (2012-07-20)
30
3 Stacking
The preceding information displays that the stack ID of SwitchB is 1 and the stack ID of
SwitchC is 2.
# Log in to slave switch 1 from the master switch.
<stack_0.SwitchA> stacking 1
Trying 20.20.20.21 ...
Press CTRL+T to abort
Connected to 20.20.20.21 ...
Note: The max number of VTY users is 5, and the current number
of VTY users on line is 1.
# Run the quit command to return to the master switch, and then log in to slave switch 2
from the master switch.
<stack_2.SwitchB> quit
<stack_0.SwitchA> stacking 2
Trying 20.20.20.22 ...
Press CTRL+T to abort
Connected to 20.20.20.22 ...
Note: The max number of VTY users is 5, and the current number
of VTY users on line is 1.
Configuration Files
Configuration file of SwitchA
#
sysname SwitchA
#
vlan batch 10
#
interface vlanif10
ip address 20.20.20.20 255.255.0.0
#
cluster
management vlan id
: 10
#
stacking ip-pool 20.20.20.20 16 255.255.0.0
stacking enable
return
Issue 02 (2012-07-20)
31
Issue 02 (2012-07-20)
32
4.1 Introduction
This section describes function of display commands.
You can use display commands to view the status of a device and check whether the device runs
normally.
Procedure
Step 1 Run:
display device [ slot slot-id ]
Procedure
Step 1 Run:
display version [ slot slot-id ]
33
You can run the display elabel command to check information about the hardware code. The
hardware code provides necessary basis for such services as network installation, network
upgrade, network expansion, device management and maintenance, and device replacement in
batches.
The displayed information includes: type of the card, bar code, Bill of Material (BOM) code,
English description, production date, supplier name, issuing number, Common Language
Equipment Identification (CLEI) code, and sales BOM code.
Procedure
Step 1 Run:
display elabel [ slot slot-id [ subcard-id ] ]
----End
Procedure
Step 1 Run:
display environment [ slot slot-id ]
34
Procedure
Step 1 Run:
display fan [ slot slot-id | verbose ]
Procedure
Step 1 Run the following command in any view:
display power
Procedure
Step 1 Run:
display cpu-usage [ configuration | slave | slot slot-id ]
Procedure
Step 1 Run:
display memory-usage [ slave | slot slot-id ]
35
Procedure
Step 1 Run:
display alarm urgent [ slot slot-id | time interval ]
Run:
display interface interface-type interface-number
Run:
system-view
Run:
interface interface-type interface-number
Run:
display this interface
Issue 02 (2012-07-20)
36
5 Hardware Management
Hardware Management
Issue 02 (2012-07-20)
37
5 Hardware Management
Applicable Environment
Electronic labels of network devices play an important role in troubleshooting. When faults
occur on a network, you can obtain hardware information quickly from electronic labels.
Therefore, you need to back up electronic labels.
Pre-configuration Tasks
Before backing up the electronic label of the S2700, complete the following task:
l
Connecting the S2700 to an FTP server and ensuring that there is a reachable route between
them
Data Preparation
To back up the electronic label of the S2700, you need the following data.
Issue 02 (2012-07-20)
No.
Data
38
5 Hardware Management
No.
Data
FTP server address, FTP user name, and password (only applicable to saving the
electronic label to an FTP server)
Procedure
l
Applicable Environment
When a device is working normally, you can enable electrical port sleep to save energy.
Pre-configuration Tasks
None.
Data Preparation
To configure electrical port sleep, you need the following data.
Issue 02 (2012-07-20)
39
5 Hardware Management
No.
Data
Procedure
Step 1 Run:
system-view
Procedure
l
Run:
system-view
Run:
interface { interface-type interface-number }
Run:
display this
Issue 02 (2012-07-20)
40
Issue 02 (2012-07-20)
41
Information Classification
The information receives and processes the following types of information:
l
Logs
Debugging information
Alarm information
Issue 02 (2012-07-20)
Threshold
Severity Level
Description
Emergency
Alert
Critical
42
Threshold
Severity Level
Description
Error
Warning
Notice
Informational
Debugging
When information filtering based on severity levels is enabled, only the information whose
severity level threshold is less than or equal to the configured value is output.
For example, if the severity level value is configured to 6, only the information with the severity
level value from 0 to 6 is output.
The information center receives logs, traps, and debugging information from all modules.
The information center outputs information with different severity levels to different
information channels according to the configurations of users.
Generally, the information center distributes the three types of information that can be classified
into eight levels to ten information channels. The information is then output to different
directions.
As shown in Figure 6-1, logs, alarms, and debugging information have default output channels.
You can, however, customize them to be output from other channels. For example, you can
configure logs to be output to the log cache through Channel 6 rather than Channel 4.
Issue 02 (2012-07-20)
43
Infomation type
Infomation channel
0
Console
1
Logs
Traps
3
4
Debugs
Remote
terminal
Loghost
Loghost
Trapbuffer
Trap buffer
Logbuffer
Log buffer
channel6
channel7
channel8
Console
Monitor
5 SNMP agent
Direction of logs
Direction of alarms
Direction of debugging
information
Output direction
SNMP agent
channel9
Issue 02 (2012-07-20)
Channel
Number
Default
Channel Name
Output
Direction
Description
Console
Console
Monitor
Monitor
Loghost
Log host
44
Channel
Number
Default
Channel Name
Output
Direction
Description
Trapbuffer
Trap buffer
Logbuffer
Log buffer
Snmpagent
SNMP agent
Unspecified
Unspecified
Reserved.
Unspecified
Unspecified
Reserved.
Unspecified
Unspecified
Reserved.
Unspecified
Unspecified
Reserved.
When multiple log hosts are configured, you can configure logs to be output to different log
hosts through one channel or several channels. For example, configure parts of logs to be output
to a log host either through Channel 2 (loghost) or through Channel 6. You can also change the
name of Channel 6 for managing channel conveniently.
Format of Logs
Syslog is a sub-function of the information center. It outputs information to a log host through
port 514.
Figure 6-2 shows the format of logs.
Figure 6-2 Format of the output logs
Indication
Description
<Int_16>
Leading character
Issue 02 (2012-07-20)
45
Field
Indication
Description
TIMESTAMP
HOSTNAME
Host name
%%
Log information
dd
Version number
AAA
Module name
Log level
CCC
Brief description
(l)
Information type
slot=XXX
Location information
YYYY
Descriptor
Format of Alarms
Figure 6-3 shows the format of the output alarms.
Figure 6-3 Format of the output alarms
Issue 02 (2012-07-20)
46
Indication
Description
TimeStamp
HostName
Host name
ModuleName
Module name
Severity
Severity of
information
Brief
Brief information
Description
Description
Issue 02 (2012-07-20)
47
Pre-configuration Tasks
None.
Data Preparation
To manage the information center, you need the following data.
No.
Data
(Optional) Language used in the logs and the address of the log host
Procedure
Step 1 Run:
system-view
The system sends the system information to the log host and the console only after the information center
is enabled.
----End
Issue 02 (2012-07-20)
48
A module (or modules) is specified to send debugging information, logs, or traps to the
information channels.
NOTE
Run the undo info-center source { module-name | default } channel { channel-number | channelname } command to disable the unnecessary modules and select one or more modules to send information
to the information channels.
----End
Issue 02 (2012-07-20)
49
The format of the timestamp is set for the output logs or traps information.
----End
Command
display logbuffer [ level severity | module modulename | size value | slot slot-id ]*
50
Step 4 Run:
terminal monitor
or
terminal logging
or
terminal trapping
----End
or
terminal logging
or
terminal trapping
----End
Issue 02 (2012-07-20)
51
Procedure
Step 1 Run:
system-view
52
Step 2 Run:
info-center trapbuffer [ channel { channel-number | channel-name } | size
buffersize ] *
Command
Run the preceding command. If the information center can send the statistics to the destination
terminal, it means that the configuration succeeds.
53
CAUTION
Statistics cannot be restored after being cleared. So, confirm the action before you run the
command.
Action
Command
reset logbuffer
reset trapbuffer
Log Host
Network
VLANIF10
2.0.0.1/8
1.0.0.1/8
Configuration Roadmap
The configuration roadmap is as follows:
1.
2.
Configure the information channel to ensure that the S2700 can correctly send logs to the
log host. Disable the sending of the traps and debugging information to the log host.
3.
Data Preparation
To complete the configuration, you need the following data:
Issue 02 (2012-07-20)
54
Configuration Procedure
NOTE
In the example, only the commands related to monitoring are listed. For details on configuring the log host,
see the help files on the log host.
1.
2.
3.
channel loghost
channel name:loghost
ENABLE LOG_LEVEL
ENABLE TRAP_LEVEL
Y
debugging
N
debugging
ENABLE DEBUG_LEVEL
N
debugging
# Set VLANIF 10 as the interface for sending information to the log host on the S2700.
[Quidway] vlan 10
[Quidway-vlan10] quit
[Quidway] interface ethernet0/0/1
[Quidway-Ethernet0/0/1] port link-type hybrid
[Quidway-Ethernet0/0/1] port hybrid untagged vlan 10
[Quidway-Ethernet0/0/1] quit
[Quidway] interface vlanif 10
[Quidway-Vlanif10] ip address 2.0.0.1 255.0.0.0
[Quidway-Vlanif10] quit
[Quidway] info-center loghost source vlanif 10
Issue 02 (2012-07-20)
55
4.
Configuration Files
#
info-center source default channel 2 log level debugging state on trap state off
debug state off
info-center loghost source vlanif 10
info-center loghost 1.0.0.1
#
#
vlan batch 10
#
interface vlanif10
ip address 2.0.0.1 255.0.0.0
#
interface Ethernet0/0/1
port hybrid untagged vlan 10
#
return
Issue 02 (2012-07-20)
56
7 Mirroring
Mirroring
57
7 Mirroring
Issue 02 (2012-07-20)
58
7 Mirroring
7.1 Introduction
This section describes the basics of mirroring.
Concepts
l
Observing port
An observing port on the S2700 is connected to a monitoring host. It is used to export the
traffic copied from a mirrored port or a flow mirroring port.
Mirrored port
A mirrored port is the interface to be observed. Incoming traffic or outgoing traffic passing
through a mirrored port is copied to an observing port.
Mirrored flow
A mirrored flow is a packet flow that runs to a flow mirroring port and is observed. When
a flow becomes a mirrored flow, it is copied to an observing port.
Mirrored VLAN
A mirrored VLAN is a VLAN to be observed. Incoming traffic or outgoing traffic passing
through a mirrored VLAN is copied to an observing port.
RSPAN VLAN
A Remote Switched Port Analyzer (RSPAN) VLAN is a VLAN used for remote mirroring.
When the mirrored port and the observing port are located on different switches, packets
from the mirrored port must be broadcast to the observing port through the RSPAN VLAN.
Local mirroring
The observing port and mirrored port are on the same switch.
Remote mirroring
The observing port and mirrored port are on different switches.
Issue 02 (2012-07-20)
59
7 Mirroring
NOTE
The S2700 does not support the function of mirroring a flow to multiple observing ports.
Port Mirroring
In the process of port mirroring, the S2700 copies the packets passing through a mirrored port
and then sends the copy to a specified observing port. Figure 7-1 shows the diagram of interface
mirroring.
Figure 7-1 Schematic diagram of port mirroring
Mirror
port
Switch
Mirror
port
Observe
port
Port
Data flow
Copy of data flow
Sniffer host
Flow Mirroring
In the process of flow mirroring, the S2700 copies the mirroring flow passing one or more
interfaces and sends the copy to an observing port. Figure 7-2 shows the diagram of flow
mirroring.
Figure 7-2 Schematic diagram of flow mirroring
Mirror
port
Switch
Mirror
port
Observe
port
Sniffer host
Issue 02 (2012-07-20)
Port
Match traffic classification
Data flow
Copy of data flow
60
7 Mirroring
Flow mirroring is a type of action in traffic behaviors. When a traffic policy configured with
flow mirroring is applied to an interface, the S2700 copies the inbound data flow on this interface
that matches the traffic classifier and sends the copy to the observing port.
VLAN Mirroring
In the process of VLAN mirroring, the S2700 mirrors the packets passing through all active
interfaces in a specified VLAN to a specified observing port. Compared with interface mirroring,
VLAN mirroring mirrors packets in a wider range. You can monitor packets in one or more
VLANs.
CPU Mirroring
CPU mirroring is used to mirror all the packets received by the CPU. CPU mirroring is
implemented as follows:
l
If an ACL rule is specified, the packets that match the ACL rule are mirrored to a specified
observing port.
If no ACL rule is specified, all the packets received by the CPU are mirrored to a specified
observing port.
RSPAN
A switch can copy incoming or outgoing packets on a mirrored port to an observing port. When
the observing port and the mirrored port are on different switches, packets can be copied to the
observing port through the Remote Switched Port Analyzer (RSPAN) function, which is also
called remote mirroring.
Issue 02 (2012-07-20)
61
7 Mirroring
Observe port
Source
Switch
Mirror
port
Observe
port
Sniffer host
Intermediate Switch
Port
Data flow
Copy of data flow
In Figure 7-3:
l
The source switch is the Switch where the mirrored port is located.
The destination switch is the Switch where the observing port is located.
The intermediate switch is a device between the source switch and destination switch.
NOTE
The source switch and destination switch can also be directly connected to implement the RSPAN
function.
The RSPAN function broadcasts mirrored packets from the source switch to the destination
switch in the RSPAN VLAN. Interfaces between the source switch, intermediate switch, and
destination switch must be added to the RSPAN VLAN.
The observing port on the source switch is a reflect interface that can reflect mirrored packets
to the interface connected to the intermediate switch. Then mirrored packets are broadcast to the
observing port on the destination switch in the RSPAN VLAN.
The observing port on the destination switch receives mirrored packets.
Through the RSPAN function, packets on a specified interface or VLAN, with a specified source
or destination MAC address, or matching a classifier can be copied to an observing port on a
remote device.
Issue 02 (2012-07-20)
62
7 Mirroring
Pre-configuration Tasks
None.
Data Preparation
To configure local port mirroring, you need the following data.
No.
Data
Procedure
Step 1 Run:
system-view
63
7 Mirroring
Step 4 Run:
port-mirroring to observe-port index { both | inbound | outbound }
Command
display port-mirroring
display observe-port
The mirrored port and the mirroring direction are configured properly.
Pre-configuration Tasks
None.
Data Preparation
To configure remote port mirroring, you need the following data.
Issue 02 (2012-07-20)
64
No.
Data
7 Mirroring
Procedure
NOTE
1.
Run:
system-view
Run:
vlan vlan-id
Run:
mac-address learning disable
If MAC address learning is disabled in the VLAN, other services cannot be configured in the VLAN.
4.
Run:
quit
Run:
observe-port index interface interface-type interface-number [ reflecttype vlan vlan-id ]
An observing port of the reflect type is configured, and the RSPAN VLAN is specified.
Issue 02 (2012-07-20)
65
6.
7 Mirroring
Run:
interface interface-type interface-number
If no intermediate switch exists, you enter the view of the interface connected to the destination
switch.
7.
Run:
port link-type trunk
Run:
port trunk allow-pass vlan vlan-id
Run:
quit
Configure the RSPAN VLAN and add the interfaces connected to the source switch and
destination switch to the RSPAN VLAN.
NOTE
Run:
system-view
Run:
vlan vlan-id
The RSPAN VLAN is created and the RSPAN VLAN view is displayed.
3.
Run:
quit
Run:
interface interface-type interface-number
Issue 02 (2012-07-20)
66
7 Mirroring
The view of the interface connected to the source switch or destination switch is
displayed.
5.
Run:
port link-type trunk
Run:
port trunk allow-pass vlan vlan-id
Run:
quit
Run:
system-view
Run:
vlan vlan-id
The RSPAN VLAN is created and the RSPAN VLAN view is displayed.
3.
Run:
quit
Run:
interface interface-type interface-number
If no intermediate switch exists, you enter the view of the interface connected to the source
switch.
5.
Run:
port link-type trunk
Run:
port trunk allow-pass vlan vlan-id
Run:
interface interface-type interface-number
Run:
port hybrid untagged vlan vlan-id
The observing port is configured as a hybrid interface and it allows packets of the
RSPAN VLAN to pass.
9.
Run:
quit
Issue 02 (2012-07-20)
67
7 Mirroring
Command
display observe-port
display port-mirroring
The number of the mirrored port and the mirroring direction are configured properly.
Pre-configuration Tasks
None.
Data Preparation
To cancel port mirroring, you need the following data.
Issue 02 (2012-07-20)
No.
Data
68
7 Mirroring
Command
display observe-port
display port-mirroring
Run the display port-mirroring command. If port mirroring is cancelled properly, the
configuration is successful.
69
7 Mirroring
Pre-configuration Tasks
Before configuring local VLAN mirroring, complete the following tasks:
l
Data Preparation
To configure local VLAN mirroring, you need the following data.
No.
Data
ID of a mirrored VLAN
Issue 02 (2012-07-20)
Action
Command
display observe-port
70
7 Mirroring
Action
Command
display port-mirroring
Pre-configuration Tasks
Before configuring remote VLAN mirroring, complete the following tasks:
l
Data Preparation
To configure remote VLAN mirroring, you need the following data.
Issue 02 (2012-07-20)
No.
Data
71
7 Mirroring
1.
Run:
system-view
Run:
vlan vlan-id
Run:
mac-address learning disable
If MAC address learning is disabled in the VLAN, other services cannot be configured in the VLAN.
4.
Run:
quit
Run:
observe-port index interface interface-type interface-number [ reflecttype vlan vlan-id ]
An observing port of the reflect type is configured, and the RSPAN VLAN is specified.
6.
Run:
interface interface-type interface-number
If no intermediate switch exists, enter the view of the interface connected to the destination
switch.
7.
Run:
port link-type trunk
Run:
port trunk allow-pass vlan vlan-id
Run:
quit
Issue 02 (2012-07-20)
72
7 Mirroring
Configure the RSPAN VLAN on the intermediate switch and add interfaces to the RSPAN
VLAN.
The configuration is the same as that for remote port mirroring. For details, see 7.3.2
Configuring Remote Port Mirroring.
----End
Command
display observe-port
display port-mirroring
73
7 Mirroring
Pre-configuration Tasks
None.
Data Preparation
To cancel VLAN mirroring, you need the following data.
No.
Data
Command
display observe-port
display port-mirroring
74
7 Mirroring
NOTE
Pre-configuration Tasks
None.
Data Preparation
To configure local MAC address mirroring, you need the following data.
No.
Data
75
7 Mirroring
You can repeatedly perform Step 3 and Step 4 to monitor the incoming packets with multiple
MAC addresses in multiple VLANs.
----End
Command
display observe-port
display port-mirroring
Pre-configuration Tasks
None.
Data Preparation
To configure RSPAN based on MAC addresses, you need the following data.
Issue 02 (2012-07-20)
76
7 Mirroring
No.
Data
ID of the VLAN that the packet with the MAC address to be mirrored belongs to
ID of an RSPAN VLAN
Procedure
l
1.
Run:
system-view
Run:
vlan vlan-id
Run:
mac-address learning disable
If MAC address learning is disabled in the VLAN, other services cannot be configured in the VLAN.
4.
Run:
quit
Run:
observe-port index interface interface-type interface-number [ reflecttype vlan vlan-id ]
An observing port of the reflect type is configured, and the RSPAN VLAN is specified.
6.
Run:
interface interface-type interface-number
If no intermediate switch exists, you enter the view of the interface connected to the destination
switch.
7.
Issue 02 (2012-07-20)
Run:
Huawei Proprietary and Confidential
Copyright Huawei Technologies Co., Ltd.
77
7 Mirroring
Run:
port trunk allow-pass vlan vlan-id
Run:
quit
The view of the VLAN that the observed MAC address belongs to is displayed.
11. Run:
mac-mirroring mac-address to observe-port index inbound
Remote MAC address mirroring is configured and the RSPAN VLAN is specified.
To observe incoming packets from or destined for multiple MAC addresses, repeat
Step 10 and Step 11.
l
Configure the RSPAN VLAN on the intermediate switch and add interfaces to the RSPAN
VLAN.
The configuration is the same as that for remote port mirroring. For details, see 7.3.2
Configuring Remote Port Mirroring.
----End
Command
display observe-port
display port-mirroring
Issue 02 (2012-07-20)
78
7 Mirroring
Pre-configuration Tasks
None.
Data Preparation
To cancel mirroring based on MAC addresses, you need the following data.
No.
Data
The view of the VLAN that monitored MAC address belongs to is displayed.
Step 3 Run:
undo mac-mirroring mac-address inbound
79
7 Mirroring
Action
Command
display observe-port
display port-mirroring
If MAC address mirroring on the VLANIF interface is cancelled, the configuration is successful.
Pre-configuration Tasks
None.
Data Preparation
To configure local flow mirroring, you need the following data.
No.
Data
There is no specified order among the matching rules in a traffic classifier. You can combine these rules.
For details on configuring traffic classification rules, see Configuring Complex Traffic
Classification in the Quidway S2700 Series Ethernet Switches Configuration Guide - QoS.
Issue 02 (2012-07-20)
80
7 Mirroring
Procedure
Step 1 Run:
system-view
Follow-up Procedure
After configuring flow mirroring in a traffic behavior, you need to bind the behavior to a traffic
classifier in a traffic policy and then apply the policy to the interface. For detailed configuration
procedures, see 7.11.4 Creating and Applying a Traffic Policy.
Procedure
Step 1 Run:
system-view
81
7 Mirroring
Step 3 Run:
classifier classifier-name behavior behavior-name
The traffic policy that contains flow mirroring is applied to the interface.
You can repeatedly perform Step 5 and Step 6 to monitor the incoming flows, with the same
attributes, passing through multiple interfaces.
----End
Command
display observe-port
display port-mirroring
A proper traffic policy is applied to the interface where incoming flows need to be
monitored.
The traffic policy contains a proper traffic classifier and a traffic behavior and the traffic
behavior contains a flow mirroring action.
Issue 02 (2012-07-20)
82
7 Mirroring
Pre-configuration Tasks
None.
Data Preparation
To configure remote flow mirroring, you need the following data.
No.
Data
83
7 Mirroring
NOTE
1.
Run:
system-view
Run:
vlan vlan-id
Run:
mac-address learning disable
If MAC address learning is disabled in the VLAN, other services cannot be configured in the VLAN.
4.
Run:
quit
Run:
observe-port index interface interface-type interface-number [ reflecttype vlan vlan-id ]
An observing port of the reflect type is configured, and the RSPAN VLAN is specified.
6.
Run:
interface interface-type interface-number
If no intermediate switch exists, you enter the view of the interface connected to the destination
switch.
7.
Run:
port link-type trunk
Run:
port trunk allow-pass vlan vlan-id
Run:
quit
84
7 Mirroring
After configuring flow mirroring in a traffic behavior, you need to bind the behavior
to a traffic classifier in a traffic policy and then apply the policy to the interface. For
details, see 7.11.4 Creating and Applying a Traffic Policy.
l
Configure the RSPAN VLAN on the intermediate switch and add interfaces to the RSPAN
VLAN.
The configuration is the same as that for remote port mirroring. For details, see 7.3.2
Configuring Remote Port Mirroring.
----End
Command
display observe-port
display port-mirroring
A proper traffic policy is applied to the interface where incoming flows need to be
monitored.
The traffic policy contains a proper traffic classifier and a traffic behavior, and the traffic
behavior contains the flow mirroring action.
Issue 02 (2012-07-20)
85
7 Mirroring
Pre-configuration Tasks
None.
Data Preparation
To cancel flow mirroring, you need the following data.
No.
Data
Type and number of the interface where flow mirroring needs to be cancelled
Procedure
Step 1 Run:
system-view
86
7 Mirroring
Step 4 Run:
quit
The traffic policy and flow mirroring action on the interface are canceled.
To cancel a traffic policy, you must cancel the traffic policy on all the interfaces where the traffic
policy is applied, and then run the undo traffic policy policy-name command to cancel the traffic
policy in the system view.
----End
Command
display observe-port
display port-mirroring
87
7 Mirroring
Pre-configuration Tasks
Before changing or deleting an observing port, complete the following tasks:
l
Data Preparation
To change or delete an observing port, you need the following data.
No.
Data
Procedure
Step 1 Run:
system-view
88
7 Mirroring
Command
display observe-port
display port-mirroring
If the observing port is deleted or a new observing port is specified, the configuration is
successful.
Pre-configuration Tasks
None.
Data Preparation
To configure CPU mirroring, you need the following data.
Issue 02 (2012-07-20)
89
No.
Data
7 Mirroring
Procedure
Step 1 Run:
system-view
An Access Control List (ACL) is created and the ACL view is displayed.
For details on the acl command, see the Quidway S2700 Series Ethernet Switches - Command
Reference.
Step 3 Run:
rule
90
7 Mirroring
Command
display port-mirroring
If the number of the ACL that matches packets received by the CPU and the observing port are
displayed, the configuration is successful.
Pre-configuration Tasks
None.
Data Preparation
To cancel CPU mirroring, you need the following data.
Issue 02 (2012-07-20)
91
7 Mirroring
No.
Data
Command
display port-mirroring
92
7 Mirroring
You need to configure Ethernet 0/0/1 as a mirrored port and Ethernet 0/0/24 as an observing
port.
Figure 7-4 Networking diagram of local port mirroring
Router
Switch
Eth 0/0/1
L2 Switch
Eth 0/0/3
Eth 0/0/24
Mirroring host
Configuration Roadmap
The configuration roadmap is as follows:
1.
2.
Data Preparation
To complete the configuration, you need the following data:
l
Configuration Procedure
1.
Create a VLAN on the Switch and add interfaces to the VLAN in trunk mode.
# Add Ethernet 0/0/1 and Ethernet 0/0/3 to a same VLAN in trunk mode. The following is
the configuration of Ethernet 0/0/1. The configuration of Ethernet 0/0/3 is the same as the
configuration of Ethernet 0/0/1 and is not mentioned here.
<Switch> system-view
[Switch] vlan 10
[Switch-vlan10] quit
[Switch] interface ethernet 0/0/1
[Switch-Ethernet0/0/1] port link-type trunk
[Switch-Ethernet0/0/1] port trunk allow-pass vlan 10
[Switch-Ethernet0/0/1] quit
2.
Issue 02 (2012-07-20)
93
3.
7 Mirroring
4.
Configuration Files
Configuration file of the Switch
#
sysname Switch
#
observe-port 1 interface Ethernet0/0/24
#
interface Ethernet0/0/1
port link-type trunk
port trunk allow-pass vlan 10
port-mirroring to observe-port 1 inbound
#
interface Ethernet0/0/3
port link-type trunk
port trunk allow-pass vlan 10
#
return
Networking Requirements
As shown in Figure 7-5, Ethernet 0/0/1 is connected to PC1; Ethernet 0/0/2 is connected to PC2.
PC1 and PC2 belong to VLAN 10. Now, incoming traffic of all active interfaces in VLAN 10
needs to be monitored. In this case, you can configure local VLAN mirroring.
Ethernet 0/0/3 serves as an observing port.
Issue 02 (2012-07-20)
94
7 Mirroring
Router
GE1/0/1
Switch
Eth0/0/4
Eth0/0/3
Eth0/0/1
PC1
Eth0/0/2
PC3
PC2
Configuration Roadmap
The configuration roadmap is as follows:
1.
2.
Data Preparation
None.
Configuration Procedure
1.
2.
3.
Issue 02 (2012-07-20)
95
7 Mirroring
Configuration Files
Configuration file of the Switch
#
sysname Switch
#
vlan batch 1 10
#
observe-port 1 interface Ethernet0/0/3
#
vlan 10
mirroring to observe-port 1 inbound
#
interface Ethernet0/0/1
port link-type access
port default vlan 10
#
interface Ethernet0/0/2
port link-type access
port default vlan 10
#
#
return
Networking Requirements
As shown in Figure 7-6, Ethernet 0/0/1 is connected to PC1; Ethernet 0/0/2 is connected to PC2;
Ethernet 0/0/4 is connected to a router. Ethernet 0/0/1, Ethernet 0/0/2, and Ethernet 0/0/4 belong
to VLAN 10. Now, incoming traffic with the source or destination MAC as the MAC address
of Ethernet 1/0/1 on the router in VLAN 10 needs to be monitored. In this case, you can configure
local MAC address mirroring on the Switch.
Ethernet 0/0/3 serves as an observing port. The MAC address of Ethernet 1/0/1 is
0001-0001-0001.
Figure 7-6 Networking diagram of local MAC address mirroring
Router
Eth1/0/1
Eth0/0/4
Switch
Eth0/0/1
PC1
Issue 02 (2012-07-20)
Eth0/0/3
Eth0/0/2
PC3
PC2
Huawei Proprietary and Confidential
Copyright Huawei Technologies Co., Ltd.
96
7 Mirroring
Configuration Roadmap
The configuration roadmap is as follows:
1.
2.
Data Preparation
None.
Configuration Procedure
1.
Configure VLAN 10 and then add Ethernet 0/0/1, Ethernet 0/0/2, and Ethernet 0/0/4 to
VLAN 10. The configuration procedure is not mentioned here.
2.
3.
4.
Configuration Files
Configuration file of the Switch
#
sysname Switch
#
vlan batch 1 10
#
observe-port 1 interface Ethernet0/0/3
#
vlan 10
mac-mirroring 0001-0001-0001 to observe-port 1 inbound
#
interface Ethernet0/0/1
port link-type access
port default vlan 10
#
interface Ethernet0/0/2
port link-type access
port default vlan 10
#
Issue 02 (2012-07-20)
97
7 Mirroring
interface Ethernet0/0/3
port link-type access
port default vlan 1
#
interface Ethernet0/0/4
port link-type access
port default vlan 10
#
return
Networking Requirements
As is shown in Figure 7-7, the Switch is connected to two L2 switches through Ethernet 0/0/1
and Ethernet 0/0/5. Packets with the same attributes received by Ethernet 0/0/1 and Ethernet
0/0/5 and transmitted from Ethernet 0/0/3 need to be monitored. In this example, packets with
the 802.1p priority as 6 need to be monitored.
Ethernet 0/0/24 is configured as an observing port.
Figure 7-7 Networking diagram of local flow mirroring
Router
Switch
Eth 0/0/3
Eth 0/0/1
Eth 0/0/24
Eth 0/0/5
L2 Switch
L2
Switch
Mirroring host
Configuration Roadmap
The configuration roadmap is as follows:
1.
2.
Create a traffic classifier and set the traffic classification rule that only the packets with the
802.1p priority as 6 can be matched.
3.
Create a traffic behavior and configure flow mirroring in the traffic behavior.
4.
Create a traffic policy and bind the traffic classifier to the traffic behavior.
Issue 02 (2012-07-20)
98
7 Mirroring
5.
6.
Create a VLAN on the Switch. Add Ethernet 0/0/1, Ethernet 0/0/3, and Ethernet 0/0/5 to
the same VLAN in trunk mode.
Data Preparation
To complete the configuration, you need the following data:
l
Configuration Procedure
1.
Create a VLAN on the Switch and add interfaces to the VLAN in trunk mode.
# Add Ethernet 0/0/1, Ethernet 0/0/3, and Ethernet 0/0/5 to the same VLAN in trunk mode.
The following takes the configuration of Ethernet 0/0/1 as an example. The configurations
of Ethernet 0/0/3 and Ethernet 0/0/5 are the same as the configuration of Ethernet 0/0/1 and
are not mentioned here.
<Switch> system-view
[Switch] vlan 10
[Switch-vlan10] quit
[Switch] interface ethernet 0/0/1
[Switch-Ethernet0/0/1] port link-type trunk
[Switch-Ethernet0/0/1] port trunk allow-pass vlan 10
[Switch-Ethernet0/0/1] quit
2.
3.
4.
5.
6.
Apply the traffic policy and enable the interface to trust the 802.1p priority of packets.
# Apply traffic policy p1 to Ethernet 0/0/1 and Ethernet 0/0/5, and enable Ethernet 0/0/1
and Ethernet 0/0/5 to trust the 802.1p priority of packets.
[Switch] interface ethernet 0/0/1
[Switch-Ethernet0/0/1] traffic-policy p1 inbound
[Switch-Ethernet0/0/1] trust 8021p
Issue 02 (2012-07-20)
99
7 Mirroring
[Switch-Ethernet0/0/1] quit
[Switch]interface ethernet 0/0/5
[Switch-Ethernet0/0/5] traffic-policy p1 inbound
[Switch-Ethernet0/0/5] trust 8021p
[Switch-Ethernet0/0/5] quit
7.
# Run the display traffic policy interface command. You can check the traffic policy
applied to Ethernet 0/0/1 and Ethernet 0/0/5.
[Switch] display traffic policy interface
Interface: Ethernet0/0/1
Direction: Inbound
Policy: p1
Classifier: c1
Operator: AND
Rule(s) :
if-match 8021p 6
Behavior: b1
Mirroring to observe-port 1
Interface: Ethernet0/0/5
Direction: Inbound
Policy: p1
Classifier: c1
Operator: AND
Rule(s) :
if-match 8021p 6
Behavior: b1
Mirroring to observe-port 1
Configuration Files
Configuration file of the Switch
#
sysname Switch
#
vlan batch 10
#
observe-port 1 interface Ethernet0/0/24
#
traffic classifier c1 operator and
if-match 8021p 6
#
traffic behavior b1
mirroring to observe-port 1
#
traffic policy p1
classifier c1 behavior b1
#
interface Ethernet0/0/1
port link-type trunk
port trunk allow-pass vlan 10
traffic-policy p1 inbound
trust 8021p
#
interface Ethernet0/0/3
port link-type trunk
port trunk allow-pass vlan 10
Issue 02 (2012-07-20)
100
7 Mirroring
#
interface Ethernet0/0/5
port link-type trunk
port trunk allow-pass vlan 10
traffic-policy p1 inbound
trust 8021p
#
interface Ethernet0/0/24
#
return
Networking Requirements
As shown in Figure 7-8, Switch A is connected to PC1; Switch C is connected to PC2. Now,
incoming traffic of Ethernet 0/0/2 on Switch A needs to be monitored on PC2. In this case, you
can configure remote port mirroring on Switch A.
Figure 7-8 Networking diagram of remote port mirroring
SwitchA
Eth 0/0/1
Eth 0/0/2
SwitchB
Eth 0/0/1
Eth 0/0/2
SwitchC
Eth 0/0/2
PC1
Eth 0/0/1
PC2
Configuration Roadmap
The configuration roadmap is as follows:
1.
Configure Ethernet 0/0/3 of Switch A as an observing port, and set this interface as a
reflector interface.
2.
3.
4.
Data Preparation
To complete the configuration, you need the following data:
l
Issue 02 (2012-07-20)
101
7 Mirroring
Configuration Procedure
1.
Configure Switch A.
# Create the RSPAN VLAN.
<SwitchA> system-view
[SwitchA] vlan 2
[SwitchA-vlan2] quit
# Configure Eth 0/0/3 as an observing port and configure this interface as a reflector
interface. Specify VLAN 2 as the RSPAN VLAN.
[SwitchA] observe-port 1 interface ethernet 0/0/3 reflect-type vlan 2
2.
Configure Switch B.
# Create the RSPAN VLAN.
<SwitchB> system-view
[SwitchB] vlan 2
[SwitchB-vlan2] quit
# Add Eth 0/0/1 and Eth 0/0/2 to the RSPAN VLAN as trunk interfaces.
[SwitchB] interface Ethernet
[SwitchB-Ethernet0/0/1] port
[SwitchB-Ethernet0/0/1] port
[SwitchB-Ethernet0/0/1] quit
[SwitchB] interface Ethernet
[SwitchB-Ethernet0/0/2] port
[SwitchB-Ethernet0/0/2] port
[SwitchB-Ethernet0/0/2] quit
3.
0/0/1
link-type trunk
trunk allow-pass vlan 2
0/0/2
link-type trunk
trunk allow-pass vlan 2
Configure Switch C.
# Create the RSPAN VLAN.
<SwitchC> system-view
[SwitchC] vlan 2
[SwitchC-vlan2] quit
# Configure Eth 0/0/1 as a hybrid interface and configure it to allow packets of the RSPAN
VLAN to pass.
[SwitchC] interface Ethernet 0/0/1
[SwitchC-Ethernet0/0/1] port hybrid untagged vlan 2
[SwitchC-Ethernet0/0/1] quit
Configuration Files
Configuration file of Switch A
#
sysname SwitchA
#
Issue 02 (2012-07-20)
102
7 Mirroring
vlan 2
#
observe-port 1 interface Ethernet0/0/3 reflect-type vlan 2
#
interface Ethernet0/0/1
port link-type trunk
port trunk allow-pass vlan 2
#
interface Ethernet0/0/2
port-mirroring to observe-port 1 inbound
#
#
return
103
7 Mirroring
Router
Switch
Eth 0/0/3
Eth 0/0/24
Eth 0/0/1
Eth 0/0/5
Mirroring
host1
L2
Switch
Mirroring
host2
Configuration Roadmap
The configuration roadmap is as follows:
1.
2.
3.
Data Preparation
To complete the configuration, you need the following data:
l
Type and number of the new observing port, that is, Ethernet 0/0/5
Configuration Procedure
1.
Check the configurations on the current observing port and mirrored port.
# Run the display port-mirroring command to check the configurations on the current
observing port and mirrored port.
<Switch> display port-mirroring
Port-mirror:
---------------------------------------------------------------------Mirror-port
Direction
Observe-port
---------------------------------------------------------------------Ethernet0/0/1
Inbound
Ethernet0/0/24
----------------------------------------------------------------------
2.
Issue 02 (2012-07-20)
104
3.
7 Mirroring
4.
5.
Configuration Files
Configuration file of the Switch
#
sysname Switch
#
observe-port 1 interface Ethernet0/0/5
#
interface Ethernet0/0/1
port-mirroring to observe-port 1 inbound
#
return
Issue 02 (2012-07-20)
105
8 PoE Configuration
PoE Configuration
Issue 02 (2012-07-20)
106
8 PoE Configuration
The S2700-9TP-PWR-EI uses a built-in 180 W PoE power supply. Each device provides
123.2 W for the PoE function.
The S2700-26TP-PWR-EI has two power supply slots. Each slot supports a 500 W or 250
W power supply. When two PoE power supplies are used, determine their working mode
according to the following table.
Power Supply Combination
123.2W
369.6W
246.4W
739.2W
Issue 02 (2012-07-20)
107
8 PoE Configuration
Set the maximum power and reserved power of the PoE power supply on the S2700 through
commands.
Control the remote power supply features of PoE interfaces separately, for example, enable
or disable the remote power supply function, and set the maximum output power, the power
supply mode, and the power supply priority through commands.
Pre-configuration Tasks
Before configuring the PoE functions, complete the following task:
Installing the PoE power supply on the S2700.
Run:
system-view
Run:
poe max-power maximum-power [ slot slot-id ]
Run:
system-view
Run:
poe power-management { auto | manual } [ slot slot-id ]
When the manual power management mode is adopted, you must manually power on or power off
PDs on interfaces.
1.
Run:
system-view
Issue 02 (2012-07-20)
108
8 PoE Configuration
Run:
poe power-on interface interface-type interface-number or poe power-off
interface interface-type interface-number
Run:
system-view
Run:
poe high-inrush enable [ slot slot-id ]
(Optional) Setting the percentage of the reserved PoE power against the total PoE power
The S2700 can dynamically allocate power to each interface according to the power
consumption of each interface. The power consumption of a PD keeps changing when the
PD is running. The S2700 periodically calculates the total power consumption of all the
PDs connected to the device. If the total power consumption exceeds the upper threshold
of the board, the S2700 cuts off the power of the PDs on the interfaces of low priority to
ensure that other PDs can run normally.
Sometimes, the power consumption increases sharply and the available power of the device
cannot support the burst increase of power. At this time, the software system has not found
that the total power consumption exceeded the upper threshold; therefore, the S2700 does
not power off interfaces of low priority in time. As a result, the PoE power supply is shut
down for overload protection, and hence all PDs are powered off.
This problem can be solved by setting proper reserved power. When the power consumption
increases sharply, the reserved power can support the system running. Then the system
software has time to power off interfaces of low priority to ensure stable running of other
PDs.
1.
Run:
system-view
Run:
poe power-reserved reserved-power-percent [ slot slot-id ]
The percentage of the reserved PoE power against the total PoE power is set.
By default, 20% of the total PoE power is reserved.
l
Run:
system-view
Issue 02 (2012-07-20)
109
8 PoE Configuration
Run:
poe power-threshold thresholdvalue [ slot slot-id ]
Procedure
Step 1 Enable the PoE function on an interface.
1.
Run:
system-view
Run:
interface interface-type interface-number
Run:
poe enable
Run:
system-view
Run:
interface interface-type interface-number
Run:
poe power maximum-power
Run:
system-view
110
2.
8 PoE Configuration
Run:
interface interface-type interface-number
Run:
poe priority { critical | high | low }
Run:
system-view
Run:
time-range time-name { start-time to end-time days | from time1 date1 [ to
time2 date2 ] }
Run:
interface interface-type interface-number
Run:
poe power-off time-range time-range-name
Before enabling an interface to check compatibility of PDs, you must enable PoE on the PSE. After this
function is enabled, the interface can detect the PDs that do not comply with IEEE 802.3af.
1.
Run:
system-view
Run:
interface interface-type interface-number
Run:
poe legacy enable
111
1.
8 PoE Configuration
Run:
system-view
Run:
interface interface-type interface-number
Run:
poe force-power
Procedure
Step 1 Run the display poe-power command to view information about the PoE power supply of a
device.
Step 2 Run the display poe device command to view information about the devices that support the
PoE function.
Step 3 Run the display poe information command to view the PoE information.
Step 4 Run the display poe power interface interface-type interface-number command to view the
output power of an interface.
Step 5 Run the display poe power-state interface interface-type interface-number command to view
the status of PoE power supply on an interface.
----End
Switch A, Switch B, and the AP are devices of other vendors and need to be powered through PoE.
Issue 02 (2012-07-20)
112
8 PoE Configuration
Switch A is connected to Ethernet 0/0/1 on the Switch; the maximum power consumption
of Switch A is 12000 mw; Switch A is connected to the data server and needs to be powered
first.
Switch B is connected to Ethernet 0/0/2 on the Switch; the maximum power consumption
of Switch B is 20000 mw; Switch B is connected to common Internet access users.
The AP is connected to Ethernet 0/0/3 on the Switch; the maximum power consumption
of the AP is 2500 mw; the AP is connected to wireless users.
Switch provides power for Switch A, Switch B, and the AP in automatic mode.
Figure 8-1 Networking diagram of PoE configurations
Switch
Ethernet0/0/1
SwitchA
Ethernet0/0/3
Ethernet0/0/2
AP
SwitchB
Configuration Roadmap
The configuration roadmap is as follows:
1.
Enable PoE on Ethernet 0/0/1 of the Switch, and set the maximum power and the power
supply priority of Ethernet 0/0/1.
2.
Enable PoE on Ethernet 0/0/2 of the Switch, and set the maximum power consumption of
Ethernet 0/0/2.
3.
Enable PoE on Ethernet 0/0/3 of the Switch, and set the maximum power consumption of
Ethernet 0/0/3.
4.
Data Preparation
To complete the configuration, you need the following data:
l
Configuration Procedure
1.
# Enable PoE on Ethernet 0/0/1 of the Switch, and set the maximum power and the power
supply priority of Ethernet 0/0/1.
[Switch] interface ethernet 0/0/1
[Switch-Ethernet0/0/1] poe enable
Issue 02 (2012-07-20)
113
8 PoE Configuration
2.
# Enable PoE on Ethernet 0/0/2 of the Switch, and set the maximum power consumption
of Ethernet 0/0/2 to 20000 mW.
<Switch> system-view
[Switch] interface ethernet 0/0/2
[Switch-Ethernet0/0/2] poe enable
[Switch-Ethernet0/0/2] poe power 20000
[Switch-Ethernet0/0/2] quit
3.
# Enable PoE on Ethernet 0/0/3 of the Switch, and set the maximum power consumption
of Ethernet 0/0/3 to 2500 mW.
[Switch] interface ethernet 0/0/3
[Switch-Ethernet0/0/3] poe enable
[Switch-Ethernet0/0/3] poe power 2500
[Switch-Ethernet0/0/3] quit
4.
Configuration Files
#
sysname Switch
#
interface Ethernet0/0/1
poe power 12000
poe priority critical
#
interface Ethernet0/0/2
poe power 20000
#
interface Ethernet0/0/3
poe power 2500
#
return
Issue 02 (2012-07-20)
114
9 ALS Configuration
ALS Configuration
Issue 02 (2012-07-20)
115
9 ALS Configuration
TX
RX
RX
TX
SwitchA
l
SwitchB
The switch and the optical network terminal (ONT) are connected through fibers.
In the application of fiber to the home (FTTH), if ONT users perform improper operations
on the fiber because of lack of knowledge about radiation or children touch the fiber, the
radiation of the laser harms eyes. To solve this problem, you can enable the ALS function
on the switch to protect safety of users. Figure 9-2 shows the connection.
Figure 9-2 Connecting the switch and ONT through the fiber
Switch
Issue 02 (2012-07-20)
TX
RX
RX
TX
ONT
116
9 ALS Configuration
1.
2.
3.
The LOS on the interface of Switch B is cleared, and the interface becomes Up and
sends signals.
4.
5.
The LOS on the interface of Switch A is cleared, the interface becomes Up, and data
communication is recovered.
2.
Switch B receives optical signals of Switch A immediately after the fiber link is
recovered.
3.
The LOS on the interface of Switch B is cleared, and the interface becomes Up and
sends signals.
4.
5.
The LOS on the interface of Switch A is cleared, the interface becomes Up, and data
communication is recovered.
After ALS is enabled on an interface, the communication recovery speed on the interface is
reduced. Packets are discarded if traffic is transmitted on the interface.
117
9 ALS Configuration
Applicable Environment
The S2700 detects LOSs on optical interfaces to control the laser of optical modules, ensuring
security and saving energy.
According to the actual networking requirements, after ALS is enabled, you can:
l
Set the restart mode of the laser of an optical module through a command.
Set the ALS pulse interval and width of the laser of an optical module through commands.
View the ALS configuration on interfaces of different optical modules through commands.
Pre-configuration Tasks
Before configuring ALS, complete the following task:
Ensure that the S2700 has an optical module.
Data Preparation
To configure ALS, you need the following data.
No.
Data
Context
The constraints on ALS are as follows:
l
Only optical interfaces support ALS. Electrical interfaces do not support ALS.
When optical interfaces transmit services unidirectionally, they do not support ALS.
The hardware must provide support for the software to detect the LOS on an optical
interface and control the laser on an interface.
Procedure
Step 1 Run:
system-view
118
9 ALS Configuration
Step 3 Run:
als enable
Prerequisites
ALS is enabled on the interface.
Context
If the laser of an optical module works in automatic restart mode, the laser starts automatically
at ALS pulse intervals. If the laser of an optical module is set to work in manual restart mode,
you must start the laser manually. Then the laser sends a pulse.
If the fiber link recovery is detected in time, you can use the manual restart mode so that the
laser can send pulses immediately. Therefore, data communication can be recovered rapidly.
By default, the laser works in automatic restart mode after ALS is enabled on all the interfaces.
Procedure
Step 1 Run:
system-view
119
9 ALS Configuration
Prerequisites
The interface is enabled with ALS and works in manual restart mode.
Context
When an interface detects the LOS, the laser of the optical module stops sending pulses. If the
als restart command is not used, the laser will not be restarted. If the interface still detects the
LOS after the laser is started manually, the laser is stopped again. If the interface detects that
the LOS is cleared, the laser of an optical module sends pulses and data communication is
recovered.
Procedure
Step 1 Run:
system-view
The laser of an optical module is started manually. Then the laser sends a pulse.
----End
9.3.5 (Optional) Setting the ALS Pulse Interval and Width of the
Laser
You can set the proper laser pulse interval and width to ensure energy conservation and emission
deduction and timely detection of fiber link recovery.
Prerequisites
The interface is enabled with ALS and works in automatic restart mode.
Context
The ALS pulse width refers to the duration in which a laser sends pulses; the ALS pulse interval
refers to the period between rising edges of pulses. A smaller pulse width and a greater pulse
interval save more energy but reduce the speed of fiber link recovery.
Procedure
Step 1 Run:
system-view
120
9 ALS Configuration
Prerequisites
The ALS configurations are complete on the S2700.
Procedure
l
Run the display als configuration slot slot-id command to view the ALS configurations
of member switches.
----End
Networking Requirements
As shown in Figure 9-3, the LPUs that support ALS are installed in slot 1 of Switch A and
Switch B, GE 0/0/1 of Switch A and Switch B are connected through a fiber.
When data transmission is interrupted by faults occurred on the fiber link, if the laser of the
optical module sends pulses continuously, the energy is wasted and potential risks are caused.
After ALS is enabled on both interfaces of the fiber link, the laser stops sending pulses if a fault
occurs on the fiber link. If the faulty link is recovered, the laser starts to send pulses.
Issue 02 (2012-07-20)
121
9 ALS Configuration
GE0/0/1
SwitchA
GE0/0/1
SwitchB
Configuration Roadmap
The configuration roadmap is as follows:
1.
2.
Configure the lasers of GE 0/0/1 on Switch A and Switch B to work in automatic restart
mode.
3.
Set the ALS pulse intervals and widths of the lasers of GE 0/0/1 on Switch A and Switch
B.
Data Preparation
To complete the configuration, you need the following data:
l
ALS pulse interval and width of the laser of the optical module on GE 0/0/1 of Switch A
ALS pulse interval and width of the laser of the optical module on GE 0/0/1 of Switch B
Procedure
Step 1 Enable ALS on GE 0/0/1 of Switch A, configure the laser of the interface to work in automatic
restart mode, and set the ALS pulse interval and width to 200s and 3s.
# Enable ALS.
<SwitchA> system-view
[SwitchA] interface gigabitethernet 0/0/1
[SwitchA-GigabitEthernet0/0/1] als enable
Step 2 Enable ALS on GE 0/0/1 of Switch B, configure the laser of the interface to work in automatic
restart mode, and set the ALS pulse interval and width to 200s and 3s.
# Enable ALS.
<SwitchB> system-view
[SwitchB] interface gigabitethernet 0/0/1
[SwitchB-GigabitEthernet0/0/1] als enable
122
9 ALS Configuration
----End
Configuration Files
l
Issue 02 (2012-07-20)
123
10
Issue 02 (2012-07-20)
124
10.1 Introduction
This section introduces the required knowledge in restarting and resetting the S2700.
BootROM starts
Press Ctrl+B
Yes
No
Enter the
command line
interface
End
To check the BootROM startup process, you need to connect the Console port of the switch to a terminal
by using a serial port cable.
The BootROM compares the current configuration with the configuration file. If they are the
same, the BootROM asks you whether to reboot the system. The message is as follows:
Info: The system is now comparing the configuration, please wait.
System will reboot! Continue?[Y/N]:y
Issue 02 (2012-07-20)
125
Press Ctrl+B within two seconds. The system prompts you to enter the password of the advanced
BootROM menu as follows:
The default password is huawei.
password:
BOOTROM
MENU
In the advanced BootROM menu, you can choose to upgrade the VRP or specify the VRP version
to be loaded when the S2700 is started.
The BootROM initializes the serial interface and the console interface, decompresses the logical
files on the logical chip and the VRP, and then starts the VRP. The terminal displays information
as follows:
Decompressing Image file ... done
PPI DEV SysInit......OK
Hard system init.................OK
Begin to start the system, please waiting ......
VOS
VOS
CFM
PAT
VOS
VFS init.....................OK
monitor init.................OK
init advance.................OK
init ........................OK
VFS init hind ...............OK
VRP_Root begin...
VRP_InitializeTask begin...
Init the Device Link.............OK
CFG_PlaneInit begin..............OK
CFM_Init begin...................OK
CLI_CmdInit begin................OK
VRP_RegestAllLINKCmd begin.......OK
create task begin................
task init begin...
Recover configuration...OK!done
Press ENTER to get started.
When the terminal displays the preceding information, the VRP has started. Press Enter to enter
the command line interface (CLI).
Issue 02 (2012-07-20)
126
CAUTION
The reboot command can paralyze the network for a while. Therefore, run the reboot command
with caution.
Before restarting the S2700, check whether to save the configuration file and whether the file
contents are correct. For details on saving the configuration file, refer to the Quidway S2700
Series Ethernet Switches Configuration Guide - Basic Configuration.
Procedure
Step 1 Run:
reboot
CAUTION
The action can paralyze the network for a while. Therefore, perform this action with caution.
Before restarting the S2700, check whether to save the configuration file and whether the file
contents are correct. For details on saving the configuration file, see the Quidway S2700
Series Ethernet Switches Configuration Guide - Basic Configuration.
Procedure
Step 1 Press the power button on the S2700 to power off the running S2700.
Step 2 Press the power button on the S2700 again to restart the S2700.
----End
127
Procedure
Step 1 Run:
schedule reboot { at time | delay interval [ force ] }
Issue 02 (2012-07-20)
128