跳转到内容
Ask AI

Interface Management

此内容尚不支持你的语言。

Table 1 Interface Attribute Information View

CommandPurpose
show interface descriptionDisplay description of interfaces.

[Command]

show interface description

[Purpose]

Display description of interfaces.

[View]

Privileged User View

[Use Cases]

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

Table 2 Interface Status View

CommandPurpose
show interface summaryDisplay summary information about the status of interfaces.
show {ip|ipv6} interfacesDisplay 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-delayDisplay interface linkup delay configuration.
show port-isolate summaryDisplay the port isolation group configuration.
show interface startup_delayDisplay the delayed startup time configuration of ports.

[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]

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

[Command]

show {ip|ipv6} interfaces

[Purpose]

Display IP address configuration of interfaces.

[View]

Privileged User View

[Use Cases]

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

[Command]

show interface [ethernet interface_name]

[Purpose]

Display information about the status of interfaces.

[Parameters]

ParameterDescription
interface_nameInterface name (eg.0/1)

[View]

Privileged User View

[Use Cases]

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

show counters interface [ethernet interface_name]

Section titled “show counters interface [ethernet interface_name]”

[Command]

show counters interface [ethernet interface_name]

[Purpose]

Display statistics of interfaces.

[Parameters]

ParameterDescription
interface_nameInterface name (eg.0/1)

[View]

Privileged User View

[Use Cases]

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
Section titled “show counters rif [{ethernet|vlan|link-aggregation} interface_name]”

[Command]

show counters rif [{ethernet|vlan|link-aggregation} interface_name]

[Purpose]

Display statistics of Layer 3 ports.

[Parameters]

ParameterDescription
interface_nameInterface name (eg.0/1)

[View]

Privileged User View

[Use Cases]

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

[Command]

clear counters {interface|rif}

[Purpose]

Clear the counters.

[Parameters]

ParameterDescription
interfaceClear counters of all interfaces.
rifClear counters of router interfaces.

[View]

Privileged User View

[Use Cases]

sonic# clear counters interface
Cleared counters

[Command]

show link-delay

[Purpose]

Display interface linkup delay configuration.

[View]

Privileged User View

[Use Cases]

sonic# show link-delay
Port up delay : 5

[Command]

show port-isolate summary

[Purpose]

Display the port isolation group configuration.

[View]

Privileged User View

[Use Cases]

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

[Command]

show interface startup_delay

[Purpose]

Display the delayed startup time configuration of ports.

[View]

Privileged User View

[Use Cases]

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
......

Table 3 Interfaces Status Config

CommandPurpose
interface ethernet interface_nameEnter Physical Interface Configuration View.
shutdownBring the interface down administratively.
speed speedSet the speed for physical interfaces.
autonegEnable 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 mtuConfigure the MTU value on an interface.
description descriptionSpecify the description for the interface.
mac_address HH:HH:HH:HH:HH:HHSpecify a MAC address to the Layer 3 interface.
mac-address learningEnable MAC learning for the interface.
switchportChange a Layer 3 interface into a Layer 2 interface.
switchport {trunk|access} vlan vlan-idAdd the interface to a vlan.
switchport range vlan min-id max-idAdd the interface to bulk VLANs.
link-delay up delay-timeSet 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-timeSet a delay time for interface state from down to up during system startup.
port-isolate enable isloate-group-nameCreate a port isolation group.
loopback-pkt-dropEnable the loopback packets not forwarding feature.
ipv6 use-link-localEnable the IPv6 link local address function of the interface

[Command]

interface ethernet interface_name

[Purpose]

Enter Physical Interface Configuration View.

[Parameters]

ParameterDescription
interface_nameInterface name (eg.0/1)

[View]

Global Configuration View

[Use Cases]

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

[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]

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

[Command]

speed speed

[Purpose]

Set the speed for physical interfaces.

[Parameters]

ParameterDescription
speedThe 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]

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

[Command]

autoneg

[Purpose]

Enable autonegotiation of interfaces.

[View]

Physical Interface Configuration View

[Notes]

Run command no autoneg to disable autonegotiation.

[Use Cases]

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

[Command]

advertised-speeds {speed|all}

[Purpose]

Configure autonegotiation of interfaces rate.

[Parameters]

ParameterDescription
speedSpecify autonegotiation of interfaces rate
allAll 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]

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

[Command]

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

[Purpose]

Configure IP address for the interface.

[Parameters]

ParameterDescription
A.B.C.D/MIPv4 address with prefix length.
A::B/MIPv6 address with prefix length.
secondaryThe 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]

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

[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]

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

[Command]

mtu mtu

[Purpose]

Configure the MTU value on an interface.

[Parameters]

ParameterDescription
mtuMaximum Transmission Unit, the range is from 1312 to 9216.

[View]

Physical Interface Configuration View

[Notes]

The default is 9216 Bytes.

[Use Cases]

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

[Command]

description description

[Purpose]

Specify the description for the interface.

[Parameters]

ParameterDescription
descriptionIn string form.

[View]

Physical Interface Configuration View

[Notes]

Run command no description to delete description.

[Use Cases]

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

[Command]

mac_address HH:HH:HH:HH:HH:HH

[Purpose]

Specify a MAC address to the Layer 3 interface.

[Parameters]

ParameterDescription
HH:HH:HH:HH:HH:HHMAC 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]

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

[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]

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

[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]

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

[Command]

switchport {trunk|access} vlan vlan-id

[Purpose]

Add the interface to a vlan.

[Parameters]

ParameterDescription
accessAdd to VLAN as untagged.
trunkAdd to VLAN as tagged.
vlan-idVLAN 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]

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

[Command]

switchport range vlan min-id max-id

[Purpose]

Add the interface to bulk VLANs.

[Parameters]

ParameterDescription
min-idStarting VLAN ID, the range is [1,4094].
max-idEnding 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]

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

[Command]

link-delay up delay-time

[Purpose]

Set a delay time for interface state from down to up.

[Parameters]

ParameterDescription
delay-timeThe 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]

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

[Command]

monitor-link group-name {uplink|downlink}

[Purpose]

Configure uplink and downlink.

[Parameters]

ParameterDescription
group-nameSpecify 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]

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

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

Section titled “breakout {4x25G[10G]|4x50G[10G]|2x200G[100G]|4x100G[50G]|2x100G[50G]|4x200G[100G]| 2x400G[200G]}”

[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]

ParameterDescription
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]

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.

[Command]

startup-delay delay-time

[Purpose]

Set a delay time for interface state from down to up during system startup.

[Parameters]

ParameterDescription
delay-timeThe 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]

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

[Command]

port-isolate enable isloate-group-name

[Purpose]

Create a port isolation group.

[Parameters]

ParameterDescription
isloate-group-namePort 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]

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

[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]

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

[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]

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

Table 4 CRC Config

CommandPurpose
crc-check enableEnable CRC error packets detection.
crc-check threshold interval countSet the threshold of CRC error detection.

[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]

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.

[Command]

crc-check threshold interval count

[Purpose]

Set the threshold of CRC error detection.

[Parameters]

ParameterDescription
intervalSet the interval in seconds, the range is 2~60, the default value is 10.
countSet 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]

sonic(config)# crc-check threshold 10 100