Вы находитесь на странице: 1из 25

VMAC Feature

Issue 1.105

Date 2014-09-0414

CONFIDENTIAL

HUAWEI TECHNOLOGIES CO., LTD.


Copyright © Huawei Technologies Co., Ltd. 2014. All rights reserved.
No part of this document may be reproduced or transmitted in any form or by any means without prior
written consent of Huawei Technologies Co., Ltd.

Trademarks and Permissions

and other Huawei trademarks are trademarks of Huawei Technologies Co., Ltd.
All other trademarks and trade names mentioned in this document are the property of their respective
holders.

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.

Huawei Technologies Co., Ltd.


Address: Huawei Industrial Base
Bantian, Longgang
Shenzhen 518129
People's Republic of China

Website: http://www.huawei.com

Email: support@huawei.com

Issue 1.105 (2014-09-0414) Huawei Proprietary and Confidential i


Copyright © Huawei Technologies Co.,
Ltd.
VMAC Feature About This Document

About This Document

Author
Prepared By Zhang Xianfeng Date 2012-02-01

Reviewed By Chen Zhongzhou Date 2012-02-03


Li Wei
Jiang Hong
Approved By Chen Zhongzhou Date 2012-02-06

Change History
Issue Details Date Author

1.00 First draft 2009-01-15 Zhang Xianfeng


1.01 First release. 2010-02-10 Zhang Xianfeng
1.02 Modified macpoolMode(1) is not supported in 2010-03-13 Liu Xiong
hwIpDslamVmacStatus.
1.03 Modified the description of MIB tables. 2010-08-03 Yang Bo
1.04 Added the following leaves: 2010-12-13 Yang Bo
hwIpDslamL2pVlanCtrlVmacIpoeSubStatus,
hwIpDslamL2pVlanCtrlVmacPppoeSubStatus, and
hwIpDslamL2pVlanCtrlVmacPppoaSubStatus.
1.05 Added the following leaves: 2012-06-02 Zhou Huahui
hwIpDslamVmacOltId, Yang Bo
hwIpDslamVmacOntVmacNum,
hwOltVmacUmacMappingTable, and
hwIpDslamVmacControlprotocolIpv6oeStatus.
1.06 Modified the default value of 2011-08-11 Pan Hong
hwIpDslamVmacDslamId to 0x7FFFF.

Issue 1.105 (2014-09-0414) Huawei Proprietary and Confidential ii


Copyright © Huawei Technologies Co.,
Ltd.
VMAC Feature About This Document

Issue Details Date Author

1.07 Added the hwIpDslamVmacSlotNumbering and 2012-03-12 Zhou Zhuojun


hwIpDslamVmacPortBegin leaves.
1.08 Modified the hwIpDslamVmacSlotNumbering and 2012-05-14 Zhou Huahui
hwIpDslamVmacPortBegin leaves.
1.09 Modified section names to make them consistent. 2014-08-14 Wang Weiguo (employee
ID: 00117534)
1.10  Changed the document name from "MA5600T 2014-09-04 Li Zhi (employee ID:
ifIndex MIB Encoding Rules" to "ifIndex MIB 00278677)
Encoding Rules".
 Deleted the default value of
hwIpDslamVmacReserveBits.
 Modified the default value of
hwIpDslamVmacPortBegin to the one same as in
the MIB file.
1.11  Accept all edited item in the SOI document to 2014-09-28 Li Zhi (employee ID:
make this version as the base version.After the 00278677)
acception, there should be no any edited mark.
1.12 Modified the document format. 2015-03-09 Song Zhenglong
1.13 Optimized the document format. 2015-04-07 Yang Yi
1.14 Optimized the document format. 2015-05-25 Zhang Jiangxia(employee
ID: 00215012)
1.15 Modified configurations of 2016-11-14 Kanghua (employee ID:
hwIpDslamVmacDslamId 00214194)

Issue 1.105 (2014-09-0414) Huawei Proprietary and Confidential iii


Copyright © Huawei Technologies Co.,
Ltd.
VMAC Feature Contents

Contents

About This Document....................................................................................................................ii


1 VMAC Feature...............................................................................................................................1
1.1 Abstract...........................................................................................................................................................................1
1.1.1 VMAC Definition........................................................................................................................................................1
1.1.2 VMAC Principle..........................................................................................................................................................2
1.2 Prerequisites...................................................................................................................................................................3
1.3 Relevant CLI Commands...............................................................................................................................................3
1.4 Relevant SNMP MIBs....................................................................................................................................................5
1.5 Relevant MIB Tables and Variables...............................................................................................................................5
1.6 Explanation.....................................................................................................................................................................7
1.7 Example Usage Case....................................................................................................................................................14

Issue 1.105 (2014-09-0414) Huawei Proprietary and Confidential iv


Copyright © Huawei Technologies Co.,
Ltd.
VMAC Feature 1 VMAC Feature

1 VMAC Feature

