Академический Документы
Профессиональный Документы
Культура Документы
Table of Contents
Table of Contents
Chapter 1 VLAN Configuration .................................................................................................... 1-1
1.1 VLAN Overview.................................................................................................................. 1-1
1.1.1 Introduction to VLAN ............................................................................................... 1-1
1.1.2 VLAN Classification................................................................................................. 1-2
1.2 Basic VLAN Configuration ................................................................................................. 1-2
1.3 Basic VLAN Interface Configuration .................................................................................. 1-2
1.4 Port-Based VLAN Configuration ........................................................................................ 1-3
1.4.1 Introduction of Port-Based VLAN ............................................................................ 1-3
1.4.2 Configuring an Access Port-Based VLAN............................................................... 1-5
1.4.3 Configuring a Trunk Port-Based VLAN ................................................................... 1-6
1.4.4 Configuring a Hybrid Port-Based VLAN.................................................................. 1-7
1.5 Displaying VLAN Configuration ......................................................................................... 1-8
1.6 VLAN Configuration Example ............................................................................................ 1-9
1.6.1 Network Requirements............................................................................................ 1-9
1.6.2 Network Diagram..................................................................................................... 1-9
1.6.3 Configuration Procedure ......................................................................................... 1-9
Chapter 2 Voice VLAN Configuration.......................................................................................... 2-1
2.1 Voice VLAN Overview ....................................................................................................... 2-1
2.1.1 Automatic and Manual Voice VLAN Modes ............................................................ 2-1
2.1.2 Security and Ordinary Voice VLAN Modes ............................................................. 2-4
2.2 Voice VLAN Configuration ................................................................................................. 2-4
2.2.1 Configuration Prerequisites..................................................................................... 2-4
2.2.2 Configuring Voice VLAN in Automatic Mode .......................................................... 2-5
2.2.3 Configuring Voice VLAN in Manual Mode............................................................... 2-6
2.3 Displaying Voice VLAN...................................................................................................... 2-7
2.4 Voice VLAN Configuration Example .................................................................................. 2-7
2.4.1 Voice VLAN Configuration Example (Automatic Mode).......................................... 2-7
2.4.2 Voice VLAN Configuration Example (Manual Mode) .............................................. 2-9
Chapter 3 GVRP Configuration .................................................................................................... 3-1
3.1 Introduction to GARP......................................................................................................... 3-1
3.1.1 Introduction to GARP .............................................................................................. 3-1
3.1.2 Introduction to GVRP .............................................................................................. 3-3
3.1.3 Protocols and Standards......................................................................................... 3-4
3.2 Configuring GVRP ............................................................................................................. 3-4
3.2.1 Configuring GVRP................................................................................................... 3-4
3.2.2 Setting GARP Timer................................................................................................ 3-5
3.3 Displaying and Maintaining GARP/GVRP ......................................................................... 3-6
Table of Contents
ii
LAN Switch
VLAN B
VLAN A
LAN Switch
VLAN A
VLAN B
VLAN B
Router
1-1
Port-based VLAN
MAC-based VLAN
Protocol-based VLAN
Policy-based VLAN
Other VLAN
H3C S5500-SI Series Ethernet Switch supports the port-based VLAN. This chapter will
focus on the port-based VLAN.
system-view
vlan { vlan-id1
vlan-id2 | all }
Remarks
to
Optional
Required
vlan vlan-id
description text
1-2
system-view
Remarks
Required
interface vlan-interface
vlan-interface-id
Configure IP address of
VLAN interface
ip address ip-address
{ mask | mask-length }
[ sub ]
description text
Enable
Interface
the
VLAN
undo shutdown
Note:
Before creating a VLAN interface, the corresponding VLAN must exist. Otherwise, you
cannot create the VLAN interface successfully.
1-3
Access. An access port belongs to only one VLAN; it strips VLAN tags when
sending the packets of the VLAN. An access port is generally used to connect a
user device.
Trunk. A trunk port can belong to more than one VLAN and receives/sends the
packets of multiple VLANs; it is generally used to connect a switch.
Hybrid. A hybrid port can also belong to more than one VLAN and receives/sends
the packets of multiple VLANs; it is used to connect a switch or a user device.
The difference between the hybrid port and the trunk port is that:
z
A hybrid port allows the packets from multiple VLANs to be sent without tags.
A trunk port only allows the packets from the default VLAN to be sent without tags.
The default VLAN of an access port is the VLAN the access port belongs to and
cannot be configured.
Both of the trunk port and hybrid port allow multiple VLANs to pass through. You
can configure the default VLAN for them.
After you delete the default VLAN of a port through the undo vlan command, for
an access port, its default VLAN restore to VLAN 1; for a trunk or a hybrid port, its
default VLAN configuration remain unchanged, that is, a trunk port or hybrid port
can use the presently nonexistent VLAN as the default VLAN.
Note:
For ports of a voice VLAN in automatic mode, you cannot configure the voice VLAN as
the default VLAN of the ports. If you do so, the system will prompt that you cannot
perform the configuration. For information about the voice VLAN, refer to Chapter 2
Voice VLAN Configuration.
The way by which a port processes incoming and outgoing packets depends on the link
type and default VLAN configured on it. Refer to the following table for details:
1-4
If no tag is
carried in the
packet
Outgoing packet
If a tag is carried in
the packet
z
Access
port
z
z
z
Trunk port
Encapsulate
the
default
VLAN tag to the
packet
z
Hybrid
port
1-5
Remarks
Required
vlan vlan-id
port interface-list
Table 1-5 Configure an access port-based VLAN (in Ethernet port view or port group
view)
To do
Enter system view
Enter
Ethernet
port view
or
port
group
view
Enter
Ethernet
port view
interface
interface-type
interface-number
Enter port
group view
port-group
{
manual
port-group-name
|
aggregation agg-id }
Remarks
Configure a port as an
access port
By default, a port is an
access port.
Required
By default, all access
ports belong to VLAN 1.
Note:
You must add an access port to an existing VLAN.
Enter
Ethernet
port view
or
port
group view
Remarks
system-view
Enter
Ethernet
port view
interface
interface-type
interface-number
Enter port
group view
port-group
{
manual
port-group-name
|
aggregation agg-id }
Configure a port as a
trunk port
port trunk
vlan-id
pvid
vlan
Note:
z
A trunk port and a hybrid port cannot switch to each other directly but must be
configured as an access port first. For example, a trunk port cannot be configured to
be a hybrid port directly; you must specify the trunk port as an access port first, and
then specify the access port as a hybrid port.
The default VLAN ID of the trunk port on the local switch must be the same as that of
the trunk port on the peer switch. Otherwise, the packets of the default VLAN cannot
be transmitted correctly from the local end to the peer end.
1-7
Remarks
system-view
Enter
Ethernet
port view
interface
interface-type
interface-number
Enter port
group
view
port-group
{
manual
port-group-name
|
aggregation agg-id }
Configure a port as a
Hybrid port
port hybrid
vlan-id
pvid
vlan
Note:
z
A trunk port and a hybrid port cannot switch to each other directly but must be
configured as an access port first. For example, a trunk port cannot be configured to
be a hybrid port directly. You must specify the trunk port as an access port first, and
then specify the access port to a hybrid port.
The VLANs configured to be permitted to pass through a hybrid port must exist.
1-8
Remarks
Available in any
view
The port permits the packets from VLAN 2, VLAN 6 through 50, and VLAN 100 to
pass.
Switch A
Switch B
Configure Switch A
1-9
2)
1-10
OUI Address
Vendor
0001-e300-0000
Siemens phone
0003-6b00-0000
Cisco phone
00d0-1e00-0000
Pingtel phone
00e0-7500-0000
Polycom phone
00e0-bb00-0000
3com phone
Note:
z
2-1
In automatic mode, the system identifies the source MAC address contained in the
untagged packet sent when the IP phone is powered on and matches it against the
OUI addresses. If a match is found, the system will automatically add the port into
the Voice VLAN and send ACL rules to ensure the packet precedence. An aging
time can be configured on the device. The system will remove a port from the
voice VLAN if no voice packets are received from it within the aging time. The
adding and deleting of ports are automatically realized by the system.
In manual mode, the administrator adds the IP phone access port directly to the
voice VLAN. The system then identifies the source MAC address contained in the
packets on the port, matches it against the OUI addresses, and decides whether
to forward the packets in the voice VLAN. When the administrator adds a port to
the voice VLAN, the device automatically applies ACL rules to the port to configure
packet priority. In this mode, the adding or deleting of ports is realized by the
administrators.
In any of the two modes, the port forwards tagged packets in the same manner: forward
the tagged packets based on the VLAN IDs contained in them.
The above two working modes are configured in Ethernet port view. The voice VLAN
working modes of different ports are independent and different ports can be configured
to work in different modes.
The following table lists the co-relation between voice VLAN modes, voice traffic types
of IP phones, and port types.
Table 2-2 Port modes and voice stream types
Port voice VLAN
mode
Voice
stream type
Port type
Access
Supported or not
Not supported
Supported
Trunk
Tagged voice
stream
Automatic mode
Hybrid
Access
Untagged
voice stream
Trunk
Hybrid
2-2
Not supported.
Voice
stream type
Port type
Access
Supported or not
Not supported
Supported
Trunk
Tagged voice
stream
Hybrid
Manual mode
Access
Trunk
Untagged
voice stream
Hybrid
2-3
Caution:
z
If the voice stream transmitted by your IP phone is with VLAN tag and the port which
the IP phone is attached to is enabled with 802.1x authentication and 802.1x guest
VLAN, assign different VLAN IDs for the voice VLAN, the default VLAN of the port,
and the 802.1x guest VLAN to ensure the two functions to operate properly.
If the voice stream transmitted by the IP phone is without VLAN tag, the default
VLAN of the port which the IP phone is attached to can only be configured as a voice
VLAN for the voice VLAN function to take effect. In this case, 802.1x authentication
is unavailable.
Note:
z
The default VLAN of all ports is VLAN 1. You can use the corresponding command
to specify a default VLAN for a port, and allow certain VLAN to pass through the port.
Relate command 1.4 Port-Based VLAN
Use the display interface command to display the VLANs allowed to pass through
a port and the default VLAN of the port.
In security mode, the port with the voice VLAN function enabled allows only the
voice packets with source MAC address being recognizable OUI address. Other
packets are discarded (including some authentication packets, like 802.1x
authentication packets).
In ordinary mode, the port with voice VLAN function enabled allows both voice
packets and other types of packets to pass. Voice packets comply with the filtering
rule of the voice VLAN and other types of packets comply with the filtering rule of
the ordinary VLAN.
You are recommended not to transmit voice data and other service data in the voice
VLAN simultaneously. If you need to do so, make sure the voice VLAN mode is
ordinary.
VLAN 1 is the default VLAN and do not need to be created. But VLAN 1 does not
support the voice VLAN function.
Remarks
system-view
Optional
Set the aging time for the
voice VLAN
voice
vlan
enable
Optional
Required
interface interface-type
interface-number
security
Optional
voice vlan mode auto
Note:
For ports working in automatic mode, you cannot configure the default VLAN as the
voice VLAN. Otherwise, the system prompts you cannot perform the configuration.
2-5
system-view
voice vlan
enable
voice
vlan
mac-address
oui
mask
oui-mask
[ description text ]
voice vlan
enable
interface
interface-type
interface-number
Remarks
security
vlan-id
Optional
By default, the voice VLAN
security mode is enabled.
Optional
By default, after the voice
VLAN is enabled, it has five
OUI addresses.
Required
Required
The default voice VLAN
operation mode is automatic
mode.
Required
By default, all ports belong
to VLAN 1.
2-6
Note:
Note the following when configuring voice VLAN in manual and automatic modes.
z
You can enable the voice VLAN function for only one static VLAN on a switch. And a
dynamic VLAN cannot be configured as a voice VLAN.
You cannot enable the voice VLAN function for a port if it has been enabled with the
link aggregation control protocol (LACP).
Remarks
Create VLAN 2 and configure it as a voice VLAN with an aging time of 100
minutes.
The device allows voice packets from GigabitEthernet 1/0/1 with an OUI address
of 0011-2200-0000 and a mask of ffff-ff00-0000 to be forwarded through the voice
VLAN.
2-7
VLAN 2
WAN
GigabitEthernet
1/0/1
Tel.1 010-1001
OUI:0011-2200-0000
Mask:ffff-ff00-0000
Figure 2-1 Network diagram for configuration of voice VLAN in automatic mode
voice
vlan
mac-address
0011-2200-0000
mask
ffff-ff00-0000
description test
# Set the default VLAN of the port to VLAN 6, and the port permits VLAN 6 to pass.
[Sysname-GigabitEthernet1/0/1] port trunk permit vlan 6
[Sysname-GigabitEthernet1/0/1] port trunk pvid vlan 6
2-8
The voice stream transmitted by the IP phone is untagged, and the port which the
IP phone is attached to is a Hybrid port GigabitEthernet1/0/1.
GigbitEthernet1/0/1 works in manual mode, and only permits the voice packets
with the following features to pass: OUI address is 0011-2200-0000; network
mask is ffff-ff00-0000 and description string is test.
VLAN 2
WAN
GigabitEthernet
1/0/1
Tel.1 010-1001
OUI:0011-2200-0000
Mask:ffff-ff00-0000
Figure 2-2 Voice VLAN Configuration Example
voice
vlan
mac-address
0011-2200-0000
mask
description test
# Create VLAN 2, and enable the voice VLAN function for it.
[Sysname] vlan 2
[Sysname-vlan2] quit
[Sysname] voice vlan 2 enable
2-9
ffff-ff00-0000
Mask
Description
0001-e300-0000
ffff-ff00-0000
Siemens phone
0003-6b00-0000
ffff-ff00-0000
Cisco phone
0011-2200-0000
ffff-ff00-0000
test
00d0-1e00-0000
ffff-ff00-0000
Pingtel phone
00e0-7500-0000
ffff-ff00-0000
Polycom phone
00e0-bb00-0000
ffff-ff00-0000
3com phone
MODE
-------------------------------GigabitEthernet1/0/1
MANUAL
2-10
GARP messages
Generally, GARP participants exchange information with each other through the
following three types of messages: Join, Leave, and LeaveAll.
z
GARP timers
GARP sets interval for sending GARP messages by using these four timers:
z
Hold timer When a GARP application entity receives the first registration
request, it starts a hold timer and collects succeeding requests. When the timer
expires, the entity sends all these requests in one Join message. This can thus
help you save bandwidth.
Join timer A GARP application entity can send a Join message twice to ensure
the message can be transmitted to other entities. The sending interval is set on the
join timer.
Leave timer Starts upon receipt of a Leave message. When this timer expires,
the GARP application entity removes attribute information as requested.
3-1
Leaveall timer Starts when a GARP application entity starts. When this timer
expires, the entity sends a LeaveAll message so that other entities can re-register
its attribute information. Then, a leaveall timer starts again.
Note:
z
The settings of GARP timers apply to all GARP applications, such as GVRP, running
on a LAN.
Unlike other three timers which are set on a port basis, the leaveall timer is set in
system view and takes effect globally.
A GARP application entity may send LeaveAll messages at the interval set by its
LeaveAll timer or the leaveall timer of another GARP application entity on the
network, whichever is smaller.
3-2
Description
Value
Protocol ID
Message
Attribute Type
0x01
for
GVRP,
indicating the VLAN ID
attribute
Attribute List
Attribute
Attribute Length
2 to 255 in bytes
0: LeaveAll
1: JoinEmpty
Attribute Event
2: JoinIn
3: LeaveEmpty
4: LeaveIn
5: Empty
Attribute Value
Attribute value
End Mark
3-3
Note:
GVRP can be configured only on a trunk port.
system-view
gvrp
Enter Ethernet
port view
Enter Ethernet
port view or
port-group view
Enter
port-group view
interface
interface-type
interface-number
port-group { manual
port-group-name
|
aggregation agg-id }
gvrp
3-4
Remarks
Required
Disabled by default
Perform either of the
commands.
Depending on the
view you accessed,
the
subsequent
configuration takes
effect on a port or all
ports
in
a
port-group.
Required
Disabled by default
To do
Configure GVRP
mode on the port
gvrp
registration
{ fixed | forbidden |
normal }
Remarks
Optional
The
default
normal
is
Note:
BPDU TUNNEL is not compatible with GVRP. The two cannot be applied
simultaneously on a port. If you want to enable GVRP on a port, you need to disable
BPDU TUNNEL first.
Remarks
system-view
Optional
garp timer
timer-value
Enter Ethernet
port view
Enter Ethernet
port view or
port-group view
Enter
port-group view
leaveall
interface
interface-type
interface-number
port-group { manual
port-group-name
|
aggregation agg-id }
By
default,
the
LeaveAll timer is set
to
1,000
centiseconds.
Perform either of the
commands.
Depending on the
view you accessed,
the
subsequent
configuration takes
effect on a port or all
ports
in
a
port-group.
Optional
Set GARP Hold timer, Join timer
and Leave timer
When configuring GARP timers, note that their values are dependent on each other
and must be a multiplier of five centiseconds. If the value range for a timer is not desired,
you may change it by tuning the value of another timer as shown in the following table:
3-5
Lower limit
Upper limit
Not greater than half of the
join timer setting
Hold
Join
Leave
10 centiseconds
32,765 centiseconds
display
garp
timer
[ interface interface-list ]
Remarks
3-6
Switch A
Switch B
Configure Switch A
2)
Configure Switch B
3-7
3)
3.4.2 Example 2
I. Network requirements
Enable GVRP on devices and configure the port registration mode as fixed to realize
dynamic registration and update of some VLAN information between devices.
Switch A
Switch B
Configure Switch A
[Sysname-GigabitEthernet1/0/1] gvrp
2)
Configure Switch B
3)
3.4.3 Example 3
I. Network requirements
Enable GVRP on devices and configure the port registration mode as forbidden to
forbid dynamic registration and update of VLAN information between devices.
3-9
Switch A
Switch B
Configure Switch A
2)
Configure Switch B
3-10
[Sysname] vlan 3
[Sysname-vlan3]
3)
3-11