Home > Configuration > NS > setnsacl_srcmac

setnsacl_srcmac

Use this method to set mAC address to match against the source MAC address of an incoming IPv4 packet.

Syntax



Parameters

aclname

Name of the ACL rule whose parameters you want to modify.
This is mandatory parameter.

srcmac

MAC address to match against the source MAC address of an incoming IPv4 packet.

srcmacmask

Used to define range of Source MAC address. It takes string of 0 and 1, 0s are for exact match and 1s for wildcard. For matching first 3 bytes of MAC address, srcMacMask value "000000111111".
Default value = "000000000000".

Return Value

Returns simpleResult

See Also