Command Line Reference
Interface Configuration
Interface Management
48 min
interface attribute information interface attribute information table 1 interface attribute information view table 1 interface attribute information view command purpose show interface description display description of interfaces show interface description 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/a interface status interface status interface status view interface status view table 2 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 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/a show {ip|ipv6} interfaces 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 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 show interface \[ethernet 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/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 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/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 show counters rif \[{ethernet|vlan|link aggregation} 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/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 clear counters {interface|rif} 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 interface cleared counters show link delay show link delay \[command] show link delay \[purpose] display interface linkup delay configuration \[view] privileged user view \[use cases] sonic# show link delay port up delay 5 show port isolate summary 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 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 interface status config table 3 interfaces 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 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 terminal sonic(config)# interface ethernet 0/1 sonic(config if 0/1)# show this ! interface ethernet 0/1 shutdown 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 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 speed 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 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 autoneg 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 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 advertised speeds { 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 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 ip address { 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 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 fec {fc|rs} 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 terminal sonic(config)# interface ethernet 0/1 sonic(config if 0/1)# fec rs mtu 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 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 description 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 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 mac address 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 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 mac address learning 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 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 switchport 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 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 switchport {trunk|access} vlan 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 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 switchport range vlan 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 terminal sonic(config)# vlan range 10 20 sonic(config)# interface ethernet 0/4 sonic(config if 0/4)# switchport range vlan 10 20 link delay up 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 terminal sonic(config)# link delay up 2 monitor link 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 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]} 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 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 startup delay 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 terminal sonic(config)# interface ethernet 0/0 sonic(config if 0/0)# startup delay 150 port isolate enable 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 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 loopback pkt drop 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 terminal sonic(config)# interface ethernet 0/0 sonic(config if 0/0)# loopback pkt drop ipv6 use link local 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 terminal sonic(config)# interface ethernet 0/0 sonic(config if 0/0)# ipv6 use link local crc table 4 crc config table 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 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 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 crc check threshold 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
