---
title: Interface Management
slug: aidc/interface-management
createdAt: 2025-12-01T11:05:36.000Z
---

# <font color="#1d50a2">Interface Attribute Information</font>

<font color="#1d05a2">Table 1 Interface Attribute Information View</font>

| **Command**                    | **Purpose**                        |
| ------------------------------ | ---------------------------------- |
| **show interface description** | Display description of interfaces. |

### <font color="#1d50a2">show interface description</font>

**\[Command]**
**show interface description**

**\[Purpose]**
Display description of interfaces.

**\[View]**
Privileged User View

**\[Use Cases]**

```plaintext
sonic# show interface description
      Interface    Oper    Admin    Alias    Description
---------------  ------  -------  -------  -------------
      0/0          down       up       Y1            N/A
      0/1          down       up       Y2            N/A
      0/2          down       up       Y3            N/A
      0/3          down       up       Y4            N/A
      0/4          down       up       Y5            N/A
      0/5          down       up       Y6            N/A
      0/6          down       up       Y7            N/A
      0/7          down       up       Y8            N/A
      0/8          down       up       Y9            N/A
      0/9          down       up      Y10            N/A
```

# <font color="#1d50a2">Interface Status</font>

## <font color="#1d50a2">Interface Status View</font>

<font color="#1d05a2">Table 2 Interface Status View</font>

| **Command**                                                                        | **Purpose**                                                 |
| ---------------------------------------------------------------------------------- | ----------------------------------------------------------- |
| **show interface summary**                                                         | Display summary information about the status of interfaces. |
| **show** \{**ip**\|**ipv6**} **interfaces**                                        | Display IP address configuration of interfaces.             |
| **show interface** \[**ethernet** *interface\_name*]                               | Display information about the status of interfaces.         |
| **show counters interface** \[**ethernet** *interface\_name*]                      | Display statistics of interfaces.                           |
| **show counters rif** \[\{**ethernet\|vlan\|link-aggregation**} *interface\_name*] | Display statistics of Layer 3 ports.                        |
| **clear counters** \{**interface**\|**rif**}                                       | Clear the counters.                                         |
| **show link-delay**                                                                | Display interface linkup delay configuration.               |
| **show port-isolate summary**                                                      | Display the port isolation group configuration.             |
| **show interface startup\_delay**                                                  | Display the delayed startup time configuration of ports.    |

### <font color="#1d50a2">show interface summary</font>

**\[Command]**
**show interface summary**

**\[Purpose]**
Display summary information about the status of interfaces.

**\[View]**
Privileged User View

**\[Notes]**
**trunk** indicates Layer 2 interface mode, **routed** indicates Layer 3 interface mode.

**\[Use Cases]**