1.1 Abstract
To protect the system and the carrier's network, the 1:1 VMAC function can be enabled for
the PPPoE and DHCP access users. On the access device (DSLAM), replace the user MAC
(UMAC) address with a VMAC address in the MAC address pool. In this way, the unreliable
MAC addresses cannot access the carrier's network, and the UMAC address conflict can also
be prevented. In addition, a VMAC address can carry the port information about a user to
identify the user port.

1.1.1 VMAC Definition


VMAC refers to the virtual MAC address. The DSLAM replaces the source MAC address of
a user with a VMAC address. 1:1 VMAC indicates that each UMAC address can be replaced
with a unique VMAC address by the DSLAM. That is, in transmitting user packets, the
DSLAM replaces the source MAC address of the packets with a VMAC address. In the
upstream direction, the user source MAC address is replaced with the VMAC address and is
transmitted in a network. In the downstream direction, the VMAC address is replaced with the
user source MAC address. For details, see Figure 1.1.

Figure 1.1 VMAC networking

User MAC Address (MAC U) is never


used in the Aggregation Network

User 1st Mile Access Node Aggregation Network BBNG

SA = DA = Remainder SA = DA = Remainder
MAC U MAC B of Frame U X MAC X MAC B of Frame

MAC B
MAC U
SA = DA = Remainder U X SA = DA = Remainder
MAC B MAC U of Frame MAC B MAC X of Frame

VMAC Handler

SA: Source MAC Address DA: Destination MAC Address

A port-based VMAC address contains 48 bits, where, only the DSLAM ID and reserved bit
needs to be configured and other information including the slot ID and port ID are generated
automatically. For details about the format of a port-based VMAC address, see Figure 1.2.

Issue 1.105 (2014-09-0414) Huawei Proprietary and Confidential 1


Copyright © Huawei Technologies Co.,
Ltd.
VMAC Feature 1 VMAC Feature

Figure 1.2 Format of a port-based VMAC address

An ONT-based VMAC address contains 48 bits, where, only the OLT ID and reserved bit
needs to be configured. Other information including the slot ID, port ID, and ONT ID are
generated automatically. For details about the format of an ONT-based VMAC address, see
Figure 1.3.

Figure 1.3 Format of an ONT-based VMAC address

1.1.2 VMAC Principle


On the current IP access network with the L2 Ethernet forwarding as its core, an unreliable
MAC address of the user terminal may cause MAC spoofing because the DSLAM forwards
packets based on L2. This affects user services.
To solve the above-mentioned problem, the DSLAM uses the VMAC function and
implements the port identification function at the same time. The following takes the
MA5600T as an example to describe the VMAC principle.
2. VMAC address switching process
On the MA5600T, the VMAC function is implemented as follows:
In the case of the upstream Ethernet frames, the MA5600T replaces MAC U with the
generated MAC X.
In the case of the downstream Ethernet frames, the MA5600T restores MAC X to
UMAC U.
Remarks:
MAC U: Indicates the source MAC address in the user packets.
MAC X: Indicates the VMAC address allocated by the MA5600T.
MAC B: Indicates the destination MAC address in the user packets.
Figure 2.1 shows the VMAC address switching process.

Issue 1.105 (2014-09-0414) Huawei Proprietary and Confidential 2


Copyright © Huawei Technologies Co.,
Ltd.
VMAC Feature 1 VMAC Feature

Figure 2.1 VMAC address switching process

− Establish the mapping relationship between MAC U and MAC X. The MA5600T
detects the source MAC address in the upstream packets, selects a MAC X from the
32 VMAC addresses allocated for the port to replace the source MAC in the upstream
packets, and creates the mapping relationship between MAC U and MAC X.
− Learn the user source MAC address from the MA5600T.
− Age MAC X periodically. In aging, the mapping relationship between MAC U and
MAC X is deleted.
− Learn source MAC X of the upstream packets from the MA5600T.
− Forward the packets based on VLAN+DMAC of the downstream packets by the
MA5600T, where DMAC is MAC X. If DMAC is a broadcast MAC address, packets
are broadcast in the VLAN.
− Forward the packets based on VLAN+DMAC of the packets by the MA5600T, where
DMAC is MAC X. When packets are forwarded to the user port, replace MAC X
with MAC U.
3. Rules for VMAC address allocation
The rules for VMAC addresses allocation are as follows:
− In the format of a VMAC address, the information with the fixed values allocated
indicates the fixed information in the VMAC address.
− The DSLAM ID and OLT ID needs to be configured through the CLI or MIB
interface.
− The MA5600T automatically allocates the slot ID and port ID based on the actual
slot/port ID of a physical port.
− Reserve indicates the reserved information. By default, it is 0.

1.2 Prerequisites
4. The DSLAM must be in the multi-MAC mode.
5. The SVLAN for accessing a user cannot be a QinQ VLAN.
6. The VLAN which has cascaded GEM ports does not support VMAC features.

1.3 Relevant CLI Commands


7. Setting the global status of the VMAC function
vmac { enable | disable }
8. Setting the DSLAM ID

