mac
Syntax
mac mac-address;
Hierarchy Level
For platforms with Enhanced Layer 2 Software (ELS):
[edit vlans vlan-name forwarding-options dhcp-security group group-name interface interface-name static-ip ip-address]
For platforms without ELS:
[edit ethernet-switching-options secure-access-port interface (all | interface-name) static-ip ip-address vlan vlan-name]
For MX Series platforms:
[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.