```plaintext
sonic# show interface summary
      Interface        Lanes    Speed    MTU    FEC    Alias             Vlan    Oper    Admin             Type    Asym PFC
---------------  -----------  -------  -----  -----  -------  ---------------  ------  -------  ---------------  ----------
            0/0            0      25G   9216     rs       Y1             lag1      up       up   SFP/SFP+/SFP28         N/A
            0/1            1      25G   9216     rs       Y2           routed    down       up              N/A         N/A
            0/2            2      25G   9216     rs       Y3           routed    down       up              N/A         N/A
            0/3            3      25G   9216     rs       Y4           routed    down       up              N/A         N/A
            0/4            4      25G   9216     rs       Y5           routed      up       up   SFP/SFP+/SFP28         N/A
            0/5            5      25G   9216     rs       Y6           routed    down       up              N/A         N/A
            0/6            6      25G   9216     rs       Y7           routed    down       up              N/A         N/A
            0/7            7      25G   9216     rs       Y8           routed    down       up              N/A         N/A
            0/8            8      25G   9216     rs       Y9           routed    down       up              N/A         N/A
            0/9            9      25G   9216     rs      Y10           routed    down       up              N/A         N/A
           0/10           10      25G   9216     rs      Y11           routed      up       up   SFP/SFP+/SFP28         N/A
           0/11           11      25G   9216     rs      Y12           routed    down       up   SFP/SFP+/SFP28         N/A
           0/12           12      25G   9216     rs      Y13           routed    down       up              N/A         N/A
           0/13           13      25G   9216     rs      Y14           routed    down       up              N/A         N/A
           0/14           14      25G   9216     rs      Y15           routed    down       up   SFP/SFP+/SFP28         N/A
           0/15           15      25G   9216     rs      Y16           routed    down       up              N/A         N/A
           0/16           16      25G   9216     rs      Y17           routed    down       up   SFP/SFP+/SFP28         N/A
           0/17           17      25G   9216     rs      Y18           routed    down       up              N/A         N/A
           0/18           18      25G   9216     rs      Y19           routed    down       up              N/A         N/A
           0/19           19      25G   9216     rs      Y20           routed    down       up              N/A         N/A
           0/20           20      25G   9216     rs      Y21           routed    down       up              N/A         N/A
           0/21           21      25G   9216     rs      Y22           routed    down       up              N/A         N/A
           0/22           22      25G   9216     rs      Y23           routed    down       up              N/A         N/A
           0/23           23      25G   9216     rs      Y24           routed    down       up              N/A         N/A
           0/24           24      25G   9216     rs      Y25           routed    down       up              N/A         N/A
           0/25           25      25G   9216     rs      Y26           routed      up       up   SFP/SFP+/SFP28         N/A
           0/26           26      25G   9216     rs      Y27           routed    down       up              N/A         N/A
           0/27           27      25G   9216     rs      Y28           routed    down       up              N/A         N/A
           0/28           28      25G   9216     rs      Y29            trunk    down       up              N/A         N/A
           0/29           29      25G   9216     rs      Y30            trunk    down       up              N/A         N/A
           0/30           30      25G   9216     rs      Y31           routed    down       up              N/A         N/A
           0/31           31      25G   9216     rs      Y32           routed    down       up              N/A         N/A
           0/32           32      25G   9216     rs      Y33           routed      up       up   SFP/SFP+/SFP28         N/A
           0/33           33      25G   9216     rs      Y34           routed    down       up              N/A         N/A
           0/34           34      25G   9216     rs      Y35           routed    down       up              N/A         N/A
           0/35           35      25G   9216     rs      Y36           routed    down       up              N/A         N/A
           0/36           36      25G   9216     rs      Y37           routed    down       up              N/A         N/A
           0/37           37      25G   9216     rs      Y38           routed    down       up              N/A         N/A
           0/38           38      25G   9216     rs      Y39           routed    down       up   SFP/SFP+/SFP28         N/A
           0/39           39      25G   9216     rs      Y40           routed    down       up              N/A         N/A
           0/40           40      25G   9216     rs      Y41           routed    down       up              N/A         N/A
           0/41           41      25G   9216     rs      Y42           routed    down       up              N/A         N/A
           0/42           42      25G   9216     rs      Y43           routed    down       up              N/A         N/A
           0/43           43      25G   9216     rs      Y44           routed    down       up              N/A         N/A
           0/44           44      25G   9216     rs      Y45           routed    down       up              N/A         N/A
           0/45           45      25G   9216     rs      Y46           routed    down       up              N/A         N/A
           0/46           46      25G   9216     rs      Y47           routed    down       up              N/A         N/A
           0/47           47      25G   9216     rs      Y48           routed    down       up   SFP/SFP+/SFP28         N/A
           0/48  48,49,50,51     100G   9216     rs       C1           routed      up       up  QSFP28 or later         N/A
           0/52  52,53,54,55     100G   9216     rs       C2            lag99    down       up  QSFP28 or later         N/A
           0/56  56,57,58,59     100G   9216     rs       C3           routed    down       up  QSFP28 or later         N/A
           0/60  64,65,66,67     100G   9216     rs       C4           routed      up       up  QSFP28 or later         N/A
           0/64  68,69,70,71     100G   9216     rs       C5           routed      up       up  QSFP28 or later         N/A
           0/68  72,73,74,75     100G   9216     rs       C6           routed    down       up              N/A         N/A
           0/72  76,77,78,79     100G   9216     rs       C7           routed      up       up  QSFP28 or later         N/A
           0/76  80,81,82,83     100G   9216     rs       C8           routed    down       up              N/A         N/A
           lag1          N/A      25G   9216    N/A      N/A            trunk      up       up              N/A         N/A
          lag99          N/A     100G   9216    N/A      N/A            trunk    down       up              N/A         N/A
```

### <font color="#1d50a2">show \{ip|ipv6\} interfaces</font>

**\[Command]**
**show** \{**ip**|**ipv6**} **interfaces**

**\[Purpose]**
Display IP address configuration of interfaces.

**\[View]**
Privileged User View

**\[Use Cases]**

```plaintext
sonic# show ip interfaces
Interface    Master    IPv4 address/mask    Admin/Oper    BGP Neighbor    Neighbor IP
-----------  --------  -------------------  ------------  --------------  -------------
0/48                   199.0.3.1/24         up/up         N/A             N/A
0/52                   199.0.7.1/24         up/up         N/A             N/A
0/72                   10.72.0.1/24         up/up         N/A             N/A
loopback0              10.1.0.34/32         up/up         N/A             N/A
vlan100      Vrf123    100.100.0.1/24       up/up         N/A             N/A
vlan200      Vrf123    200.200.0.1/24       up/up         N/A             N/A
vlan300      Vrf123    200.230.0.1/24       up/down       N/A             N/A
vlan400                200.240.0.1/24       up/down       N/A             N/A
vlan4094               99.0.0.1/24          up/up         N/A             N/A
mgmt                   10.250.0.138/24      up/up         N/A             N/A
sonic# show ipv6 interfaces
Interface    Master    IPv6 address/mask    Admin/Oper    BGP Neighbor    Neighbor IP
-----------  --------  -------------------  ------------  --------------  -------------
0/48                   2000::1/64           up/up         N/A             N/A
```