Issue 1.105 (2014-09-0414) Huawei Proprietary and Confidential 3


Copyright © Huawei Technologies Co.,
Ltd.
VMAC Feature 1 VMAC Feature

vmac dslam-id dslam-id


9. Setting the number of VMAC addresses for each port
vmac port-vmac-count port-vmac-count
10. Setting the reserved bits in a VMAC address
vmac reserved-bits reserved-bits
11. Querying the current configuration of a VMAC address
display vmac config
12. Querying the mapping relationship between the VMAC address and the UMAC address
display vmac-umac-mapping frameid/slotid/portid [ont-id]
13. Querying the VMAC status of the VLAN
display vmac vlan { all | vlanid } config
14. Setting the VMAC status of the VLAN
vmac vlan vlanid [ to vlanid1 ] { enable | disable } [ ipoe | pppoe | pppoa]
15. Querying the status of the IPoE VMAC of a VLAN
display vmac vlan { all | vlanid } config
16. Setting the status of the IPoE VMAC of a VLAN
vmac vlan vlanid [ to vlanid1 ] { enable | disable } ipoe
17. Querying the PPPoE VMAC status of a VLAN
display vmac vlan { all | vlanid } config
18. Setting the status of the PPPoE VMAC of a VLAN
vmac vlan vlanid [ to vlanid1 ] { enable | disable } pppoe
19. Querying the status of the PPPoA VMAC of a VLAN
display vmac vlan { all | vlanid } config
20. Setting the status of the PPPoA VMAC of a VLAN
vmac vlan vlanid [ to vlanid1 ] { enable | disable } pppoa
21. Setting the OLT ID
vmac olt-id olt-id
22. Setting the number of VMAC addresses for each ONT
vmac ont-vmac-count ont-vmac-count
23. Setting the VMAC IPv6oE control protocol
vmac control-protocol ipv6oe { enable | disable }
24. Configuring the slot ID of a board with VMAC addresses
vmac slot-numbering { logical | physical }
undo vmac slot-numbering
25. Setting the start port ID of the VMAC
vmac port begin { 0 | 1 }
undo vmac port begin

Issue 1.105 (2014-09-0414) Huawei Proprietary and Confidential 4


Copyright © Huawei Technologies Co.,
Ltd.
VMAC Feature 1 VMAC Feature

1.4 Relevant SNMP MIBs


HUAWEI-IPDSLAM-VMAC-MIB
HUAWEI-IPDSLAM-L2PPORTCONFIG-MIB

1.5 Relevant MIB Tables and Variables


The VMAC feature involves the following tables: hwIpDslamVmacUmacMappingTable,
hwIpDslamL2pVlanCtrlTable, and hwOltVmacUmacMappingTable.
The VMAC feature involves the following scalar leaves:
 hwIpDslamVmacStatus
 hwIpDslamVmacPortVmacNum
 hwIpDslamVmacDslamId
 hwIpDslamVmacReserveBits
 hwIpDslamVmacOltId
 hwIpDslamVmacOntVmacNum
 hwIpDslamVmacSlotNumbering
 hwIpDslamVmacPortBegin
For details about the meanings of the MIB leaves and corresponding indexes, see the
description of the MIB leaves.

Table or Scalar Description Implementation


Leaf Specifications

hwIpDslamVma Indicates the mapping relationship between the Mandatory


cUmacMapping VMAC address and the UMAC address, which is
Table used to query the mapping relationship between
the VMAC address and the UMAC address. The
index of this table is
hwIpDslamVmacUmacMappingIfIndex.
hwIpDslamVma Identifies the global status of the VMAC Mandatory
cStatus function.
Options:
1. macpoolMode(1)
2. disabled(2)
3. dslamIdMode(3)
Default: disabled(2)
It is used to query and set the VMAC status.
hwIpDslamVma Identifies the number of VMAC addresses for Mandatory
cPortVmacNum each port, which is used for setting or querying
the number of VMAC addresses of a port.
Range: 132
Default: 32

Issue 1.105 (2014-09-0414) Huawei Proprietary and Confidential 5


Copyright © Huawei Technologies Co.,
Ltd.
VMAC Feature 1 VMAC Feature

Table or Scalar Description Implementation


Leaf Specifications

hwIpDslamVma Identifies the DSLAM ID, which is used for Mandatory


