Interface Management
此内容尚不支持你的语言。
Interface Attribute Information
Section titled “Interface Attribute Information”Table 1 Interface Attribute Information View
| Command | Purpose |
|---|---|
| show interface description | Display description of interfaces. |
show interface description
Section titled “show interface description”[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/AInterface Status
Section titled “Interface Status”Interface Status View
Section titled “Interface Status View”Table 2 Interface Status View
| 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. |
show interface summary
Section titled “show interface summary”[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/Ashow {ip|ipv6} interfaces
Section titled “show {ip|ipv6} interfaces”[Command]
show {ip|ipv6} interfaces
[Purpose]
Display IP address configuration of interfaces.
[View]
Privileged User View
[Use Cases]
sonic# show ip interfacesInterface Master IPv4 address/mask Admin/Oper BGP Neighbor Neighbor IP----------- -------- ------------------- ------------ -------------- -------------0/48 199.0.3.1/24 up/up N/A N/A0/52 199.0.7.1/24 up/up N/A N/A0/72 10.72.0.1/24 up/up N/A N/Aloopback0 10.1.0.34/32 up/up N/A N/Avlan100 Vrf123 100.100.0.1/24 up/up N/A N/Avlan200 Vrf123 200.200.0.1/24 up/up N/A N/Avlan300 Vrf123 200.230.0.1/24 up/down N/A N/Avlan400 200.240.0.1/24 up/down N/A N/Avlan4094 99.0.0.1/24 up/up N/A N/Amgmt 10.250.0.138/24 up/up N/A N/Asonic# show ipv6 interfacesInterface Master IPv6 address/mask Admin/Oper BGP Neighbor Neighbor IP----------- -------- ------------------- ------------ -------------- -------------0/48 2000::1/64 up/up N/A N/Ashow interface [ethernet interface_name]
Section titled “show interface [ethernet interface_name]”[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]
sonic# show interface ethernet 0/2080/208 is up, line protocol is upHardware is EthMac address is 60:eb:5a:01:34:cfInterface index is 208Description is N/AMode of IPV4 address assignment: not-setMode of IPV6 address assignment: not-setIP MTU 9216 bytesLineSpeed 100.0G, Auto-negotiation offInput statistics: 421 packets, 108,425 octets 414 Multicasts, 3 Broadcasts, 4 Unicasts 0 error, 0 discarded, 2 crc-errorOutput statistics: 1,207,984,068 packets, 154,622,078,263 octets 454 Multicasts, 5 Broadcasts, 1,207,983,609 Unicasts 0 error, 3,322 discardedshow 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]
| Parameter | Description |
|---|---|
| interface_name | Interface 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/Asonic# show counters interfaces ethernet 0/1Port: 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 : 0show counters rif [{ethernet|vlan|link-aggregation} interface_name]
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]
| Parameter | Description |
|---|---|
| interface_name | Interface 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/A0/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/Aclear counters {interface|rif}
Section titled “clear counters {interface|rif}”[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]
sonic# clear counters interfaceCleared countersshow link-delay
Section titled “show link-delay”[Command]
show link-delay
[Purpose]
Display interface linkup delay configuration.
[View]
Privileged User View
[Use Cases]
sonic# show link-delayPort up delay : 5show port-isolate summary
Section titled “show port-isolate summary”[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 |+----------------+--------+-----------------------+-----------------------+show interface startup_delay
Section titled “show interface startup_delay”[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 ......Interface Status Config
Section titled “Interface Status Config”Table 3 Interfaces Status Config
| 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 |
interface ethernet interface_name
Section titled “interface ethernet interface_name”[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]
sonic# configure terminalsonic(config)# interface ethernet 0/1sonic(config-if-0/1)# show this!interface ethernet 0/1shutdown
Section titled “shutdown”[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 terminalsonic(config)# interface ethernet 0/1sonic(config-if-0/1)# shutdownsonic(config-if-0/1)# show this!interface ethernet 0/1shutdownspeed speed
Section titled “speed speed”[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]
sonic# configure terminalsonic(config)# interface ethernet 0/1sonic(config-if-0/1)# speed 10000sonic(config-if-0/1)# show this!interface ethernet 0/1 speed 10000autoneg
Section titled “autoneg”[Command]
autoneg
[Purpose]
Enable autonegotiation of interfaces.
[View]
Physical Interface Configuration View
[Notes]
Run command no autoneg to disable autonegotiation.
[Use Cases]
sonic# configure terminalsonic(config)# interface ethernet 0/2sonic(config-if-0/1)# autonegsonic(config-if-0/1)# show this!interface ethernet 0/2autonegadvertised-speeds {speed|all}
Section titled “advertised-speeds {speed|all}”[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]
sonic# configure terminalsonic(config)# interface ethernet 0/2sonic(config-if-0/2)# advertised-speeds 40000Notice: advertised_speed is set success, please operate autoneg off and on to enable advertised_speed become effectiveip address {A.B.C.D/M|A::B/M} [secondary]
Section titled “ip address {A.B.C.D/M|A::B/M} [secondary]”[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]
sonic# configure terminalsonic(config)# interface ethernet 0/2sonic(config-if-0/1)# ip address 3.3.3.6/24sonic(config-if-0/1)# show this!interface ethernet 0/2ip address 3.3.3.6/24fec {fc|rs}
Section titled “fec {fc|rs}”[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 terminalsonic(config)# interface ethernet 0/1sonic(config-if-0/1)# fec rsmtu mtu
Section titled “mtu mtu”[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]
sonic# configure terminalsonic(config)# interface ethernet 0/1sonic(config-if-0/1)# mtu 1518sonic(config-if-0/1)# show this!interface ethernet 0/1 mtu 1518description description
Section titled “description description”[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]
sonic# configure terminalsonic(config)# interface ethernet 0/1sonic(config-if-0/1)# description abcsonic(config-if-0/1)# show this!interface ethernet 0/1 description abcmac_address HH:HH:HH:HH:HH:HH
Section titled “mac_address HH:HH:HH:HH:HH:HH”[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]
sonic# configure terminalsonic(config)# interface ethernet 0/2sonic(config-if-0/2)# mac-address 18:17:25:37:67:afsonic(config-if-0/2)# show this!interface ethernet 0/2 mac-address 18:17:25:37:67:afmac-address learning
Section titled “mac-address learning”[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 terminalsonic(config)# interface ethernet 0/2sonic(config-if-0/2)# no mac-address learningsonic(config-if-0/2)# show this!interface ethernet 0/2 no mac-address learningswitchport
Section titled “switchport”[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 terminalsonic(config)# interface ethernet 0/2sonic(config-if-0/2)# switchportsonic(config-if-0/2)# show this!interface ethernet 0/2switchportsonic(config-if-0/2)# no switchportsonic(config-if-0/2)# show this!interface ethernet 0/2switchport {trunk|access} vlan vlan-id
Section titled “switchport {trunk|access} vlan vlan-id”[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]
sonic# configure terminalsonic(config)# interface ethernet 0/0sonic(config-if-0/0)# switchport access vlan 300sonic(config-if-0/0)# show this!interface ethernet 0/0 switchport access vlan 300switchport range vlan min-id max-id
Section titled “switchport range vlan min-id max-id”[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]
sonic# configure terminalsonic(config)# vlan range 10 20sonic(config)# interface ethernet 0/4sonic(config-if-0/4)# switchport range vlan 10 20link-delay up delay-time
Section titled “link-delay up delay-time”[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]
sonic# configure terminalsonic(config)# link-delay up 2monitor-link group-name {uplink|downlink}
Section titled “monitor-link group-name {uplink|downlink}”[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]
sonic# configure terminalsonic(config)# interface ethernet 0/0sonic(config-if-0/0)# monitor-link test downlinkbreakout {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]
| 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]
sonic# configure terminalsonic(config)# interface ethernet 0/0sonic(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.startup-delay delay-time
Section titled “startup-delay delay-time”[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]
sonic# configure terminalsonic(config)# interface ethernet 0/0sonic(config-if-0/0)# startup-delay 150port-isolate enable isloate-group-name
Section titled “port-isolate enable isloate-group-name”[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]
sonic# configure terminalsonic(config)# interface ethernet 0/42sonic(config-if-0/42)# port-isolate enable test1sonic(config-if-0/42)# show this!interface ethernet 0/42 fec rs mtu 9216 port-isolate enable test1 speed 25000loopback-pkt-drop
Section titled “loopback-pkt-drop”[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 terminalsonic(config)# interface ethernet 0/0sonic(config-if-0/0)# loopback-pkt-dropipv6 use-link-local
Section titled “ipv6 use-link-local”[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 terminalsonic(config)# interface ethernet 0/0sonic(config-if-0/0)# ipv6 use-link-localTable 4 CRC Config
| Command | Purpose |
|---|---|
| crc-check enable | Enable CRC error packets detection. |
| crc-check threshold interval count | Set the threshold of CRC error detection. |
crc-check enable
Section titled “crc-check enable”[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 enableCreated symlink /etc/systemd/system/sonic.target.wants/counterscheckmgrd.service/lib/systemd/system/counterscheckmgrd.service.sonic(config)# no crc-check enableRemoved /etc/systemd/system/sonic.target.wants/counterscheckmgrd.service.crc-check threshold interval count
Section titled “crc-check threshold interval count”[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]
sonic(config)# crc-check threshold 10 100