View Categories

Ethernet Interface Configuration

10 min read

2.1 Ethernet Interface for Management Configuration #

2.1.1 Introduction

2.1.2 Management Port Configuration

OperationCommandsDescription
Enter global configuration viewconfigure terminal-
Enter management port configuration viewinterface mgmt 0-
Configure the management port IP addressip address A.B.C.D/M gw A.B.C.D
ipv6 address A::B/M gw A::B
IPv4 address with subnet mask /32 is not allowed to be configured.
Addresses with subnet mask /31 is allowed. In other subnet masks, addresses with the host portion all-zeros or all-ones are not allowed.
IPv6 address with subnet mask /127 or /128 is not allowed to be configured. In other subnet masks, addresses with the host portion all-zeros are not allowed, but all-ones are allowed.
Exit management port configuration viewexit-
Save configurationwrite-

2.1.3 Display and Maintenance

OperationCommandsDescription
View management port informationshow interface mgmtThe IP of management port configured by the ifconfig or ip command is not displayed by this command.

2.1.4 Specific Configuration Scenarios

2.1.4.1 First Login

OperationCommandsDescription
Enter global configuration viewconfigure terminal-
Enter management port configuration viewinterface mgmt 0-
Configure the management port IP addressip address A.B.C.D/M gw A.B.C.D
ipv6 address A::B/M gw A::B
IPv4 address with subnet mask /32 is not allowed to be configured. Addresses with subnet mask /31 is allowed. In other subnet masks, addresses with the host portion all-zeros or all-ones are not allowed.
IPv6 address with subnet mask /127 or /128 is not allowed to be configured. In other subnet masks, addresses with the host portion all-zeros are not allowed, but all-ones are allowed.
Exit management port configuration viewexit-
Save configurationwrite-

2.1.4.2 Restore to Default Configuration

OperationCommandsDescription
Restore to default configuration.delete startup-config [reserve-mgmt]Run command reload to take effect. Option reserve-mgmt determine whether to reserve mgmt IP and gateway.
Reload.reload-
Enter global configuration view.configure terminal-
Enter management port configuration view.interface mgmt 0If you do not reserve mgmt configuration, you need to reconfigure mgmt IP through serial port.
Configure management IP addresses.ip address A.B.C.D/M gw A.B.C.D
ipv6 address A::B/M gw A::B
IPv4 address with subnet mask /32 is not allowed to be configured. Addresses with subnet mask /31 is allowed. In other subnet masks, addresses with the host portion all-zeros or all-ones are not allowed.
IPv6 address with subnet mask /127 or /128 is not allowed to be configured. In other subnet masks, addresses with the host portion all-zeros are not allowed, but all-ones are allowed.
Exit management port configuration view.exit-
Save configuration.write-

2.2 Logical Interface Configuration #

2.2.1 Introduction

2.2.2 Logical Interface Default Configuration

ParametersDefault value
VLANIF interfaceNone
LAGIF interfaceNone
Ethernet Layer 3 sub-interfaceNone
Loopback interfaceDefault configuration is Loopback0 interface, using address 10.1.0.1/32

2.2.3 Configuring the VLANIF Interface

2.2.4 Configuring the LAGIF Interface

2.2.5 Configuring Ethernet Layer 3 Sub-Interfaces

2.2.6 Configure the Loopback Interface

OperationCommandsDescription
Enter global configuration viewconfigure terminal-
Enter Loopback interface configuration view or create a Loopback interfaceinterface loopback lo-id-
Configure Loopback interface IP addressip address {A.B.C.D/M|A::B/M}-

2.2.7 Configure VXLAN Interfaces

2.3 Ethernet interface Configuration #

2.3.1 Introduction

2.3.2 Rules for numbering

2.3.2.1 Default Rules for numbering

2.3.2.2 Alias Mode Rules for numbering

Interface SpeedMarkingsInterface Breakout
1GG-
10GX-
25GY-
40GQ-
100GCC1_X1/C1_Y1
200GDD1_C1
400GQCQC1_C1

2.3.3 Interface Default Setting

