Specifying an access control method

You can specify an access control method for one port in Layer 2 Ethernet interface view or for multiple ports in system view. If different access control methods are specified for a port in system view and Layer 2 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 portal authentication."

To specify the access control method:

Step

Command

Remarks

1. Enter system view.

system-view

N/A

2. Specify an access control method.

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

  • (Approach 2) In Layer 2 Ethernet interface view:

    1. interface interface-type interface-number

    2. dot1x port-method { macbased | portbased }

Use either approach.

By default, MAC-based access control applies.