cDslamId setting or querying the DSLAM ID.
Range: 0x00xFFFFFFFF
Default: 0x7FFFF
When the VMAC function is enabled based on
DSLAM ID, the DSLAM ID and the reserved
bits must be configured, and the DSLAM ID
must be less than or equal to 0x7FFFF.
hwIpDslamVma Identifies the reserved bits in a VMAC address, Mandatory
cReserveBits which occupies 6 bits.
hwIpDslamL2pV Used for setting and querying the status of L2 Mandatory
lanCtrlTable protocol features based on VLAN. The index of
this table is hwIpDslamL2pVlanCtrlIndex.
hwIpDslamVma Identifies the OLT ID, which is used for setting Mandatory
cOltId or querying the OLT ID.
Range: 0x00xFFFF
Default: 0xFFFF
When the VMAC function is enabled based on
OLT ID, the OLT ID and the reserved bits must
be configured.
hwIpDslamVma Identifies the number of VMAC addresses for Mandatory
cOntVmacNum each ONT, which is used for setting or querying
the number of VMAC addresses of an ONT.
Range: 18
Default: 8
hwOltVmacUma Indicates the mapping relationship between the Mandatory
cMappingTable VMAC address and the UMAC address, which is
used to query the mapping relationship between
the VMAC address and the UMAC address. The
indexes of this table are
hwOltVmacUmacMappingIfIndex and
hwOltVmacUmacMappingOntID.
hwIpDslamVma It is used to query and set the VMAC control Mandatory
cControlprotocol protocol of IPv6oE status.
Ipv6oeStatus Options:
1. disable(1)
2. enable(2)
Default: disable(1)

Issue 1.105 (2014-09-0414) Huawei Proprietary and Confidential 6


Copyright © Huawei Technologies Co.,
Ltd.
VMAC Feature 1 VMAC Feature

Table or Scalar Description Implementation


Leaf Specifications

hwIpDslamVma It is used to query and set the VMAC slot number Mandatory
cSlotNumbering format.
Options:
1. logical(1)
2. physical(2)
3. default(3)
Default: default(3)
hwIpDslamVma It is used to query and set the starting portid of Mandatory
cPortBegin VMAC.
Range: 01, 4294967295
Default: 4294967295

1.6 Explanation
The VMAC feature involves the following operations: setting/querying the global status of
the VMAC function, setting OLTID, setting/querying the number of VMAC addresses for
each port/ONT, querying the mapping relationship between the VMAC address and the
UMAC address, setting/querying the DSLAM ID, setting/querying the reserved bits in a
VMAC address, and setting/querying the VMAC status of a VLAN.
The following sections describe each scenario of the VMAC feature step by step. In the get or
set operation, if 0 is returned, the operation is successful; if any other value is returned, the
operation fails. For details about the meaning of the returned values, see relevant documents
of error codes.
26. Setting the global status of the VMAC function
To set or query the VMAC status, use hwIpDslamVmacStatus. The index must be 0.
When a user enables the VMAC feature based on DSLAM ID, the DSLAM ID must be
configured to ensure creation of a VMAC address. For example, to enable the VMAC
feature based on DSLAM ID, perform the set operation on hwIpDslamVmacStatus to set
that the global status of the VMAC function is enabled based on DSLAM ID. For details,
see the following configurations.
Leaf Value Mandatory or Not Default Value

hwIpDslamVmacStatus dslamIdMode(3) Yes disabled(2)

27. Setting the DSLAM ID


In the case that the VMAC feature is disabled, when enabling the VMAC feature based
on DSLAM ID, set the DSLAM ID first. To set the DSLAM ID, perform the set
operation on hwIpDslamVmacDslamId. The index must be 0. For example, configure the
DSLAM ID to 5600, see the following configurations.

Issue 1.105 (2014-09-0414) Huawei Proprietary and Confidential 7


Copyright © Huawei Technologies Co.,
Ltd.
VMAC Feature 1 VMAC Feature

Leaf Value Mandatory or Not Default Value

hwIpDslamVmacDslamId 5600 Yes 0x7FFFF

28. Configuring the number of VMAC addresses for each port


In the case that the VMAC feature is disabled, the number of VMAC addresses can be
configured by performing the set operation on hwIpDslamVmacPortVmacNum. The
index must be 0. For example, configure the number of VMAC addresses to 10, see the
following configurations.
Leaf Value Mandatory or Not Default Value

hwIpDslamVmacPortVmacNum 10 Yes 32

29. Configuring the reserved bits in a VMAC address


In the case that the VMAC feature is disabled, the reserved bits in a VMAC address can
be configured by performing the set operation on hwIpDslamVmacReserveBits. The
index must be 0. For example, configure the reserved bits in a VMAC address to 2, see
the following configurations.
Leaf Value Mandatory or Not Default Value

hwIpDslamVmacReserveBits 2 Yes

30. Querying the current configuration of a VMAC address


(1) Perform the get operation on hwIpDslamVmacStatus. The index must be 0. The
global status of the VMAC function is disabled, as follows.
Leaf Value Mandatory or Not Default Value

hwIpDslamVmacStatus disabled(2)

(2) Perform the get operation on hwIpDslamVmacDslamId. The index must be 0. The
current DSLAM ID is the default 0x7FFFF, as follows.
Leaf Value Mandatory or Not Default Value

hwIpDslamVmacDslamId 0x7FFFF

(3) Perform the get operation on hwIpDslamVmacPortVmacNum. The index must be 0.


The number of VMAC addresses for each port is 32, as follows.
Leaf Value Mandatory or Not Default Value

hwIpDslamVmacPortVmacNum 32

Issue 1.105 (2014-09-0414) Huawei Proprietary and Confidential 8