### <font color="#1d50a2">show interface \[ethernet *interface\_name*\]</font>

**\[Command]**
**show interface** \[**ethernet** *interface\_name*]

**\[Purpose]**
Display information about the status of interfaces.

**\[Parameters]**

| **Parameter**     | **Description**         |
| ----------------- | ----------------------- |
| *interface\_name* | Interface name (eg.0/1) |

**\[View]**
Privileged User View

**\[Use Cases]**

```plaintext
sonic# show interface ethernet 0/208
0/208       is up, line protocol is up
Hardware is Eth
Mac address is 60:eb:5a:01:34:cf
Interface index is 208
Description is N/A
Mode of IPV4 address assignment: not-set
Mode of IPV6 address assignment: not-set
IP MTU  9216 bytes
LineSpeed 100.0G, Auto-negotiation off
Input statistics:
        421 packets, 108,425 octets
        414 Multicasts, 3 Broadcasts, 4 Unicasts
        0 error, 0 discarded, 2 crc-error
Output statistics:
        1,207,984,068 packets, 154,622,078,263 octets
        454 Multicasts, 5 Broadcasts, 1,207,983,609 Unicasts
        0 error, 3,322 discarded
```

### <font color="#1d50a2">show counters interface \[ethernet *interface\_name*\]</font>

**\[Command]**
**show counters interface** \[**ethernet** *interface\_name*]

**\[Purpose]**
Display statistics of interfaces.

**\[Parameters]**

| **Parameter**     | **Description**         |
| ----------------- | ----------------------- |
| *interface\_name* | Interface name (eg.0/1) |

**\[View]**
Privileged User View

**\[Use Cases]**

```plaintext
sonic# show counters interfaces
          IFACE    STATE    RX_OK    RX_BPS    RX_UTIL    RX_ERR    RX_DRP    RX_OVR    TX_OK    TX_BPS    TX_UTIL    TX_ERR    TX_DRP    TX_OVR
---------------  -------  -------  --------  ---------  --------  --------  --------  -------  --------  ---------  --------  --------  --------
      Ethernet0        D        0       N/A        N/A         0         0         0        0       N/A        N/A         0         0       N/A
      Ethernet1        U        0       N/A        N/A         0         0         0       27       N/A        N/A         0         0       N/A
      Ethernet2        U        0       N/A        N/A         0         0         0       27       N/A        N/A         0         0       N/A
      Ethernet3        U        0       N/A        N/A         0         0         0       35       N/A        N/A         0         0       N/A
      Ethernet4        X        0       N/A        N/A         0         0         0        0       N/A        N/A         0         0       N/A
sonic# show counters interfaces ethernet 0/1
Port: 0/1
  Rx 1024to1518Pkts : 0
  Rx 128-255Pkts : 0
  Rx 1519to2047Pkts : 0
  Rx 2048to4095Pkts : 0
  Rx 256-511Pkts : 0
  Rx 4096to9216Pkts : 0
  Rx 512-1023Pkts : 0
  Rx 64Pkts : 0
  Rx 65-127Pkts : 0
  Rx 9217to16383Pkts : 0
  Rx Bcast : 0
  Rx Bytes : 0
  Rx CRC Alignment : 0
  Rx Err : 0
  Rx Mcast : 0
  Rx Oversize : 0
  Rx Pkts : 0
  Rx Ucast : 0
  Rx UnderSize : 0
  Tx 1024to1518Pkts : 0
  Tx 128-255Pkts : 9032
  Tx 1519to2047Pkts : 0
  Tx 2048to4095Pkts : 0
  Tx 256-511Pkts : 0
  Tx 4096to9216Pkts : 0
  Tx 512-1023Pkts : 0
  Tx 64Pkts : 0
  Tx 65-127Pkts : 51
  Tx 9217to16383Pkts : 0
  Tx Bcast : 0
  Tx Bytes : 1833670
  Tx Err : 0
  Tx Mcast : 9083
  Tx Oversize : 0
  Tx Pkts : 9083
  Tx Ucast : 0
```

### <font color="#1d50a2">show counters rif \[\{ethernet|vlan|link-aggregation\} *interface\_name*\]</font>

**\[Command]**
**show counters rif** \[\{**ethernet**|**vlan**|**link-aggregation**} *interface\_name*]

**\[Purpose]**
Display statistics of Layer 3 ports.

**\[Parameters]**

| **Parameter**     | **Description**         |
| ----------------- | ----------------------- |
| *interface\_name* | Interface name (eg.0/1) |

**\[View]**
Privileged User View

**\[Use Cases]**

```plaintext
sonic# show counters rif
      IFACE    RX_OK    RX_BPS    RX_PPS    RX_ERR    TX_OK    TX_BPS    TX_PPS    TX_ERR
-----------  -------  --------  --------  --------  -------  --------  --------  --------
  0/1            N/A       N/A       N/A       N/A      N/A       N/A       N/A       N/A
0/1.1            N/A       N/A       N/A       N/A      N/A       N/A       N/A       N/A
 0/48            N/A       N/A       N/A       N/A      N/A       N/A       N/A       N/A
```

