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

mac

date_range 20-Nov-23

Syntax

content_copy zoom_out_map
 mac mac-address;

Hierarchy Level

  • For platforms with Enhanced Layer 2 Software (ELS):

    content_copy zoom_out_map
    [edit vlans vlan-name forwarding-options dhcp-security group group-name interface interface-name static-ip  ip-address]
    
  • For platforms without ELS:

    content_copy zoom_out_map
    [edit ethernet-switching-options secure-access-port interface (all | interface-name) static-ip                  ip-address vlan                 vlan-name]
    
  • For MX Series platforms:

    content_copy zoom_out_map
    [edit bridge-domains bridge-domain-name forwarding-options dhcp-security group group-name interface interface-name static-ip  ip-address]
    

Description

Configure the media access control (MAC) address or hardware address of the device connected to the specified interface.

Options

mac-address—Value (in hexadecimal format) of the address assigned to this device.

Required Privilege Level

system—To view this statement in the configuration.system-control—To add this statement to the configuration.

Release Information

Statement introduced in Junos OS Release 9.2.

Hierarchy level [edit vlans vlan-name forwarding-options dhcp-security] introduced in Junos OS Release 13.2X50-D10. (See Using the Enhanced Layer 2 Software CLI for information about ELS.)

Hierarchy level [edit bridge-domains bridge-domain-name forwarding-options dhcp-security] introduced in Junos OS Release 14.1 for the MX Series.

footer-navigation