Copyright © Huawei Technologies Co.,
Ltd.
VMAC Feature 1 VMAC Feature

(4) Perform the get operation on hwIpDslamVmacReserveBits. The index must be 0. The
reserved bit in a VMAC address is 0, as follows.
Leaf Value Mandatory or Not Default Value

hwIpDslamVmacReserveBits 0

(5) Perform the get operation on hwIpDslamVmacOltId. The index must be 0. The
default value of the OLT ID is 0xFFFF. For details, see the following table.
Leaf Value Mandatory or Not Default Value

hwIpDslamVmacOltId 65535

(6) Perform the get operation on hwIpDslamVmacOntVmacNum. The index must be 0.


The number of VMAC addresses is 8 by default. For details, see the following
table.
Leaf Value Mandatory or Not Default Value

hwIpDslamVmacOntVmacNum 8

(7) Perform the get operation on hwIpDslamVmacSlotNumbering. The index must be 0.


The slot ID of the VMAC is default(3) by default. Perform the get operation when
the slot ID is set to physical. For details, see the following table.
Leaf Value Mandatory or Not Default Value

hwIpDslamVmacSlotNumbering physical(2)

(8) Perform the get operation on hwIpDslamVmacPortBegin. The index must be 0. The
start port ID of the VMAC is 4294967295 by default. Perform the get operation
when the start port ID is set to 0. For details, see the following table.
Leaf Value Mandatory or Not Default Value

hwIpDslamVmacPortBegin 0

31. Querying the mapping relationship between the VMAC address and the UMAC address
(1) Querying the mapping relationship between the VMAC address and the UMAC
address of a port
Perform the get or walk operation on hwIpDslamVmacUmacMappingTable to query the
mapping relationship between the VMAC address and the UMAC address of a port.
The index of hwIpDslamVmacUmacMappingTable is
hwIpDslamVmacUmacMappingIfIndex, which is used for specifying the VMAC address
and the UMAC address of a port. It is determined by the shelf ID, slot ID, and port ID.
The method of calculating the value of hwIpDslamVmacUmacMappingIfIndex is the

Issue 1.105 (2014-09-0414) Huawei Proprietary and Confidential 9


Copyright © Huawei Technologies Co.,
Ltd.
VMAC Feature 1 VMAC Feature

same as that of ifIndex. For details about how to calculate the value of ifIndex, see the
ifIndex MIB Encoding Rules.
When querying the mapping relationship between the VMAC address and the UMAC
address of all ports on all DSLAMs, perform the walk operation on
hwIpDslamVmacUmacMappingTable.
When querying the mapping relationship between the VMAC address and the UMAC
address of a port, specify the index of the port determined by the shelf ID/slot ID/port ID
and perform the get operation on hwIpDslamVmacUmacMappingTable. For example,
query the mapping relationship between the VMAC address and the UMAC address of
port 0/12/5 (the port index is 201425216). The results in blue are listed in the following
table.
Leaf Value Mandatory or Not Default Value

hwIpDslamVmacUmacMapping 201425216
IfIndex
hwIpDslamVmacUmacMapping 02-02-D5-
VmacAddress 06-01-40
hwIpDslamVmacUmacMapping 00-E0-FC-
UmacAddress 90-3C-BB

(2) Querying the mapping relationship between the VMAC address and the UMAC
address of an ONT
Perform the get or walk operation on hwOltVmacUmacMappingTable to query the
mapping relationship between the VMAC address and the UMAC address of an ONT.
The indexes of the hwOltVmacUmacMappingTable are
hwOltVmacUmacMappingIfIndex and hwOltVmacUmacMappingOntID, which are used
for specifying the VMAC address and UMAC address of an ONT. It is determined by the
shelf ID, slot ID, and port ID. The method of calculating the value of
hwIpDslamVmacUmacMappingIfIndex is the same as that of ifIndex. For details about
how to calculate the value of ifIndex, see the ifIndex MIB Encoding Rules.
When querying the mapping relationship between the VMAC address and the UMAC
address of all ONTs, perform the walk operation on hwOltVmacUmacMappingTable.
When querying the mapping relationship between the VMAC address and the UMAC
address of an ONT, specify the port index determined by the shelf ID, slot ID, and port
ID and ONT number. Perform the get operation on hwOltVmacUmacMappingTable. For
example, query the mapping relationship between the VMAC address and the UMAC
address of ONT 3 connected to the port 0/1/0 (index: 4194312192).
Leaf Value Mandatory or Not Default Value

hwIpDslamVmacUmacMapping 4194312192 Yes


IfIndex
hwOltVmacUmacMappingOntI 3 Yes
D
hwIpDslamVmacUmacMapping 02-FF-FF- Not
VmacAddress 08-20-20

Issue 1.105 (2014-09-0414) Huawei Proprietary and Confidential 10


Copyright © Huawei Technologies Co.,
Ltd.
VMAC Feature 1 VMAC Feature

Leaf Value Mandatory or Not Default Value

hwIpDslamVmacUmacMapping 00-E0-FC- Not