### <font color="#1d50a2">clear counters \{interface|rif\}</font>

**\[Command]**
**clear counters** \{**interface**|**rif**}

**\[Purpose]**
Clear the counters.

**\[Parameters]**

| **Parameter** | **Description**                      |
| ------------- | ------------------------------------ |
| **interface** | Clear counters of all interfaces.    |
| **rif**       | Clear counters of router interfaces. |

**\[View]**
Privileged User View

**\[Use Cases]**

```plaintext
sonic# clear counters interface
Cleared counters
```

### <font color="#1d50a2">show link-delay</font>

**\[Command]**
**show link-delay**

**\[Purpose]**
Display interface linkup delay configuration.

**\[View]**
Privileged User View

**\[Use Cases]**

```plaintext
sonic# show link-delay
Port up delay : 5
```

### <font color="#1d50a2">show port-isolate summary</font>

**\[Command]**
**show port-isolate summary**

**\[Purpose]**
Display the port isolation group configuration.

**\[View]**
Privileged User View

**\[Use Cases]**

```plaintext
sonic# show port-isolate summary
+----------------+--------+-----------------------+-----------------------+
| Isolate Name   | Type   | Isolated from         | Isolated to           |
+================+========+=======================+=======================+
| test1          | port   | 0/42      ,0/40       | 0/42      ,0/40       |
+----------------+--------+-----------------------+-----------------------+
```

### <font color="#1d50a2">show interface startup\_delay</font>

**\[Command]**
**show interface startup\_delay**

**\[Purpose]**
Display the delayed startup time configuration of ports.

**\[View]**
Privileged User View

**\[Use Cases]**

```plaintext
sonic# show interface startup_delay
       Port    start up delay time
-----------  ---------------------
  0/0                          150
  0/4                          150
  0/8                          150
 0/12                          150
 0/16                          150
 0/20                          150
 0/24                          150
 0/28                          150
 0/32                          150
 0/36                          150
 0/40                          150
 0/44                          150
 0/48                          150
 ......
```

## <font color="#1d50a2">Interface Status Config</font>

<font color="#1d05a2">Table 3 Interfaces Status Config</font>

| **Command**                                                                                                        | **Purpose**                                                                 |
| ------------------------------------------------------------------------------------------------------------------ | --------------------------------------------------------------------------- |
| **interface ethernet** *interface\_name*                                                                           | Enter Physical Interface Configuration View.                                |
| **shutdown**                                                                                                       | Bring the interface down administratively.                                  |
| **speed** *speed*                                                                                                  | Set the speed for physical interfaces.                                      |
| **autoneg**                                                                                                        | Enable autonegotiation of interfaces.                                       |
| **advertised-speeds** \{*speed*\|**all**}                                                                          | Configure autonegotiation of interfaces speed.                              |
| **ip address** \{*A.B.C.D/M\|A\::B/M*} \[**secondary**]                                                            | Configure IP address for the interface.                                     |
| **fec** \{**fc**\|**rs**}                                                                                          | Set FEC mode of interfaces.                                                 |
| **mtu** *mtu*                                                                                                      | Configure the MTU value on an interface.                                    |
| **description** *description*                                                                                      | Specify the description for the interface.                                  |
| **mac\_address** *HH\:HH\:HH\:HH\:HH\:HH*                                                                          | Specify a MAC address to the Layer 3 interface.                             |
| **mac-address learning**                                                                                           | Enable MAC learning for the interface.                                      |
| **switchport**                                                                                                     | Change a Layer 3 interface into a Layer 2 interface.                        |
| **switchport** \{**trunk**\|**access**} **vlan** *vlan-id*                                                         | Add the interface to a vlan.                                                |
| **switchport range vlan** *min-id* *max-id*                                                                        | Add the interface to bulk VLANs.                                            |
| **link-delay up** *delay-time*                                                                                     | Set a delay time for interface state from down to up.                       |
| **monitor-link** *group-name* \{**uplink\|downlink**}                                                              | Configure uplink and downlink.                                              |
| **breakout \{4x25G\[10G]\|4x50G\[10G]\|2x200G\[100G]\|4x100G\[50G]\|2x100G\[50G]\|4x200G\[100G]\| 2x400G\[200G]}** | Split high bandwidth ports into four low speed ports.                       |
| **startup-delay** *delay-time*                                                                                     | Set a delay time for interface state from down to up during system startup. |
| **port-isolate enable** *isloate-group-name*                                                                       | Create a port isolation group.                                              |
| **loopback-pkt-drop**                                                                                              | Enable the loopback packets not forwarding feature.                         |
| **ipv6 use-link-local**                                                                                            | Enable the IPv6 link local address function of the interface                |

### <font color="#1d50a2">interface ethernet *interface\_name*</font>

