mac-authentication

Syntax

In system view:

mac-authentication [ interface interface-list ]

undo mac-authentication [ interface interface-list ]

In Ethernet interface view:

mac-authentication

undo mac-authentication

View

System view, Ethernet interface view

Default level

2: System level

Parameters

interface interface-list: Specifies an Ethernet port list, in the format of { interface-type interface-number [ to interface-type interface-number ] }&<1-10>, where &<1-10> indicates that you can specify up to 10 port ranges. The start port and end port of a port range must be of the same type and the end port number must be greater than the start port number. A port range defined without the to interface-type interface-number portion comprises only one port.

Description

Use mac-authentication in system view to enable MAC authentication globally.

Use mac-authentication interface interface-list in system view to enable MAC authentication on a list of ports, or mac-authentication in interface view to enable MAC authentication on a port.

Use undo mac-authentication in system view to disable MAC authentication globally.

Use undo mac-authentication interface interface-list in system view to disable MAC authentication on a list of ports, or undo mac-authentication in interface view to disable MAC authentication on a port.

By default, MAC authentication is not enabled globally or on any port.

To use MAC authentication on a port, you must enable the function both globally and on the port.

Examples

# Enable MAC authentication globally.

<Sysname> system-view
[Sysname] mac-authentication
Mac-auth is enabled globally.

# Enable MAC authentication on port Ethernet 1/0/1.

<Sysname> system-view
[Sysname] mac-authentication interface Ethernet 1/0/1
Mac-auth is enabled on port Ethernet1/0/1.

Or

<Sysname> system-view
[Sysname] interface ethernet 1/0/1
[Sysname-Ethernet1/0/1] mac-authentication
Mac-auth is enabled on port Ethernet1/0/1.