UmacAddress 88-69-60

32. Querying the VMAC status of the VLAN


Perform the get operation on hwIpDslamL2pVlanCtrlVmacStatus in
hwIpDslamL2pVlanCtrlTable to query the VMAC status of the VLAN. The index of
hwIpDslamL2pVlanCtrlTable is hwIpDslamL2pVlanCtrlIndex, which indicates the
VLAN ID. Here, the VLAN is a created VLAN ID.
For example, query the VMAC status of VLAN 100. The result is disable as listed in the
following table.
Leaf Value Mandatory or Not Default Value

hwIpDslamL2pVlanCtrlVmacSt disable(1)
atus

33. Setting the VMAC status of the VLAN


Perform the set operation on hwIpDslamL2pVlanCtrlVmacStatus in
hwIpDslamL2pVlanCtrlTable to set the VMAC status of the VLAN. The index of
hwIpDslamL2pVlanCtrlTable is hwIpDslamL2pVlanCtrlIndex, which indicates the
VLAN ID. Here, the VLAN is a created VLAN ID.
For example, set the VMAC status of VLAN 100 to enable as listed in the following
table.
Leaf Value Mandatory or Not Default Value

hwIpDslamL2pVlanCtrlVmacSt enable(2) Yes disable(1)


atus

34. Querying the IPoE VMAC status of the VLAN


Perform the get operation on hwIpDslamL2pVlanCtrlVmacIpoeSubStatus of
hwIpDslamL2pVlanCtrlTable to query the IPoE VMAC status of the VLAN. The index
of hwIpDslamL2pVlanCtrlTable is hwIpDslamL2pVlanCtrlIndex, which indicates the
VLAN ID. Here, the VLAN is a created VLAN.
For example, set the IPoE VMAC status of VLAN 100 to enable as listed in the
following table.
Leaf Value Mandatory or Not Default Value

hwIpDslamL2pVlanCtrlVmacIp enable(2)
oeSubStatus

35. Setting the IPoE VMAC status of the VLAN


Perform the set operation on hwIpDslamL2pVlanCtrlVmacIpoeSubStatus of
hwIpDslamL2pVlanCtrlTable to set the IPoE VMAC status of the VLAN. The index of

Issue 1.105 (2014-09-0414) Huawei Proprietary and Confidential 11


Copyright © Huawei Technologies Co.,
Ltd.
VMAC Feature 1 VMAC Feature

hwIpDslamL2pVlanCtrlTable is hwIpDslamL2pVlanCtrlIndex, which indicates the


VLAN ID. Here, the VLAN is a created VLAN.
For example, set the IPoE VMAC status of VLAN 100 to enable as listed in the
following table.
Leaf Value Mandatory or Not Default Value

hwIpDslamL2pVlanCtrlVmacIp enable(2) Yes disable(1)


oeSubStatus

36. Querying the PPPoE VMAC status of the VLAN


Perform the get operation on hwIpDslamL2pVlanCtrlVmacPppoeSubStatus of
hwIpDslamL2pVlanCtrlTable to query the PPPoE VMAC status of the VLAN. The
index of hwIpDslamL2pVlanCtrlTable is hwIpDslamL2pVlanCtrlIndex, which indicates
the VLAN ID. Here, the VLAN is a created VLAN.
For example, set the PPPoE VMAC status of VLAN 100 to enable as listed in the
following table.
Leaf Value Mandatory or Not Default Value

hwIpDslamL2pVlanCtrlVmacP enable(2)
ppoeSubStatus

37. Setting the PPPoE VMAC status of the VLAN


Perform the set operation on hwIpDslamL2pVlanCtrlVmacPppoeSubStatus of
hwIpDslamL2pVlanCtrlTable to set the PPPoE VMAC status of the VLAN. The index
of hwIpDslamL2pVlanCtrlTable is hwIpDslamL2pVlanCtrlIndex, which indicates the
VLAN ID. Here, the VLAN is a created VLAN.
For example, set the PPPoE VMAC status of VLAN 100 to enable as listed in the
following table.
Leaf Value Mandatory or Not Default Value

hwIpDslamL2pVlanCtrlVmacP enable(2) Yes disable(1)


ppoeSubStatus

38. Querying the PPPoA VMAC status of the VLAN


Perform the get operation on hwIpDslamL2pVlanCtrlVmacPppoaSubStatus of
hwIpDslamL2pVlanCtrlTable to query the PPPoA VMAC status of the VLAN. The
index of hwIpDslamL2pVlanCtrlTable is hwIpDslamL2pVlanCtrlIndex, which indicates
the VLAN ID. Here, the VLAN is a created VLAN.
For example, set the PPPoA VMAC status of VLAN 100 to enable as listed in the
following table.
Leaf Value Mandatory or Not Default Value

hwIpDslamL2pVlanCtrlVmacP enable(2)
ppoaSubStatus

Issue 1.105 (2014-09-0414) Huawei Proprietary and Confidential 12


Copyright © Huawei Technologies Co.,
Ltd.
VMAC Feature 1 VMAC Feature

39. Setting the PPPoA VMAC status of the VLAN


Perform the set operation on hwIpDslamL2pVlanCtrlVmacPppoaSubStatus of
hwIpDslamL2pVlanCtrlTable to set the PPPoA VMAC status of the VLAN. The index
of hwIpDslamL2pVlanCtrlTable is hwIpDslamL2pVlanCtrlIndex, which indicates the
VLAN ID. Here, the VLAN is a created VLAN.
For example, set the PPPoA VMAC status of VLAN 100 to enable as listed in the
following table.
Leaf Value Mandatory or Not Default Value

hwIpDslamL2pVlanCtrlVmacP enable(2) Yes disable(1)


ppoaSubStatus

40. Setting the OLT ID


To enable the VMAC features, set the OLT ID first. Specifically, perform the set
operation on the hwIpDslamVmacOltI in the MIB file and set the index to 0. For
example, set the OLT ID to 5600 as listed in the following table.
Leaf Value Mandatory or Not Default Value

hwIpDslamVmacOltId 5600 Yes 0xFFFF

41. Setting the number of VMAC addresses for each ONT


When the VMAC features are disabled, perform the set operation on the
hwIpDslamVmacOntVmacNum to change the number of VMAC addresses for each
ONT and set the index to 0. For example, change the number of VMAC addresses of an
ONT to 7. For details, see the following table.
Leaf Value Mandatory or Not Default Value

hwIpDslamVmacOntVmacNum 7 Yes 8

42. Setting the VMAC IPv6oE control protocol


Perform an operation on the hwIpDslamVmacControlprotocolIpv6oeStatus of the MIB
file to query and set VMAC IPv6oE control protocol and set the index to 0. For details,
see the following table.
Leaf Value Mandatory or Not Default Value

hwIpDslamVmacControlprotoc enable(1) Yes disable (2)


olIpv6oeStatus

43. Setting the slot ID format of the VMAC


To configure or query the slot ID of a board with VMAC addresses, operate
hwIpDslamVmacSlotNumbering in MIB files. The index must be 0. The following table
lists the related parameters.

Issue 1.105 (2014-09-0414) Huawei Proprietary and Confidential 13


Copyright © Huawei Technologies Co.,
Ltd.
VMAC Feature 1 VMAC Feature

Leaf Value Mandatory or Not Default Value

hwIpDslamVmacSlotNumbering physical(2) Yes default (3)

44. Setting the start port ID of the VMAC


To configure or query the beginning number of slot IDs of boards with VMAC
addresses, operate hwIpDslamVmacPortBegin in MIB files. The index must be 0. The
following table lists the related parameters.
Leaf Value Mandatory or Not Default Value

hwIpDslamVmacPortBegin 0 Yes 4294967295

1.7 Example Usage Case


45. Setting the global status of the VMAC function
Perform the set operation on hwIpDslamVmacStatus to modify that the global status of
the VMAC function is enabled based on DSLAM ID. For details, see the following
figure.

46. Setting the DSLAM ID


Perform the set operation on hwIpDslamVmacDslamId to modify the DSLAM ID to
5600. For details, see the following figure.

47. Configuring the number of VMAC addresses for each port


Perform the set operation on hwIpDslamVmacPortVmacNum to modify the number of
VMAC addresses for each current port to 10. For details, see the following figure.

Issue 1.105 (2014-09-0414) Huawei Proprietary and Confidential 14


Copyright © Huawei Technologies Co.,
Ltd.
VMAC Feature 1 VMAC Feature

48. Configuring the reserved bits in a VMAC address


Perform the set operation on hwIpDslamVmacReserveBits to set the reserved bits in a
VMAC address to 2. For details, see the following figure.

49. Querying the current configuration of a VMAC address


(1) Perform the get operation on hwIpDslamVmacStatus to query the global status of the
VMAC function. The result is disabled, as shown in the following figure.

(2) Perform the get operation on hwIpDslamVmacDslamId and obtain the current
DSLAM ID. The result is the default 0x7FFFF, as shown in the following figure.

(3) Perform the get operation on hwIpDslamVmacPortVmacNum to query the number of


VMAC addresses for each port. The result is 32, as shown in the following figure.

(4) Perform the get operation on hwIpDslamVmacReserveBits to query the reserved bit
in a VMAC address. The result is 0, as shown in the following figure.

Issue 1.105 (2014-09-0414) Huawei Proprietary and Confidential 15


Copyright © Huawei Technologies Co.,
Ltd.
VMAC Feature 1 VMAC Feature

(5) Perform the get operation on hwIpDslamVmacOltId to query the OLT ID. The result
is 0xFFFF, as shown in the following figure.

(6) Perform the get operation on hwIpDslamVmacOntVmacNum to query the number of


VMAC addresses for each ONT. The result is 8, as shown in the following figure.

(7) Perform the get operation on the scalar node hwIpDslamVmacSlotNumbering. The
index must be set to 0. The slot ID of the VMAC is default(3) by default. Perform
the get operation when the slot ID is set to physical. For details, see the following
figure.