**\[Command]**
**interface ethernet** *interface\_name*

**\[Purpose]**
Enter Physical Interface Configuration View.

**\[Parameters]**

| **Parameter**     | **Description**         |
| ----------------- | ----------------------- |
| *interface\_name* | Interface name (eg.0/1) |

**\[View]**
Global Configuration View

**\[Use Cases]**

```plaintext
sonic# configure terminal
sonic(config)# interface ethernet 0/1
sonic(config-if-0/1)# show this
!
interface ethernet 0/1
```

### <font color="#1d50a2">shutdown</font>

**\[Command]**
**shutdown**

**\[Purpose]**
Bring the interface down administratively.

**\[View]**
Physical Interface Configuration View

**\[Notes]**
Run command **no shutdown** to bring the interface up administratively.

**\[Use Cases]**

```plaintext
sonic# configure terminal
sonic(config)# interface ethernet 0/1
sonic(config-if-0/1)# shutdown
sonic(config-if-0/1)# show this
!
interface ethernet 0/1
shutdown
```

### <font color="#1d50a2">speed *speed*</font>

**\[Command]**
**speed** *speed*

**\[Purpose]**
Set the speed for physical interfaces.

**\[Parameters]**

| **Parameter** | **Description**                                                                                                                                                                    |
| ------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| *speed*       | The speed is in Mbit. **1000/10000/25000/25000-R1/40000/50000-R1/50000-R2/100000/100000-R1/100000-R2/200000/200000-R2/200000-R4/400000/400000-R4/400000-R8/800000** are available. |

**\[View]**
Physical Interface Configuration View

**\[Notes]**
When modifying the speed, if it does not match current FEC mode, system will give a prompt that you need to modify the FEC mode first.
The FEC mode support for different speeds is as follows:
1GE/10GE interfaces do not support FEC, 25GE/100GE interfaces support **fc** and **rs** modes, and 40GE interfaces only support **fc** mode, 200GE/400GE interfaces only support **rs** mode.
**100000-R2** means 100G rate mode for two lanes, which only supported by CX732Q-N and CX864E-N.
The **25000-R1/50000-R1/50000-R2/100000-R1/100000-R4/200000-R2/200000-R4/400000-R4/400000-R8/800000** rate modes are only supported on CX864E-N for configuration.

**\[Use Cases]**

```plaintext
sonic# configure terminal
sonic(config)# interface ethernet 0/1
sonic(config-if-0/1)# speed 10000
sonic(config-if-0/1)# show this
!
interface ethernet 0/1
 speed 10000
```

### <font color="#1d50a2">autoneg</font>

**\[Command]**
**autoneg**

**\[Purpose]**
Enable autonegotiation of interfaces.

**\[View]**
Physical Interface Configuration View

**\[Notes]**
Run command **no autoneg** to disable autonegotiation.

**\[Use Cases]**

```plaintext
sonic# configure terminal
sonic(config)# interface ethernet 0/2
sonic(config-if-0/1)# autoneg
sonic(config-if-0/1)# show this
!
interface ethernet 0/2
autoneg
```

### <font color="#1d50a2">advertised-speeds \{*speed*|all\}</font>

**\[Command]**
**advertised-speeds** \{*speed*|**all**}

**\[Purpose]**
Configure autonegotiation of interfaces rate.

**\[Parameters]**

| **Parameter** | **Description**                            |
| ------------- | ------------------------------------------ |
| *speed*       | Specify autonegotiation of interfaces rate |
| **all**       | All speeds supported by the interface      |

**\[View]**
Physical Interface Configuration View

**\[Notes]**
After configuring autonegotiation of interfaces rate, run command **no autoneg** and **autoneg** commands to take effect.
Run command **no advertised-speeds** to delete autonegotiation of interfaces rate.

**\[Use Cases]**

```plaintext
sonic# configure terminal
sonic(config)# interface ethernet 0/2
sonic(config-if-0/2)# advertised-speeds 40000
Notice: advertised_speed is set success, please operate autoneg off and on to enable advertised_speed become effective
```

### <font color="#1d50a2">ip address \{*A.B.C.D/M*|*A\:\:B/M*\} \[secondary\]</font>

**\[Command]**
**ip address** \{*A.B.C.D/M*|*A\::B/M*} \[**secondary**]

**\[Purpose]**
Configure IP address for the interface.

**\[Parameters]**

| **Parameter** | **Description**                                                                                                                                                          |
| ------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| *A.B.C.D/M*   | IPv4 address with prefix length.                                                                                                                                         |
| *A\::B/M*     | IPv6 address with prefix length.                                                                                                                                         |
| **secondary** | The default is Primary IP, specifying this option means configuring as Secondary IP, which requires that the Secondary IP and Primary IP be in the same network segment. |

**\[View]**
Physical Interface Configuration View

**\[Notes]**
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.
Run command **no ip address** \{*A.B.C.D/M*|*A\::B/M*} \[**secondary**] to delete IP address configuration.

