Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

header-navigation
keyboard_arrow_up
close
keyboard_arrow_left
Junos CLI Reference
Table of Contents Expand all
list Table of Contents
file_download PDF
{ "lLangCode": "en", "lName": "English", "lCountryCode": "us", "transcode": "en_US" }
English
keyboard_arrow_right

accept-source-mac

date_range 19-Nov-23

Syntax

content_copy zoom_out_map
accept-source-mac {
    mac-address mac-address {
        policer {
            input cos-policer-name;
            output cos-policer-name;
        }
    }
}

Hierarchy Level

content_copy zoom_out_map
[edit interfaces interface-name unit logical-unit-number],
[edit logical-systems logical-system-name interfaces interface-name unit logical-unit-number]

Description

For Gigabit Ethernet intelligent queuing (IQ) interfaces only or for Gigabit Ethernet and aggregated Ethernet interfaces on switches, accept traffic from and to the specified remote media access control (MAC) address.

The accept-source-mac statement is equivalent to the source-address-filter statement, which is valid for Fast Ethernet, and Gigabit Ethernet interfaces only. To allow the interface to receive packets from specific MAC addresses, include the accept-source-mac statement.

On untagged Gigabit Ethernet interfaces, you should not configure the source-address-filter statement and the accept-source-mac statement simultaneously. On tagged Gigabit Ethernet interfaces, you should not configure the source-address-filter statement and the accept-source-mac statement with an identical MAC address specified in both filters.

The remaining statements are explained separately. See CLI Explorer.

Note:

The policer statement is not supported on PTX Series Packet Transport Routers.

Note:

If you configure MAC filtering on the AE interface, you must configure the interface with family ethernet-switching.

Note:

On QFX platforms, if you configure source MAC addresses for an interface using the static-mac or persistent-learning statements and later configure a different MAC address for the same interface using the accept-source-mac statement, the MAC addresses that you previously configured for the interface remain in the ethernet-switching table and can still be used to send packets to the interface.

Required Privilege Level

interface—To view this statement in the configuration.

interface-control—To add this statement to the configuration.

Release Information

Statement introduced before Junos OS Release 7.4.

footer-navigation