Tuesday, January 17, 2017

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

Function

The mac-address static command is used to configure the static MAC address of a service channel. To connect a device with a specified MAC address to a port, run this command. After the static MAC address is configured successfully, the device needs no MAC address learning process, and directly forwards the data according to the static MAC address.
The undo mac-address static command is used to delete the static MAC address of a port. To disconnect a user with a specified MAC address from a port, run this command. After the MAC address is deleted successfully, the address table resource is released.

Format

mac-address static { 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 } mac-address
mac-address static atm frameid/slotid/portid vpi vpi vci vci [ single-service ] mac-address
mac-address static ethernet frameid/slotid/portid { vlan vlanid | stream | user-encap user-encap | user-vlan { untagged | user-vlanid } | { user-8021p user-8021p [ user-vlan user-vlanid ] } } mac-address
mac-address static vdsl frameid/slotid/portid { stream | user-encap user-encap | user-vlan { untagged | user-vlanid } | { user-8021p user-8021p [ user-vlan user-vlanid ] } | autosense | { vpi vpi vci vci [ single-service | user-encap user-encap | user-vlan { untagged | user-vlanid } | user-8021p user-8021p [ user-vlan user-vlanid ] ] } } mac-address
mac-address static ethernet frameid/slotid/portid { vlan vlanid | stream | user-encap user-encap | user-vlan { untagged | user-vlanid } | { user-8021p user-8021p [ user-vlan user-vlanid ] } } mac-address
mac-address static gpon frameid/slotid/portid gemport gemportid [ user-vlan { untagged | user-vlanid } | user-8021p user-8021p [ user-vlan user-vlanid ] ] mac-address
mac-address static service-port index mac-address
mac-address static gpon frameid/slotid/portid vlan vlanid mac-address
mac-address static vdsl frameid/slotid/portid vlan vlanid mac-address
undo mac-address static gpon frameid/slotid/portid [ gemport gemportid [ user-vlan { untagged | user-vlanid} | user-8021p user-8021p ] ]
undo mac-address static service-port index
undo mac-address static { 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 ]
undo mac-address static atm frameid/slotid/portid [ vpi vpi vci vci single-service ]
undo mac-address static 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 ] ] | autosense ]
undo mac-address static ethernet frameid/slotid/portid { user-vlan { untagged | user-vlanid } | { user-8021p user-8021p [ user-vlan user-vlanid ] | user-encap user-encap | autosense } }
undo mac-address static mac mac-address
undo mac-address static vlan vlanid
undo mac-address static gpon frameid/slotid/portid

Parameters

Parameter Description Value
adsl Configures the static MAC address of an ADSL service port. To access the network in ADSL mode, use this parameter. -
shdsl Configures the static MAC address of an SHDSL service port. To access the network in SHDSL mode, use this parameter. -
atm Configures the static MAC address of an ATM service port. To access the network in ATM mode, use this parameter. -
ethernet Configures the static MAC address of an ETH service port. To access the network in ETH mode, use this parameter. -
gpon Configures the static MAC address of a GPON service port. To access the network in GPON mode, use this parameter. -
vdsl Configures the static MAC address of a VDSL2 service port or uplink port. To access or uplink the network in VDSL2 mode, use this parameter. -
frameid/slotid/portid Indicates the subrack ID, slot ID, and port ID. Enter a slash (/) between the subrack, slot, and port IDs. To specify the physical port to which a service port belongs, use this parameter. Please see Differences Between Shelves.
vpi vpi Indicates VPI value of the service port in ATM access mode. It identifies a virtual path when used with the VCI value.
Numeral type. Range:
  • xDSL board. Range: 0-255.
  • Other boards. Range: 0-4095.
Default: 0.
vci vci Indicates VCI value of the service port in ATM access mode. It identifies a virtual path when used with the VPI value.
  • Numeral type. xDSL board. Range: 32-255.
  • Numeral type. Other boards. Range: 32-65535.
Default: 32.
single-service When the port type is single-PVC for single service, use this parameter. -
autosense Indicates the auto-sensing service port. This parameter is used to automatically learn user-side VPI/VCI. -
stream To configure the static MAC address of a service port of a port according to the port traffic stream, use this parameter. -
vlan vlanid Indicates the VLAN where the service port is located. To configure the static MAC addresse of a service port under a VLAN in the Ethernet access mode or xPON access mode, use this parameter. Numeral type. Range: 1-4093.
user-encap user-encap Indicates the user-side encapsulation type of a service port. To set the maximum number of MAC addresses of a service port of a specified encapsulation type under a certain physical port, use this parameter. Enumerated type. Options: pppoe and ipoe.
user-vlan user-vlanid Indicates the user-side VLAN of a service port. To set the MAC addresses of service ports in a specified user-side VLAN under a certain physical port, use this parameter. 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 user-side priority of a service port. To set the MAC addresses of service ports with a specified user-side priority under a certain physical port, use this parameter. Numeral type. Range: 0-7.
mac-address Indicates the static MAC address to be configured. It shall not be a multicast or broadcast address. Format: XXXX-XXXX-XXXX. You can delete a specified MAC address. MAC address type. Format: XXXX-XXXX-XXXX. X indicates a hexadecimal number.
service-port index Indicates the PVC index value, used to identify a PVC.
Numeral type,Range:
  • SCUK/SCUL/SCUN:0-32767.
  • SCUB/SCUF:0-16383.
  • SCUH/SCUV:0-131071.
  • MCUD/MCUD1/MCUE:0-20479.
gemport gemportid Indicates the GEM port ID. GEM ports of each PON port are numbered in a centralized way. GEM ports 0-127 are reserved for the private use of OMCI and GEM ports 4000-4095 serve as channels for special use. Numeral type. Range: 128-3999.

Modes

Global config mode

Level

Operator level

Usage Guidelines

  • Before setting the static MAC address of a service port, the service port must be set up.
  • After a MAC address is set for a service port successfully, and if the maximum number of learnable dynamic MAC addresses is set to 0, the port receives only the data configured for users of the configured static MAC address. In this way, the MAC address binding function is realized.
  • When a static MAC address is added to a service channel or the upstream port of a specified VLAN, and if the service channel or the upstream port has a dynamic MAC address the same with the static MAC address, the system replace the dynamic MAC address with the static MAC address. If there exists a static MAC address same as the new static MAC address to be added, the new static MAC address cannot be added to the service channel or the upstream port.
  • Do not include the static MAC addresses to the configured MAC address pool. Before configuring a static MAC address entry, you can run the display mac-pool command to query whether the static MAC address to be configured is contained in the MAC address pool.
  • Upstream ports that are in different VLANs can be configured with the same static MAC addresses.
  • You can delete either static MAC addresses or dynamic MAC addresses.

Example

To add static MAC address 00e0-fc00-1111 to the service channel (with GPON port 0/3/0 and GEM port 128), do as follows:
huawei(config)#mac-address static
{ adsl<K>|atm<K>|ethernet<K>|gpon<K>|service-port<K>|shdsl<K>|vdsl<K> }:
gpon
{ frameid/slotid/portid<S><Length 5-7> }:0/3/0
{ gemport<K> }:gemport
{ gemportid<U><128,3999> }:128
{ mac-address<P><XXXX-XXXX-XXXX>|user-8021p<K>|user-vlan<K> }:00e0-fc00-1111

  Command:
          mac-address static gpon 0/3/0 gemport 128 00e0-fc00-1111
To add static MAC address 00e0-fc00-1010 to the service channel (with ADSL port 0/3/0 with VPI/VCI of 0/35), do as follows:
huawei(config)#mac-address static
{ adsl<K>|atm<K>|ethernet<K>|gpon<K>|service-port<K>|shdsl<K>|vdsl<K> }:
adsl
{ frameid/slotid/portid<S><Length 5-7> }:0/3/0
{ autosense<K>|vpi<K> }:vpi
{ vpi<U><0,255> }:0
{ vci<K> }:vci
{ vci<U><32,255> }:35
{ mac-address<P><XXXX-XXXX-XXXX>|single-service<K>|user-8021p<K>|user-encap<K>|u
ser-vlan<K> }:single-service
{ mac-address<P><XXXX-XXXX-XXXX> }:00e0-fc00-1010

  Command:
          mac-address static adsl 0/3/0 vpi 0 vci 35 single-service
00e0-fc00-1010
To add static MAC address 00e0-fc00-1011 to a service virtual port with user-side VLAN of 100 of a service channel (ADSL port 0/3/1 with VPI/VCI of 0/35), do as follows:
huawei(config)#mac-address static
{ adsl<K>|atm<K>|ethernet<K>|gpon<K>|service-port<K>|shdsl<K>|vdsl<K> }:
adsl
{ frameid/slotid/portid<S><Length 5-7> }:0/3/1
{ autosense<K>|vpi<K> }:vpi
{ vpi<U><0,255> }:0
{ vci<K> }:vci
{ vci<U><32,255> }:35
{ mac-address<P><XXXX-XXXX-XXXX>|single-service<K>|user-8021p<K>|user-encap<K>|u
ser-vlan<K> }:user-vlan
{ untagged<K>|user-vlanid<U><1,4095> }:100
{ mac-address<P><XXXX-XXXX-XXXX> }:00e0-fc00-1011

  Command:
          mac-address static adsl 0/3/1 vpi 0 vci 35 user-vlan 100
00e0-fc00-1011
To delete a static MAC address from the service channel (ADSL port 0/3/0 with VPI/VCI of 0/35), do as follows:
huawei(config)#undo mac-address static
{ adsl<K>|atm<K>|ethernet<K>|gpon<K>|mac<K>|service-port<K>|shdsl<K>|vds
l<K>|vlan<K> }:adsl
{ frameid/slotid/portid<S><Length 5-7> }:0/3/0
{ <cr>|autosense<K>|vpi<K> }:vpi
{ vpi<U><0,255> }:0
{ vci<K> }:vci
{ vci<U><32,255> }:35
{ <cr>|single-service<K>|user-8021p<K>|user-encap<K>|user-vlan<K> }:

  Command:
          undo mac-address static adsl 0/3/0 vpi 0 vci 35
To delete the static MAC address from the service channel with GPON port 0/3/0 and GEM port 128, do as follows:
huawei(config)#undo mac-address static
{ adsl<K>|atm<K>|ethernet<K>|gpon<K>|mac<K>|service-port<K>|shdsl<K>|vds
l<K>|vlan<K> }:gpon
{ frameid/slotid/portid<S><Length 5-7> }:0/3/0
{ <cr>|gemport<K> }:gemport
{ gemportid<U><128,3999> }:128
{ <cr>|user-8021p<K>|user-vlan<K> }:

  Command:
          undo mac-address static gpon 0/3/0 gemport 128

System Response

  • The system does not display any message after the MAC address of a service virtual port is added or deleted successfully. 
More blog:

How to change the OLT type device?

No comments:

Post a Comment