ParametersDefault value
Interface name modedefault
Self-consultationOpen
Interface FECrs
Interface management statusUp
Interface speed25G or 100G
Interface description informationN/A
Interface splittingUnsplit
Interface MAC learning functionOpen
Interface LLDP functionOpen
Port ID type in interface LLDPifname
Interface MTU9216 bytes
Interface Layer 2 and 3 operating modeLayer 2 model
Interface MAC addressDynamically assigned by the system, or the same as the device MAC address
ARP proxy for interfaceDisable

2.3.4 Interface Base Configuration

2.3.4.1 Configure the Administrative State of the Interface

OperationCommandsDescription
Enter global configuration viewconfigure terminal-
Enter Ethernet interface view.interface ethernet interface-name-
Startup the interfaceno shutdown-
Shutdown the interfaceshutdown-

2.3.4.2 Configure the Interface Speed

OperationCommandsDescription
Enter global configuration viewconfigure terminal-
Enter Ethernet interface viewinterface ethernet interface-name-
Configure the interface speedspeed speedspeed in Mbit

2.3.4.3 Configure the Startup Delay of Interface

OperationCommandsDescription
Enter global configuration viewconfigure terminal-
Enter Ethernet interface viewinterface ethernet interface-name-
Configure the startup delay of interface startup-delay timeime: startup-delay time, range [1, 65535], in s
Restore the startup delay of interface to the default settingno startup-delay-

2.3.4.4 Configure Interface Description Information

OperationCommandsDescription
Enter global configuration viewconfigure terminal-
Enter Ethernet interface viewinterface ethernet interface-name-
Configure interface description informationdescription descriptionThere is only one description for an interface and multiple configurations will overwrite it.
Delete interface description informationno description-

2.3.5 Configure Interface Self-Negotiation

OperationCommandsDescription
Enter global configuration viewconfigure terminal-
Enter Ethernet interface viewinterface ethernet interface-name-
Enable interface self-negotiationautoneg-
Disable interface self-negotiationno autoneg-

2.3.6 Configure the Interface FEC Mode

OperationCommandsDescription
Enter global configuration viewconfigure terminal-
Enter Ethernet interface viewinterface ethernet interface-name-
Configure the interface FEC modefec {rs|fc}-
Disable the FEC functionno fec-

2.3.7 Configure Interface Layer 2 and 3 Mode Switch

OperationCommandsDescription
Enter global configuration viewconfigure terminal-
Enter Ethernet interface viewinterface ethernet interface-name-
Switche the operating mode of the interface to layer 3no switchport-
Switche the operating mode of the interface to layer 2switchport-

2.3.8 Configure Interface Isolation

OperationCommandsDescription
Enter global configuration viewconfigure terminal-
Enter Ethernet interface viewinterface ethernet interface-name-
Enable interface isolationport-isolate enable group-namegroup-name : isolation group name
Disable interface isolationno port-isolate enable-

2.3.9 Configure Interface Breakout

OperationCommandsDescription
Enter global configuration viewconfigure terminal-
Enter Ethernet interface viewinterface ethernet interface-name-
Enable interface breakout.breakout {4x25G[10G]|4x50G[10G]|2x200G[100G]|4x100G[50G]|2x100G[50G]}-
Restore interface breakout.no breakout-
ParameterDescriptionSupported Devices
4x25G[10G]Split one 100G port into four 25G portsCX308P-48Y-N, CX308P-48Y-N-V2, CX532P-N, CX532P-N-V2,CX564P-N
4x50G[10G]Split one 200G port into four 50G portsCX664D-N
2x200G[100G]Split one 400G port into two 200G portsCX732Q-N
4x100G[50G]Split one 400G port into four 100G portsCX732Q-N
2x100G[50G]Split one 200G port into two 50G portsCX664D-N

2.3.10 Layer 2 Interface Configuration

2.3.10.1 Configure the MAC learning switch for interface

OperationCommandsDescription
Enter global configuration viewconfigure terminal-
Enter Ethernet interface viewinterface ethernet interface-name-
Enable MAC learning for the interfacemac-address learning-
Disable MAC learning for the interfaceno mac-address learning-

2.3.11 Layer 3 Interface Configuration

2.3.11.1 Configure the Interface IP Address

