mac
Use this command to configure a static MAC address with IPv4/IPv6 address or only MAC address under the Access-Circuit.
Use the no form of this command to unconfigure a static MAC address with IPv4/IPv6 address and only MAC address from the Access-Circuit.
Note: Not applicable for the AC port which is mapped with ELINE Service.
For static mac addresses,
1) the local static is given preference over remote learned static.
2) if same static mac is configured on more than one interface of same VPN then conflict state need to be resolved manually by removing that static-mac on all access-interfaces where it was configured.
Command Syntax
mac XXXX.XXXX.XXXX (| ip A.B.C.D | ipv6 X:X::X:X)
no mac XXXX.XXXX.XXXX (| ip A.B.C.D | ipv6 X:X::X:X)
Parameters
XXXX.XXXX.XXXX
Static mac address
A.B.C.D
Static IPv4 address
X:X::X:X
Static IPv6 address
Command Mode
Access if evpn mode
Applicability
This command was introduced in OcNOS version 3.0.
Example
#configure terminal
(config)# interface xe1.1 switchport
(config-if)#access-if-evpn
(config-access-if)#mac 0000.0000.1001
(config-access-if)#mac 0000.0000.1002 ip 10.10.10.1
(config-access-if)#mac 0000.0000.1003 ipv6 1201::1
(config-access-if)#end
Last modified date: 10/17/2023