Specifying an access control method

You can specify an access control method for one port in Ethernet interface view, or for multiple ports in system view. If different access control methods are specified for a port in system view and Ethernet interface view, the one specified later takes effect.

To use both 802.1X and portal authentication on a port, you must specify MAC-based access control. For information about portal authentication, see "Configuring port security."

To specify the access control method:

Step

Command

Remarks

1. Enter system view.

system-view

N/A

2. Specify an access control method.

  • In system view:dot1x port-method { macbased | portbased } [ interface interface-list ]

  • In Ethernet interface view:

    1. interface interface-type interface-number

    2. dot1x port-method { macbased | portbased }

Optional.

Use either method.

By default, MAC-based access control applies.