OperationCommandsDescription
Enter global configuration viewconfigure terminal-
Enter Ethernet interface viewinterface ethernet interface-name-
Configure the management port IP addressip address A.B.C.D/M gw A.B.C.D
ipv6 address A::B/M gw A::B
IPv4 address with subnet mask /32 is not allowed to be configured. Addresses with subnet mask /31 is allowed. In other subnet masks, addresses with the host portion all-zeros or all-ones are not allowed.
IPv6 address with subnet mask /127 or /128 is not allowed to be configured. In other subnet masks, addresses with the host portion all-zeros are not allowed, but all-ones are allowed.
Delete interface IP addressno ip address {A.B.C.D/M|A::B/M}-

2.3.11.2 Configure the Interface MTU

OperationCommandsDescription
Enter global configuration viewconfigure terminal-
Enter Ethernet interface viewinterface ethernet interface-name-
Configure the interface MTUmtu mtuMTU range: 1312 to 9216

2.3.11.3 Configure the MAC Address of the Interface

OperationCommandsDescription
Enter global configuration viewconfigure terminal-
Enter Ethernet interface viewinterface ethernet interface-name-
Configure the MAC address of the interfacemac-address HH:HH:HH:HH:HH:HHMAC addresses are not case-sensitive
Restore the MAC address of the interface to its default valueno mac-address-

2.3.11.4 Configure Layer 3 Sub-interfaces

OperationCommandsDescription
Enter global configuration viewconfigure terminal-
Create a sub-interface and enter the sub-interface viewinterface ethernet interface-name.subinterface-number-
Configure the MAC address of the interfaceip address {A.B.C.D/M|A::B/M}IPv4 address with subnet mask /32 is not allowed to be configured. Addresses with subnet mask /31 is allowed. In other subnet masks, addresses with the host portion all-zeros or all-ones are not allowed.
IPv6 address with subnet mask /127 or /128 is not allowed to be configured. In other subnet masks, addresses with the host portion all-zeros are not allowed, but all-ones are allowed.
Delete the IP address of the sub-interfaceno ip address {A.B.C.D/M|A::B/M}-
Configure the MTU of the sub-interfacemtu mtu-
Shutdown sub-interfaceshutdown-
Startup sub-interfaceno shutdown-
Configure the MAC address of the sub-interfacemac-address HH:HH:HH:HH:HH:HHMAC addresses are not case-sensitive
Restore the MAC address of the atomic interface to its default valueno mac-address-
Delete sub-interfaceno interface ethernet interface-name.subinterface-number-

2.3.11.5 Configure Interface Loop Traffic Drop

OperationCommandsDescription
Enter global configuration viewconfigure terminal-
Enter Ethernet interface viewinterface ethernet interface-name-
Disable loop traffic dropno loopback-pkt-drop-
Enable loop traffic droploopback-pkt-drop-

2.3.12 Display and Maintenance

2.3.12.1 Display Interface Configuration Information

OperationCommandsDescription
View interface description informationshow interface description -
View interface status informationshow interface summary-
View information about the interfaceshow interface ethernet interface-name-
View interface IPv4 address configurationshow ip interfaces-

2.3.12.2 Display Interface Status Information

OperationCommandsDescription
View interface status informationshow interface summary-
View information about the interfaceshow interface ethernet interface-name-
View interface statisticsshow counters interface [ethernet interface-name]-
View layer 3 port statisticsshow counters rif {ethernet|vlan|link-aggregation} interface-name-
View LLDP neighbor informationshow lldp neighbor {summary|interface interface-name}-

2.3.12.3 Clear Interface Statistics Count

OperationCommandsDescription
Clear interface statistics count informationclear counters {interface|rif}-

2.3.12.4 Display Information on Interface Optical Modules

OperationCommandsDescription
Display presence information of optical modules.show interface transceiver [ethernet interface-name] presence-
Display detailed information of optical modules.show interface transceiver [ethernet interface_name] eeprom [detail]-
Display low-power mode information of optical modules.show interface transceiver [ethernet interface_name] lpmode-

2.3.12.5 Display Interface Isolation Configuration Information

OperationCommandsDescription
Display interface isolation configuration informationshow isolate-group summary [ethernet interface-name]-

2.4 Console Interface #

2.4.1 Introduction

2.4.2 Example

Leave a Reply

Your email address will not be published. Required fields are marked *

© 2025 Asteraix. All rights reserved.