**\[Use Cases]**

```plaintext
sonic# configure terminal
sonic(config)# interface ethernet 0/2
sonic(config-if-0/1)# ip address 3.3.3.6/24
sonic(config-if-0/1)# show this
!
interface ethernet 0/2
ip address 3.3.3.6/24
```

### <font color="#1d50a2">fec \{fc|rs\}</font>

**\[Command]**
**fec** \{**fc**|**rs**}

**\[Purpose]**
Set FEC mode of interfaces.

**\[View]**
Physical Interface Configuration View

**\[Notes]**
1GE/10GE ports do not support FEC, 25GE/100GE ports support **fc** and **rs** modes. 40GE ports on CX308P-48Y-N-V2 support **fc** mode, and other models do not support FEC, 200G/400G/800G interfaces only support rs mode, 400G interface on CX732Q-N and CX732Q-N-V2 supports disabling FEC after slowing down to 100G rate.
Run command **no fec** to disable FEC.

**\[Use Cases]**

```plaintext
sonic# configure terminal
sonic(config)# interface ethernet 0/1
sonic(config-if-0/1)# fec rs
```

### <font color="#1d50a2">mtu *mtu*</font>

**\[Command]**
**mtu** *mtu*

**\[Purpose]**
Configure the MTU value on an interface.

**\[Parameters]**

| **Parameter** | **Description**                                            |
| ------------- | ---------------------------------------------------------- |
| *mtu*         | Maximum Transmission Unit, the range is from 1312 to 9216. |

**\[View]**
Physical Interface Configuration View

**\[Notes]**
The default is 9216 Bytes.

**\[Use Cases]**

```plaintext
sonic# configure terminal
sonic(config)# interface ethernet 0/1
sonic(config-if-0/1)# mtu 1518
sonic(config-if-0/1)# show this
!
interface ethernet 0/1
 mtu 1518
```

### <font color="#1d50a2">description *description*</font>

**\[Command]**
**description** *description*

**\[Purpose]**
Specify the description for the interface.

**\[Parameters]**

| **Parameter** | **Description** |
| ------------- | --------------- |
| *description* | In string form. |

**\[View]**
Physical Interface Configuration View

**\[Notes]**
Run command **no description** to delete description.

**\[Use Cases]**

```plaintext
sonic# configure terminal
sonic(config)# interface ethernet 0/1
sonic(config-if-0/1)# description abc
sonic(config-if-0/1)# show this
!
interface ethernet 0/1
 description abc
```

### <font color="#1d50a2">mac\_address *HH\:HH\:HH\:HH\:HH\:HH*</font>

**\[Command]**
**mac\_address** *HH\:HH\:HH\:HH\:HH\:HH*

**\[Purpose]**
Specify a MAC address to the Layer 3 interface.

**\[Parameters]**

| **Parameter**            | **Description**                  |
| ------------------------ | -------------------------------- |
| *HH\:HH\:HH\:HH\:HH\:HH* | MAC address, not case sensitive. |

**\[View]**
Physical Interface Configuration View

**\[Notes]**
The default is the MAC of the switch;
Run command **no mac\_address** to restore the MAC of the Layer 3 interface to default.

**\[Use Cases]**

```plaintext
sonic# configure terminal
sonic(config)# interface ethernet 0/2
sonic(config-if-0/2)# mac-address 18:17:25:37:67:af
sonic(config-if-0/2)# show this
!
interface ethernet 0/2
 mac-address 18:17:25:37:67:af
```

### <font color="#1d50a2">mac-address learning</font>

**\[Command]**
**mac-address learning**

**\[Purpose]**
Enable MAC learning for the interface.

**\[View]**
Physical Interface Configuration View

**\[Notes]**
The interface to be operated should be added to a VLAN.
MAC learning is enabled by default.
Run command **no mac-address learning** to disable MAC learning for the interface.

**\[Use Cases]**

```plaintext
sonic#  configure terminal
sonic(config)# interface ethernet 0/2
sonic(config-if-0/2)# no mac-address learning
sonic(config-if-0/2)# show this
!
interface ethernet 0/2
 no mac-address learning
```

### <font color="#1d50a2">switchport</font>

**\[Command]**
**switchport**

**\[Purpose]**
Change a Layer 3 interface into a Layer 2 interface.

**\[View]**
Physical Interface Configuration View

**\[Notes]**
Run command **no switchport** to change a Layer 2 interface into a Layer 3 interface.

**\[Use Cases]**

```plaintext
sonic# configure terminal
sonic(config)# interface ethernet 0/2
sonic(config-if-0/2)# switchport
sonic(config-if-0/2)# show this
!
interface ethernet 0/2
switchport
sonic(config-if-0/2)# no switchport
sonic(config-if-0/2)# show this
!
interface ethernet 0/2
```

### <font color="#1d50a2">switchport \{trunk|access\} vlan *vlan-id*</font>

**\[Command]**
**switchport** \{**trunk**|**access**} **vlan** *vlan-id*

