< Home

port connection-type access

Function

The port connection-type access command configures the specified interfaces as downlink interfaces.

The undo port connection-type access command configures the specified interfaces as uplink interfaces.

Format

port { interface-type start-interface-number [ to interface-type end-interface-number ] } &<1-10> connection-type access

undo port { interface-type start-interface-number [ to interface-type end-interface-number ] } &<1-10> connection-type access

Parameters

Parameter

Description

Value

interface-type start-interface-number [ to interface-type end-interface-number ]

Specifies interfaces.

  • interface-type specifies the interface type.
  • start-interface-number specifies the number of the first interface.
  • end-interface-number specifies the number of the last interface.
If the to interface-type end-interface-number parameter is not specified, only the interfaces specified by start-interface-number are created. You can specify 10 interface ranges at one time.

-

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

By default, downlink interfaces are access ones and uplink interfaces are non-access ones. You can run the port connection-type access or undo port connection-type access command to modify the interface access type. For example, you can batch configure the downlink interfaces supported by the device, and run the dot1x mac-bypass access-port command to enable MAC address bypass authentication on all the downlink interfaces.

After the default interface access type is modified, the device generates the interface buildrun information in the system view.

Precautions

If stack interface information exists within the interface range, the command does not take effect. Therefore, there should be no interface with stack configuration in the interface range. If the access type of an interface is changed, stack configuration cannot be performed for the interface. That is, if an interface needs to be configured as a stack interface, the default interface access type cannot be modified.

Example

# Configure interfaces as downlink interfaces in the system view.

<HUAWEI> system-view
[HUAWEI] port GigabitEthernet 0/0/1 to GigabitEthernet 0/0/6 connection-type access
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >