2013年12月13日星期五

VLAN assignment in different usage scenarios

On the S5306, LS-S5352C-EI  EI, S5310EI, S5300HI, and S6300, if both the subnet VLAN and the MAC VLAN with a mask are configured, the MAC VLAN with a mask is first matched regardless of whether the vlan precedence command is used.

Access
Accepts an untagged frame and adds a tag with the default VLAN ID to the frame.
Accepts the tagged frame if the frame's VLAN ID matches the default VLAN ID.
Discards the tagged frame if the frame's VLAN ID differs from the default VLAN ID.
After the PVID tag is stripped, the frame is transmitted.
An access port can belong to only one VLAN. The access interface is directly connected to a computer.
Trunk
Adds a tag with the default VLAN ID to the untagged frame and then transmits it if the default VLAN ID is permitted by the port
Adds a tag with the default VLAN ID to the untagged frame and then discards it if the default VLAN ID is denied by the port.
Accepts the tagged frame if the frame's VLAN ID is permitted by the port.
Discards the tagged frame if the frame's VLAN ID is denied by the port.
If the frame's VLAN ID matches the default VLAN ID and the VLAN ID is permitted by the port, the device removes the tag and transmits the frame.
If the frame's VLAN ID differs from the default VLAN ID, but the VLAN ID is still permitted by the port, the switch will directly transmit the frame.
A trunk port allows packets of multiple VLANs to pass through. It usually connects network devices.
Hybrid
If the frame's VLAN ID is permitted by the port, the frame is transmitted. The port can be configured whether to transmit frames with tags.
A hybrid port allows packets of multiple VLANs to pass through. It can be used to connect network devices or network devices and user devices.
QinQ
QinQ ports are enabled with the IEEE 802.1QinQ protocol. A QinQ port can add double VLAN tags to a data frame, that is, a QinQ port can add a tag to a single-tagged frame. Therefore, a QinQ port supports a maximum of 4094 x 4094 VLAN tags, which meets the requirement on the number of VLANs. For details, see QinQ Overview.


he S5328C-SI  and S5300LI do not support VLAN aggregation.

2013年12月10日星期二

Configuring a Voice VLAN in Auto Mode on Huawei S2300

Create VLANs and configure the LS-S2309TP-SI-AC  interface on the Switch.
# Create VLAN 2 and VLAN 6.
<Quidway> system-view
[Quidway] vlan batch 2 6
# Configure the link type and default VLAN of the interface.
[Quidway] interface ethernet 0/0/1
[Quidway-Ethernet0/0/1] port hybrid pvid vlan 6
[Quidway-Ethernet0/0/1] port hybrid untagged vlan 6
[Quidway-Ethernet0/0/1] quit
Step 2 Configure the voice VLAN on the Switch.
# Configure the voice VLAN on the interface.
[Quidway] interface ethernet 0/0/1
[Quidway-Ethernet0/0/1] voice-vlan 2 enable
# Set the voice VLAN mode to auto so that the interface can be automatically added to or deleted
from the voice VLAN.
[Quidway-Ethernet0/0/1] voice-vlan mode auto
[Quidway-Ethernet0/0/1] quit
# Set the OUI of the voice VLAN.
[Quidway] voice-vlan mac-address 0011-2200-0000 mask ffff-ff00-0000
# Set the aging time of the voice VLAN.
[Quidway] voice-vlan aging-time 100
# Set the working mode of the voice VLAN.
[Quidway-Ethernet0/0/1] voice-vlan security enable
Step 3 Verify the configuration.
Run the display voice-vlan oui command to check the OUI of the voice VLAN.
<Quidway> display voice-vlan oui
---------------------------------------------------
OuiAddress Mask Description
---------------------------------------------------
0011-2200-0000 ffff-ff00-0000
Run the display voice-vlan 2 status command to check the voice VLAN mode, voice VLAN
security mode, and voice VLAN aging time.
<Quidway> display voice-vlan 2 status
Voice VLAN Configurations:
S2300 Series Ethernet Switches
Typical Configuration Examples 1 Configuration Guide - Ethernet
Issue 02 (2012-10-27) Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
22
---------------------------------------------------
Voice VLAN ID : 2
Voice VLAN status : Enable
Voice VLAN aging time : 100 (minutes)
Voice VLAN 8021p remark : 6
Voice VLAN dscp remark : 46
----------------------------------------------------------
Port Information:
-----------------------------------------------------------
Port Add-Mode Security-Mode Legacy
-----------------------------------------------------------