**\[Purpose]**
Add the interface to a vlan.

**\[Parameters]**

| **Parameter** | **Description**                  |
| ------------- | -------------------------------- |
| **access**    | Add to VLAN as untagged.         |
| **trunk**     | Add to VLAN as tagged.           |
| *vlan-id*     | VLAN ID, the range is \[1,4094]. |

**\[View]**
Physical Interface Configuration View

**\[Notes]**
An interface can only be added to one VLAN as untagged, but it can be added to multiple VLANs as tagged. The VLAN ID of the untagged VLAN will be set as PVID of the interface;
Run command **no switchport vlan** *vlan-id* to remove the interface from specified VLAN;
Run command **no switchport** to remove the interface from all VLANs and change to Layer 3 port.

**\[Use Cases]**

```plaintext
sonic# configure terminal
sonic(config)# interface ethernet 0/0
sonic(config-if-0/0)# switchport access vlan 300
sonic(config-if-0/0)# show this
!
interface ethernet 0/0
  switchport access vlan 300
```

### <font color="#1d50a2">switchport range vlan *min-id* *max-id*</font>

**\[Command]**
**switchport range vlan** *min-id max-id*

**\[Purpose]**
Add the interface to bulk VLANs.

**\[Parameters]**

| **Parameter** | **Description**                           |
| ------------- | ----------------------------------------- |
| *min-id*      | Starting VLAN ID, the range is \[1,4094]. |
| *max-id*      | Ending VLAN ID, the range is \[1,4094].   |

**\[View]**
Physical Interface Configuration View/LAGIF Configuration View

**\[Notes]**
Run command **no switchport vlan range** *min-id max-id* to remove the interface from bulk VLANs.

**\[Use Cases]**

```plaintext
sonic# configure terminal
sonic(config)# vlan range 10 20
sonic(config)# interface ethernet 0/4
sonic(config-if-0/4)# switchport range vlan 10 20
```

### <font color="#1d50a2">link-delay up *delay-time*</font>

**\[Command]**
**link-delay up** *delay-time*

**\[Purpose]**
Set a delay time for interface state from down to up.

**\[Parameters]**

| **Parameter** | **Description**                                                                               |
| ------------- | --------------------------------------------------------------------------------------------- |
| *delay-time*  | The delay time is in seconds and takes the value in the range 0 or \[2-10]. The default is 0. |

**\[View]**
Global Configuration View

**\[Notes]**
The purpose is that when the operation status of an interface goes from down to up, the interface will go through a delay time before going up again.
This function is disabled on interfaces by default.

**\[Use Cases]**

```plaintext
sonic# configure terminal
sonic(config)# link-delay up 2
```

### <font color="#1d50a2">monitor-link *group-name* \{uplink|downlink\}</font>

**\[Command]**
**monitor-link** *group-name* **\{uplink|downlink}**

**\[Purpose]**
Configure uplink and downlink.

**\[Parameters]**

| **Parameter** | **Description**                      |
| ------------- | ------------------------------------ |
| *group-name*  | Specify the monitor-link group name. |

**\[View]**
Physical Interface Configuration View

**\[Notes]**
Run command **no monitor-link** *group-name* to delete monitor-link interface configuration.

**\[Use Cases]**

```plaintext
sonic# configure terminal
sonic(config)# interface ethernet 0/0
sonic(config-if-0/0)# monitor-link test downlink
```

### <font color="#1d50a2">breakout \{4x25G\[10G\]|4x50G\[10G\]|2x200G\[100G\]|4x100G\[50G\]|2x100G\[50G\]|4x200G\[100G\]| 2x400G\[200G\]\}</font>

**\[Command]**
**breakout \{4x25G\[10G]|4x50G\[10G]|2x200G\[100G]|4x100G\[50G]|2x100G\[50G]|4x200G\[100G]|2x400G\[200G]}**

**\[Purpose]**
Split high bandwidth ports into four low speed ports.

**\[Parameters]**

| **Parameter**     | **Description**                                                    |
| ----------------- | ------------------------------------------------------------------ |
| **4x25G\[10G]**   | Split into four 25G ports, supported on 100GE, 200GE, 400GE ports. |
| **4x50G\[10G]**   | Split into four 50G ports, supported on 200GE ports.               |
| **2x200G\[100G]** | Split into two 200G ports, supported on 400GE ports.               |
| **4x100G\[50G]**  | Split into four 100G ports, supported on 400GE ports.              |
| **2x100G\[50G]**  | Split into two 50G ports, supported on 200GE ports.                |
| **4x200G\[100G]** | Split into four 200G ports, supported on 800GE ports.              |
| **2x400G\[200G]** | Split into two 400G ports, supported on 800GE ports.               |

**\[View]**
Physical Interface Configuration View

**\[Notes]**
Please delete the configuration related to this interface before breakout. The system will give a prompt after the breakout is successful.
Run command **no breakout** undoes the breakout configuration.

