Configuration Guide Vol. 1


20.3.2 Configuring an ethernet interface

For an Ethernet interface, use the command corresponding to the interface to be connected to switch to the applicable mode, and then set the configuration. The following table describes the port types and the corresponding mode transition commands.

Table 20-20: Port types and corresponding mode transition commands

Port type

Command for mode transition

10BASE-T/100BASE-TX/1000BASE-T

interface gigabitethernet

SFP

interface gigabitethernet

100BASE-TX/1000BASE-T/10GBASE-T

interface tengigabitethernet

SFP + Ports

interface tengigabitethernet

SFP+/SFP shared

interface tengigabitethernet

QSFP + port (stack-only)

interface fortygigabitethernet

QSFP28/QSFP + shared port

interface hundredgigabitethernet

<Structure of this section>

(1) Configuration settings for an interface

Points to note

Configuring an Ethernet interface might require the execution of multiple commands. If an Ethernet interface is placed in the link-up status before all required commands are executed, communication will not be as expected. For this reason, we recommend that you first shut down the Ethernet interface, and then release the interface from the shutdown status after configuration has been completed.

Command examples

  1. (config)# interface gigabitethernet 1/0/10

    Switches to the Ethernet interface 1/0/10 configuration mode.

  2. (config-if)# shutdown

    Shuts down the Ethernet interface.

  3. (config-if)# * * * * *

    Configures the Ethernet interfaces.

  4. (config-if)# no shutdown

    Releases the Ethernet interface from the shutdown status.

(2) Shutdown of the interface

To shut down the Ethernet interface, enter the applicable Ethernet interface configuration mode and execute shutdown command. Shut down Ethernet if it is not used.

You can also use the operation-command inactivate to terminate Ethernet operation. Note that if a switch is deactivated by using this command is restarted, the status of the Ethernet interface reverts to active. However, if a switch that has been shut down is restarted, its status remains disabled. To change the status from disabled to active, you must release the Ethernet interface from the shutdown status by using no shutdown to configure the interface.