Дерево страниц
Перейти к концу метаданных
Переход к началу метаданных

mac address-table aging-time

The command sets MAC address lifetime in the table.

The use of the negative form of the command (no) sets the default MAC address lifetime.

Syntax     

mac address-table aging-time <AGING TIME>
no macaddress-table aging-time

Parameters

<AGINGTIME> – MAC address lifetime, may take values [0, 10..86400] seconds. Value 0 – for the PP4X module, the lifetime of the MAC address is not limited.

Default value

300 seconds.

Command mode

CONFIG

Example

ma4000(config)# mac address-table aging-time 400

mac address-table learning

This command enables the learn of MAC addresses in a given interface or VLAN.

The use of the negative form of the command (no) disables learning MAC addresses.

Syntax     

[no] mac address-table learning interface <INTERFACE> <RANGE>
[no] mac address-table learning vlan <VLAN>

Parameters

<INTERFACE> – interface type: front-port; port-channel; slot-channel. The description of interfaces is given in Table 4.1.

<RANGE> – interface number. The range of values and numbering rules are described in Table 4.1. If you specify the value 'all' in the command, all interfaces of the given type will be specified.

You may specify the list of numbers using comma ( , ) or specify the range using hyphen ( - ).

<VLAN> – VLAN ID, may take values [1..4094].

Command mode

CONFIG

Example

ma4000(config)# mac address-table learning vlan 1

show gpon network

This command allows you to view the lifetime of the MAC address table.

Syntax     

show gpon network

Parameters

Command contains no arguments.

Command mode

ROOT

Example

ma4000# showgponnetwork
Network:
        Mac age time:                                  1200
        S-VLAN ethertype:                              0x8100
        C-VLAN ethertype:                              0x8100

clear mac address-table

This command allows to clear MAC table:

  • for the whole device;
  • by PLC8 or PP4X module number;
  • by interface type and number;
  • by VLAN.

Syntax

clear mac address-table [interface <INTERFACE> <RANGE>|pp4|slot <ID>|vlan <VLAN>]

Parameters

If no parameters are set, the command will clear the MAC table for the whole device.

interface <INTERFACE> <RANGE> – if you specify this command, the MAC table of a certain interface/group of interfaces will be cleared where:

<INTERFACE> – interface type: front-port, port-channel, slot-channel. The description of interfaces is given in Table 4.1.

<RANGE> – interface number. The range of values and numbering rules are described in Table 4.1. 

pp4 – when you specify this command will be cleared MAC table of the central PP4X module switch.

slot <ID> – If you specify this command, the MAC table of a certain PLC8 module will be cleared, where <ID> takes values [0 ..15].

vlan <VID> – If you specify this command, the MAC table of a particular VLAN will be cleared, where <VID> is the <VLAN> number, takes the values [1..4094].

Command mode

ROOT

Example

ma4000# clear mac address-table

show mac

This command allows you to view the MAC table according to the specified filter:

  • by interface type and number;
  • by MAC address;
  • by VLAN number.

Syntax     

show mac <PARAM> [<TYPE> <RULE>]

Parameters

<PARAM> – selection of the MAC table:

  • all – show all;
  • interface <INTERFACE> <RANGE> – MAC table of a certain interface/interface group <INTERFACE>: gpon-port; ont; front-port; port-channel; slot-channel; plc-front-port; plc-slot-port; plc-mgmt-pon-port; plc-pon-port. A description of the interfaces and their <RANGE> values is given in Table 4.1.
  • pp4 – MAC table of the central PP4X switch modules;
  • slot <ID> – MAC table of a certain PLC8 module, where <ID> takes values [0...15];

<TYPE> – filter type:

  • exclude – excludes from the table entries by the given rules;
  • include – includes entries according to specified rules.

<RULE> – filter operation rule:

  • mac-address <MAC> – MAC selection, where <MAC> – MAC address value in format of XX:XX:XX:XX:XX:XX;
  • interface <INTERFACE> – selection by selected interface;
  • vlan <VID> – VLAN number selection, where <VID> – <VLAN> number, may take values [1..4094].

Command mode

ROOT

Example

ma4000# show mac interface front-port 1/0 

   Mac table (shadow)
   ~~~~~~~~~~~~~~~~~~
VID    MAC address         Port                              Type       From            To              
----   -----------------   -----------------------------   --------   -------------   -----------
1      00:02:11:22:e3:b8   front-port 1/0                   Dynamic    Forward         Forward         
1      00:1b:21:4f:f5:ad   front-port 1/0                   Dynamic    Forward         Forward         
1      00:24:21:a0:9a:80   front-port 1/0                   Dynamic    Forward         Forward         
1      20:cf:30:bf:ac:61   front-port 1/0                   Dynamic    Forward         Forward         
1      20:cf:30:e8:0f:28   front-port 1/0                   Dynamic    Forward         Forward         
1      20:cf:30:e8:0f:66   front-port 1/0                   Dynamic    Forward         Forward         
1      50:46:5d:8e:27:68   front-port 1/0                   Dynamic    Forward         Forward         
1      90:e6:ba:1f:c0:41   front-port 1/0                   Dynamic    Forward         Forward         
1      90:e6:ba:9f:09:99   front-port 1/0                   Dynamic    Forward         Forward         
1      a8:f9:4b:80:e7:00   front-port 1/0                   Dynamic    Forward         Forward         
1      a8:f9:4b:80:e7:27   front-port 1/0                   Dynamic    Forward         Forward         
1      bc:ee:7b:73:dd:af   front-port 1/0                   Dynamic    Forward         Forward         
12 valid mac entries
  • Нет меток