Tuesday, January 17, 2017

The MAC Address Table Configuration of mac-address max-mac-count(distributing-mode)

Function

This command is used to configure the maximum number of learnable dynamic MAC addresses of a service channel. To limit the number of the access users of a service port, run this command. After the maximum number of learnable dynamic MAC addresses is configured successfully, when the number of MAC addresses learned reaches the maximum value, the port no longer learns new MAC addresses.

Format

mac-address max-mac-count all count
mac-address max-mac-count board frameid/slotid count
mac-address max-mac-count atm frameid/slotid/portid vpi vpi vci vci [ single-service ] count
mac-address max-mac-count vdsl frameid/slotid/portid { stream | user-encap user-encap | user-vlan { untagged | user-vlanid } | user-8021p user-8021p [ user-vlan user-vlanid ] | autosense } count
mac-address max-mac-count { adsl | shdsl } frameid/slotid/portid { vpi vpi vci vci [ single-service | user-encap user-encap | user-vlan { untagged | user-vlanid } | user-8021p user-8021p [ user-vlan user-vlanid ] ] | autosense } count
mac-address max-mac-count eth frameid/slotid/portid { stream | user-encap user-encap | user-vlan { untagged | user-vlanid } | user-8021p user-8021p [ user-vlan user-vlanid ] } count
mac-address max-mac-count vdsl frameid/slotid/portid vpi vpi vci vci { [ single-service | user-encap user-encap | user-vlan { untagged | user-vlanid } | user-8021p user-8021p [ user-vlan user-vlanid ] ] } count
mac-address max-mac-count service-port index count
mac-address max-mac-count gpon frameid/slotid/portid gemport gemportid [ user-vlan { untagged | user-vlanid } | user-8021p user-8021p [ user-vlan user-vlanid ] ] count
mac-address max-mac-count shdsl frameid/slotid/portid {user-vlan {untagged | user-vlanid} | user-8021p user-8021p [user-vlan user-vlanid ] | user-encap user-encap } count

Parameters

Parameter Description Value
all Configures the maximum number of learnable dynamic MAC addresses of all service ports. -
adsl Configures the maximum number of learnable dynamic MAC addresses of an ADSL service port. To access the network in the ADSL mode, use this parameter. -
shdsl Configures the maximum number of learnable dynamic MAC addresses of an SHDSL service port. To access the network in the SHDSL mode, use this parameter. -
atm Configures the maximum number of learnable dynamic MAC addresses of an ATM service port. To access the network in the ATM mode, use this parameter. -
eth Configures the maximum number of learnable dynamic MAC addresses of an ETH service port. To access the network in the ETH mode, use this parameter. -
vdsl Configures the maximum number of learnable dynamic MAC addresses of a VDSL2 service port. To access the network in the VDSL2 mode, use this parameter. -
gpon Configures the maximum number of learnable dynamic MAC addresses of a GPON service port. To access the network in GPON mode, use this parameter. -
board frameid/slotid Indicates the subrack ID and slot ID. Enter a slash (/) between the subrack and slot IDs. Please see Differences Between Shelves.
frameid/slotid/portid Indicates the subrack ID, slot ID, and port ID. Enter a slash (/) between the subrack, slot, and port IDs. To specify a physical port, use this parameter. Please see Differences Between Shelves.
gemport gemportid Indicates the GEM port ID. GEM ports of each PON port are numbered in a centralized way. 0-127 GEM ports are reserved for the private use of OMCI and 4000-4095 GEM ports serve as channels for special use. Numeral type. Range: 128-3999.
service-port index Indicates the service port index. It uniquely identifies a service port.
Numeral type,Range:
  • SCUK/SCUL/SCUN:0-32767.
  • SCUB/SCUF:0-16383.
  • SCUH/SCUV:0-131071.
  • MCUD/MCUD1/MCUE:0-20479.
vpi vpi Indicates VPI value of the service port in the ATM access mode. It identifies a virtual connection when used with the VCI value.
Numeral type. Range:
  • xDSL board. Range: 0-255.
  • Other boards. Range: 0-4095.
vci vci Indicates the VCI of the service port in the ATM access. It is used with the VPI to identify a virtual path.
  • Numeral type. xDSL board. Range: 32-255.
  • Numeral type. Other boards. Range: 32-65535.
single-service Indicates the single-service stream. That is, each traffic stream corresponds to one user. -
autosense Indicates the auto-sensing service port. When configuring a connection, you need not configure the VPI/VCI of the user connection on the MA5600T/MA5603T/MA5608T. After receiving the cell from the terminal, the MA5600T/MA5603T/MA5608T automatically learns the VPI/VCI of the connection and uses this VPI/VCI to communicate with the terminal.
When the terminal sends cells on multiple VPIs/VCIs, the VPI/VCI carried by the first cell that meets the condition prevails.
When this parameter is used, only one PVC is allowed on each xDSL port.
-
stream Creates a service port based on VDSL port. -
user-encap user-encap
Indicates the user-side encapsulation type. To differentiate users by the user-side encapsulation type, use this parameter.
  • When the IPv4oE or IPv6oE traffic stream exists on the port, the IPoE traffic stream cannot be created.
  • When the IPoE traffic stream exists on the port, the IPv4oE or IPv6oE traffic stream cannot be created.
Enumerated type. Options: ipoe, pppoe, ipv6oe and ipv4oe.
  • If the user-side encapsulation type is PPPoE (the Ethernet type of the packet is 0x8863 or 0x8864), select pppoe.
  • If user-side packets are IPv4/IPv6 IPoE packets or other non-PPPoE packets (the Ethernet type of the packets is not 0x8863 or 0x8864), select ipoe.
  • If user-side packets are IPv6 IPoE packets or other non-PPPoE packets (the Ethernet type of the packets is 0x86dd), select ipv6oe.
  • If user-side packets are IPv4 IPoE packets or other non-PPPoE packets (the Ethernet type of the packets is not 0x8863, or 0x8864, or 0x86dd), select ipv4oe.
