Skip to content
Ask AI

Ethernet Interface Configuration

Ethernet interfaces are commonly used for carrying out business-related tasks and data transmission. They are often referred to as ports.

The numbering scheme for Ethernet interfaces in this product series is as follows: EthernetX. Here, X represents the interface number, starting from 1 and increasing incrementally. It’s important to note that the naming conventions for interfaces may vary based on the series. For instance, in enterprise-level products with 100G interfaces, the naming interval for 100G interfaces is 4. Taking the example of CX206P-48S-M-H, the interface with the number 49 is the first 100G interface, and its name is Ethernet49. The second 100G interface is named Ethernet53, and so on.

ParameterDefault value
Interface management statusUP
Interface FEC (Forward Error Correction)Disabled
Interface descriptionN/A
Interface MTU (Maximum Transmission Unit)9216 bytes
Interface LLDP (Link Layer Discovery Protocol) functionDisabled
Interface MAC addressSame as device MAC address

The product series supports interface speeds of 1G, 10G, 25G, and 100G. For example, the CX204Y-48GT, CX204Y-24GT, and CX206Y-48GT series default to interface speeds of 1G and 25G. The CX204Y-48S series defaults to 10G and 25G speeds. The CX206P-48GT series defaults to 10G and 100G speeds.

OperationCommandDescription
Enter the system configuration viewconfigure
Enter the interface viewinterface Ethernet ID
Set interface descriptiondescription String
Set interface speedspeed {1000|10000|25000}Different types of interfaces support different configuration parameters. Please execute the speed ? command in the relevant interface view to view specific options.
Modify interface FEC modeno shutdownBy default, the FEC mode is disabled. The FEC mode must be consistent at both ends of the link for the interface to come up. Use the no fec command to disable the FEC mode for the interface.
Enable interface POE supply functionfec {rs|fc}By default, the POE supply function for the interface is disabled. Use the no poe enable command to disable the POE supply for the interface

Configuring Layer 2/3 Mode Switching for Ethernet Interfaces

Section titled “Configuring Layer 2/3 Mode Switching for Ethernet Interfaces”

By default, the switch’s interfaces do not belong to any VLAN and have no IP address configured. When an interface is configured with an IP address, VRF, or other Layer 3 attributes, it automatically switches to Layer 3 mode. If you need to change the Layer 2/3 mode of an interface, you should first remove the Layer 3 attribute configurations from the interface. Afterward, execute the no router-interface command.

OperationCommandDescription
Enter the system configuration viewconfigure
Enter the interface viewinterface Ethernet ID
Switch the interface operation mode to layer 2.no router-interface

Interface splitting refers to dividing a 100G bandwidth physical interface on the device into multiple independent lower bandwidth interfaces to meet the requirements of connecting to lower bandwidth interfaces.

The device supports splitting a 100G interface into four 1G/10G/25G interfaces. After splitting, each interface is assigned an independent identifier. For example, when a 100Ge interface like Ethernet17 is split into four 10Ge interfaces, the resulting interfaces are numbered Ethernet17 to Ethernet20.

OperationCommandDescription
Enter the system configuration viewconfigure
Enter the interface viewinterface ethernet ID
Split the interfacebreakout {4x25G|4x10G|4x1G}
Unsplit the interfaceno breakout
OperationCommandDescription
View interface descriptionshow interface description
View interface POE supply informationshow interface poe [detail]
View interface statusshow interface status
View interface module information**show interface transceiver eeprom dom ** [ethernet ID]
View interface statistics:**show counters interface ** [ethernet ID]
Clear interface statisticsclear counters interface

When configuring a specific function (e.g., port shutdown) across multiple interfaces, individually entering each interface’s view and executing commands can become cumbersome. To simplify this process, the interface bulk configuration feature can be utilized to configure interfaces in batches, thereby reducing the configuration workload.

There is no upper limit to the number of interfaces that can be included in a bulk configuration, only constrained by system resources. However, if a significant number of interfaces are involved, executing commands within the bulk interface configuration view might take longer. When performing bulk interface configuration, if the interfaces listed already possess existing configurations, attempting to enter the bulk configuration view will result in failure. In such cases, the interface list needs to be reselected.

Once inside the bulk interface configuration view, you can utilize the ”?” command to explore the supported command lines for bulk configuration.

OperationCommandDescription
Enter the system configuration viewconfigure
Enter the interface group configuration viewport-group ethernet ID-IDThis command only supports interfaces with consecutive ID numbers for bulk configuration

The Loopback interface is a type of virtual interface. Once created, the physical layer of the Loopback interface remains in an “up” state unless manually disabled. Due to this characteristic, the Loopback interface can be applied in the following scenarios:

Source Address for Device-generated IP Packets: Because the Loopback interface address is stable and a unicast address, it is often regarded as an identifier for the device. By allowing or prohibiting packets carrying the Loopback interface address to pass through authentication or security servers, it is possible to permit or restrict packets generated by specific devices. This simplifies packet filtering rules. However, it should be noted that when using the Loopback interface address as the source address for IP packets, routing configurations are needed to ensure the reachability of the Loopback interface to the destination route.

Dynamic Routing Protocols: In certain dynamic routing protocols, when a router ID is not configured, the Loopback interface’s IP address is used as the router ID by default. In the context of the BGP protocol, to ensure that BGP sessions are not affected by physical interface failures, the source interface for transmitting BGP packets can be configured as the Loopback interface.

In-band Device Management: The loopback interface can be utilized for device management within the network infrastructure.

OperationCommandDescription
Enter the system configuration viewconfigure
Enter the loopback interface configuration viewinterface loopback ID
Configure the loopback interfaceip address ip-addressThe IP address of the Loopback interface can only be modified and cannot be deleted