(8) Perform the get operation on the scalar node hwIpDslamVmacPortBegin. The index
must be set to 0. The start port ID of the VMAC is 4294967295 by default. Perform
the get operation when the start port ID is set to 0. For details, see the following
figure.

Issue 1.105 (2014-09-0414) Huawei Proprietary and Confidential 16


Copyright © Huawei Technologies Co.,
Ltd.
VMAC Feature 1 VMAC Feature

50. Querying the mapping relationship between the VMAC address and the UMAC address
(1) Querying the mapping relationship between the VMAC address and the UMAC
address of a port
Perform the get operation on hwIpDslamVmacUmacMappingTable to query the
mapping relationship between the VMAC address and the UMAC address of a port. For
example, query the mapping relationship between the VMAC address and the UMAC
address of port 0/12/5 (the port index is 201425216), as shown in the following figure.

(2) Querying the mapping relationship between the VMAC address and the UMAC
address of an ONT
Perform the get operation on hwOltVmacUmacMappingTable. For example, query the
mapping relationship between the VMAC address and the UMAC address of ONT 3
connected to the port 0/1/0 (index: 4194312192). For details, see the following figure.

51. Setting the VMAC status of the VLAN


Perform the get operation on hwIpDslamL2pVlanCtrlVmacStatus to query the VMAC
status. For example, query the VMAC status of VLAN 100, as follows.

52. Setting the VMAC status of the VLAN


Perform the set operation on hwIpDslamL2pVlanCtrlVmacStatus of
hwIpDslamL2pVlanCtrlTable to set the VMAC status of VLAN 100 to enable, as shown
in the following figure.

Issue 1.105 (2014-09-0414) Huawei Proprietary and Confidential 17


Copyright © Huawei Technologies Co.,
Ltd.
VMAC Feature 1 VMAC Feature

53. Querying the IPoE VMAC status of the VLAN


Perform the get operation on hwIpDslamL2pVlanCtrlVmacIpoeSubStatus to query the
IPoE VMAC status of VLAN 100, as shown in the following figure.

54. Setting the IPoE VMAC status of the VLAN


Perform the set operation on hwIpDslamL2pVlanCtrlVmacIpoeSubStatus of the
hwIpDslamL2pVlanCtrlTable to set the IPoE VMAC status of VLAN 100 to enable, as
shown in the following figure.

55. Querying the PPPoE VMAC status of the VLAN


Perform the get operation on hwIpDslamL2pVlanCtrlVmacIpoeSubStatus to query the
PPPoE VMAC status of VLAN 100, as shown in the following figure.

56. Setting the PPPoE VMAC status of the VLAN


Perform the set operation on hwIpDslamL2pVlanCtrlVmacPppoeSubStatus of the
hwIpDslamL2pVlanCtrlTable to set the PPPoE VMAC status of VLAN 100 to enable, as
shown in the following figure.

Issue 1.105 (2014-09-0414) Huawei Proprietary and Confidential 18


Copyright © Huawei Technologies Co.,
Ltd.
VMAC Feature 1 VMAC Feature

57. Querying the PPPoA VMAC status of the VLAN


Perform the get operation on hwIpDslamL2pVlanCtrlVmacPppoaSubStatus to query the
PPPoA VMAC status of VLAN 100, as shown in the following figure.

58. Setting the PPPoA VMAC status of the VLAN


Perform the set operation on hwIpDslamL2pVlanCtrlVmacPppoaSubStatus of the
hwIpDslamL2pVlanCtrlTable to set the PPPoA VMAC status of VLAN 100 to enable, as
shown in the following figure.

59. Setting an OLT ID


Perform the set operation on hwIpDslamVmacOltId to change the OLT ID to 5600, as
shown in the following figure.

60. Setting the number of VMAC addresses for each ONT


Perform the set operation on hwIpDslamVmacOntVmacNum to change the number of
VMAC addresses for each ONT to 7, as shown in the following figure.

Issue 1.105 (2014-09-0414) Huawei Proprietary and Confidential 19


Copyright © Huawei Technologies Co.,
Ltd.
VMAC Feature 1 VMAC Feature

61. Setting the VMAC IPv6oE control protocol


Perform the set operation on hwIpDslamVmacControlprotocolIpv6oeStatus to set the
VMAC IPv6oE global status to disable, as shown in the following figure.

62. Configuring the slot ID of a board with VMAC addresses


To modify the slot ID of a board with VMAC addresses to that of the physical board,
perform the set operation on hwIpDslamVmacSlotNumbering as shown in the following
figure.

63. Setting the start port ID of the VMAC


To modify the beginning number of slot IDs of boards with VMAC addresses to 0,
perform the set operation on hwIpDslamVmacPortBegin as shown in the following
figure.

Issue 1.105 (2014-09-0414) Huawei Proprietary and Confidential 20


Copyright © Huawei Technologies Co.,
Ltd.

Вам также может понравиться