Ethernet0/0/1 Auto Security LS-S2318TP-EI-DC  Disable

2013年12月9日星期一

Configuring an FTP Huawei S3300

Configure SwitchB LS-S3328TP-EI-24S-AC .
# Configure an IP address for SwitchB.
<Quidway> system-view
[Quidway] sysname SwitchB
[SwitchB] vlan 100
[SwitchB-vlan100] quit
[SwitchB] interface ethernet 0/0/1
[SwitchB-Ethernet0/0/1] port hybrid pvid vlan 100
[SwitchB-Ethernet0/0/1] port hybrid untagged vlan 100
[SwitchB-Ethernet0/0/1] quit
[SwitchB] interface Vlanif 100
[SwitchB-Vlanif100] ip address 10.1.1.2 24
[SwitchB-Vlanif100] quit
# Configure SwitchB as the FTP server.
[SwitchB] ftp server enable
[SwitchB] aaa
[SwitchB-aaa] local-user user1 password cipher hello123
[SwitchB-aaa] local-user user1 privilege level 15
[SwitchB-aaa] local-user user1 service-type ftp
[SwitchB-aaa] local-user user1 ftp-directory flash:/
[SwitchB-aaa] quit
Step 2 Configure SwitchA.
# Configure an IP address for SwitchA.
<Quidway> system-view
[Quidway] sysname SwitchA
[SwitchA] vlan 100
[SwitchA] interface ethernet 0/0/1
[SwitchA-Ethernet0/0/1] port hybrid pvid vlan 100
[SwitchA-Ethernet0/0/1] port hybrid untagged vlan 100
[SwitchA-Ethernet0/0/1] quit
[SwitchA] interface Vlanif 100
[SwitchA-Vlanif100] ip address 10.1.1.1 24
[SwitchA-Vlanif100] quit
# Create an NQA FTP test on SwitchA and create a file of 10 KB for uploading.
[SwitchA] nqa test-instance admin ftp
[SwitchA-nqa-admin-ftp] test-type ftp
[SwitchA-nqa-admin-ftp] destination-address ipv4 10.1.1.2
[SwitchA-nqa-admin-ftp] source-address ipv4 10.1.1.1
[SwitchA-nqa-admin-ftp] ftp-operation put
[SwitchA-nqa-admin-ftp] ftp-username user1
[SwitchA-nqa-admin-ftp] ftp-password hello123
[SwitchA-nqa-admin-ftp] ftp-filesize 10
Step 3 Start the test instance.
[SwitchA-nqa-admin-ftp] start now
Check the configuration.
# Check NQA test results on SwitchA.
[SwitchA-nqa-admin-ftp] display nqa results test-instance admin ftp
NQA entry(admin, ftp) :testflag is inactive ,testtype is ftp
1 . Test 1 result The test is finished
SendProbe:1 ResponseProbe:1
Completion :success RTD OverThresholds number: 0
MessageBodyOctetsSum: 10240 Stats errors number: 0
Operation timeout number: 0 System busy operation number:0
Drop operation number:0 Disconnect operation number: 0
CtrlConnTime Min/Max/Average: 657/657/657
DataConnTime Min/Max/Average: 500/500/500
SumTime Min/Max/Average: 1157/1157/1157
Average RTT:656
Lost packet ratio:0 %
# On SwitchB, you can view that a file named nqa-ftp-test.txt is added. Part of the file on the
SwitchB is displayed.
<SwitchB  LS-S3352P-EI-AC > dir
Directory of flash:/
0 -rw- 331 Jul 06 2007 18:34:34 private-data.txt
1 -rw- 10,240 Jul 06 2007 18:37:06 nqa-ftp-test.txt

2,540 KB total (1,536 KB free)