**\[Use Cases]**

```plaintext
sonic# configure terminal
sonic(config)# interface ethernet 0/0
sonic(config-if-0/0)# breakout 4x25G[10G]
Start to breakout. Do not interrupt the breakout; otherwise, the configuration may be abnormal!
Breakout process got successfully completed.
Please note loaded setting will be lost after system reboot. To preserve setting, run write.
```

### <font color="#1d50a2">startup-delay *delay-time*</font>

**\[Command]**
**startup-delay** *delay-time*

**\[Purpose]**
Set a delay time for interface state from down to up during system startup.

**\[Parameters]**

| **Parameter** | **Description**                                                      |
| ------------- | -------------------------------------------------------------------- |
| *delay-time*  | The delay time is in seconds and takes the range is from 1 to 65535. |

**\[View]**
Physical Interface Configuration View

**\[Notes]**
Run command **no startup-delay** to delete interface startup-delay configuration.

**\[Use Cases]**

```plaintext
sonic# configure terminal
sonic(config)# interface ethernet 0/0
sonic(config-if-0/0)# startup-delay 150
```

### <font color="#1d50a2">port-isolate enable *isloate-group-name*</font>

**\[Command]**
**port-isolate enable** *isloate-group-name*

**\[Purpose]**
Create a port isolation group.

**\[Parameters]**

| **Parameter**        | **Description**            |
| -------------------- | -------------------------- |
| *isloate-group-name* | Port isolation group name. |

**\[View]**
Physical Interface Configuration View

**\[Notes]**
Currently only supported on CX308P-48Y-N-V2 and CX532P-N-V2.
The ports in the isolation group are bi-directionally isolated.
Run command **no port-isolate enable** to delete the port isolation group.

**\[Use Cases]**

```plaintext
sonic# configure terminal
sonic(config)# interface ethernet 0/42
sonic(config-if-0/42)# port-isolate enable test1
sonic(config-if-0/42)# show this
!
interface ethernet 0/42
 fec rs
 mtu 9216
 port-isolate enable test1
 speed 25000
```

### <font color="#1d50a2">loopback-pkt-drop</font>

**\[Command]**
**loopback-pkt-drop**

**\[Purpose]**
Enable the loopback packets not forwarding feature.

**\[View]**
Physical Interface Configuration View

**\[Notes]**
Currently not supported on CX308P-48Y-N-V2, CX532P-N-V2 and CX732Q-N-V2.

**\[Use Cases]**

```plaintext
sonic# configure terminal
sonic(config)# interface ethernet 0/0
sonic(config-if-0/0)# loopback-pkt-drop
```

### <font color="#1d50a2">ipv6 use-link-local</font>

**\[Command]**
**ipv6 use-link-local**

**\[Purpose]**
Enable the IPv6 link local address function of the interface.

**\[View]**
Physical Interface Configuration View

**\[Notes]**
Setting an IPv6 address will automatically enable this feature.
Run command **no ipv6 use-link-local** to disable this feature.

**\[Use Cases]**

```plaintext
sonic# configure terminal
sonic(config)# interface ethernet 0/0
sonic(config-if-0/0)# ipv6 use-link-local
```

# CRC

<font color="#1d05a2">Table 4 CRC Config</font>

| **Command**                              | **Purpose**                               |
| ---------------------------------------- | ----------------------------------------- |
| **crc-check enable**                     | Enable CRC error packets detection.       |
| **crc-check threshold** *interval count* | Set the threshold of CRC error detection. |

### <font color="#1d50a2">crc-check enable</font>

**\[Command]**
**crc-check enable**

**\[Purpose]**
Enable CRC error packets detection.

**\[View]**
Global Configuration View

**\[Notes]**
Run command **no crc-check enable** to disable CRC error packets detection.

**\[Use Cases]**

```plaintext
sonic(config)# crc-check enable
Created symlink /etc/systemd/system/sonic.target.wants/counterscheckmgrd.service/lib/systemd/system/counterscheckmgrd.service.
sonic(config)# no crc-check enable
Removed /etc/systemd/system/sonic.target.wants/counterscheckmgrd.service.
```

### <font color="#1d50a2">crc-check threshold *interval count*</font>

**\[Command]**
**crc-check threshold** *interval count*

**\[Purpose]**
Set the threshold of CRC error detection.

**\[Parameters]**

| **Parameter** | **Description**                                                                                  |
| ------------- | ------------------------------------------------------------------------------------------------ |
| *interval*    | Set the interval in seconds, the range is 2\~60, the default value is 10.                        |
| *count*       | Set the maximum count of CRC error packets in the range of \[1,65535], the default value is 100. |

**\[View]**
Global Configuration View

**\[Notes]**
If the number of CRC error packets during the interval time exceeds the count number, the threshold is considered to be exceeded.
When the received CRC error packets exceed the threshold, the system will automatically set the interface to errdown.

**\[Use Cases]**

```plaintext
sonic(config)# crc-check threshold 10 100
```