user-vlan user-vlanid Indicates the user-side VLAN of a service port. When the resident gateway (RG) is capable of differentiating user services and adding different VLAN tags to different services (voice, video, and Internet access services, or different groups of the same enterprise user), the MA5680T/MA5683T/MA5608T differentiates user packets based on the user-side VLANs, maps the packets to different SVLANs, and transmits the packets downstream. Numeral type. Range: 1-4095.
untagged When the service port needs to carry multiple services and the services are differentiated by the user side VLANs, you can specify the packet type as untagged. -
user-8021p user-8021p Indicates the user priority of a service port. The MA5680T/MA5683T/MA5608T differentiates user packets based on the VLAN priority carried by the packets, maps the packets to different SVLANs, and transmits the packets upstream, so as to identify different services.
The priority increases with the value.
Numeral type. Range: 0-7.
count Indicates the maximum number of learnable dynamic MAC addresses. When the maximum number of learnable dynamic MAC addresses is set to 0, only the access of users with static MAC addresses is permitted. In this way, the port + MAC address binding function is implemented indirectly.
Numeral type. The value range varies with the port type:
  • ATM/xDSL port: 0-255. 255 indicates unlimited within the specifications supported by the board.
  • ETH/xPON port: 0-1023. 1023 indicates unlimited within the specifications supported by the board.

Modes

Global config mode

Level

Operator level

Usage Guidelines

  • By default, the system does not limit the number of learnable dynamic MAC addresses of a port.
  • The maximum number of learnable dynamic MAC addresses of a service channel does not affect the number of static MAC addresses added manually.
  • If the service port exists in a service port bundle, after the maximum number of learnable dynamic MAC addresses of a service port is set, it takes effect to all the service ports in the bundle. For example, if service-port 1 and service-port 2 belong to one bundle, after the maximum number of learnable dynamic MAC addresses of service-port 1 is specified, the maximum number of learnable dynamic MAC addresses of service-port 2 equals the maximum number of learnable dynamic MAC addresses of service-port 1.
  • After a traffic stream is added to a bundle, the maximum number of learnable dynamic MAC addresses of the bundle is set as the maximum number of learnable dynamic MAC addresses of the service port. When the maximum number of learnable dynamic MAC addresses of any service port in the bundle is changed, the maximum number of learnable dynamic MAC addresses of other service ports in the bundle is also changed.
  • When the maximum number of learnable dynamic MAC addresses is set to 0, only the access of users with static MAC addresses is permitted. In this way, the port + MAC address binding function is implemented indirectly.
  • The maximum number of learnable MAC addresses that is currently supported by the system is 4 K. When the number of learnable MAC addresses is not limited, the port can learn 4 K MAC addresses.

Example

To set the maximum number of learnable dynamic MAC addresses of the service virtual port with GPON port 0/3/0 and GEM port 128 to 8, do as follows:
huawei(config)#mac-address max-mac-count
{ adsl<K>|all<K>|atm<K>|board<K>|eth<K>|gpon<K>|service-port<K>|shdsl<K>
|vdsl<K> }:gpon
{ frameid/slotid/portid<S><Length 5-18> }:0/3/0
{ gemport<K> }:gemport
{ gemportid<U><128,3999> }:128
{ count<U><0,1023>|user-8021p<K>|user-vlan<K> }:8

  Command:
          mac-address max-mac-count gpon 0/3/0 gemport 128 8
To set the maximum number of learnable dynamic MAC addresses of a service port (VPI/VCI: 0/35, user-side VLAN: 100) under ADSL port 0/3/0 to 10, do as follows:
huawei(config)#mac-address max-mac-count
{ adsl<K>|all<K>|atm<K>|board<K>|eth<K>|gpon<K>|service-port<K>|shdsl<K>
|vdsl<K> }:adsl
{ frameid/slotid/portid<S><Length 5-18> }:0/3/0
{ autosense<K>|vpi<K> }:vpi
{ vpi<U><0,255> }:0
{ vci<K> }:vci 35
{ count<U><0,255>|single-service<K>|user-8021p<K>|user-encap<K>|user-vlan<K> }:u
ser-vlan
{ untagged<K>|user-vlanid<U><1,4095> }:100
{ count<U><0,255> }:10

  Command:
          mac-address max-mac-count adsl 0/3/0 vpi 0 vci 35 user-vlan 100 10
To set maximum number of learnable dynamic MAC addresses of all the service ports in the system to 10, do as follows:
huawei(config)#mac-address max-mac-count
{ adsl<K>|all<K>|atm<K>|board<K>|eth<K>|gpon<K>|service-port<K>|shdsl<K>
|vdsl<K> }:all
{ count<U><0,1023> }:10

  Command:
          mac-address max-mac-count all 10
  It will take several minutes, and console may be timeout, please use command
idle-timeout to set time limit
  Are you sure to continue? (y/n)[n]:y
  Command is being executed, please wait: 100%
  The number of service ports that are set successfully: 1     failed: 0
  The number of ONTs that are set successfully         : 0     failed: 0

System Response

  • The system displays the command execution progress (a percentage) when you set the maximum number of learnable dynamic MAC addresses of all the service ports.
  • The system does not display any message when the maximum number of learnable dynamic MAC addresses is set successfully, such as for a single service port. The system displays the message the numbers of setting successful and failed, if the batch operation is successful. 

More blog:

No comments:

Post a Comment