SONiC do Dell Networking: Como configurar a velocidade da porta
概要: Como configurar a velocidade da porta no Dell Networking SONiC. Este artigo usa um comutador que executa o Dell SONiC 4.1.
この記事は次に適用されます:
この記事は次には適用されません:
この記事は、特定の製品に関連付けられていません。
すべての製品パージョンがこの記事に記載されているわけではありません。
手順
|
Pré-requisitos
Estamos usando a nomenclatura de interface padrão para demonstrar os conceitos. Consulte o artigo 202172 Dell Networking Série S: Configuração básica de interface – SONIC 4.0 para obter mais informações sobre nomenclatura da interface |
Índice
Verifique a velocidade do link e o status da negociação automática.Como configurar a velocidade da porta em uma interface
Como configurar a velocidade da porta em um PortChannel
Como configurar a velocidade da porta em um grupo de portas (aplicável ao S5248F-ON e ao S5296F-ON)
Verifique a velocidade do link e o status da negociação automática.
Sintaxe de comando
| Comando | Explicação |
|---|---|
admin@DELLSONiC:~$ sonic-cli |
Entrar na interface de linha de comando do Dell Management |
DELLSONiC# show interface status |
Verifique o status de todas as interfaces. |
DELLSONiC# show interface Eth <slot/port> |
Verifique os detalhes de uma interface específica. |
DELLSONiC# show interface PortChannel <number> |
Verificar PortChannel |
DELLSONiC# show interface advertise [Ethslot/port] |
Exibir velocidades de porta anunciadas e configurações negociadas automaticamente |
Exemplo de resultado (saída aparada para fins de brevidade)
DELLSONiC# show interface status -------------------------------------------------------------------------------------------------------------------------------------- Name Description Oper Reason AutoNeg Speed MTU Alternate Name -------------------------------------------------------------------------------------------------------------------------------------- Eth1/1 - up oper-up off 25000 9100 Ethernet0 Eth1/2 - up oper-up off 25000 9100 Ethernet1 Eth1/3 - up oper-up off 25000 9100 Ethernet2 Eth1/4 - up oper-up off 25000 9100 |
DELLSONiC# show interface Eth 1/1 Eth1/1 is up, line protocol is up, reason oper-up Hardware is Eth, address is XX.XX.XX.XX.XX Mode of IPV4 address assignment: not-set Mode of IPV6 address assignment: not-set Interface IPv6 oper status: Disabled IP MTU 9100 bytes LineSpeed 25GB, Auto-negotiation off Link-training: off Unreliable-LOS: off FEC: DISABLED Events: initialized at 2023-10-14T11:11:47.61798+09:00 admin-up at 2023-10-14T11:12:04.289966+09:00 port-enabled at 2023-10-14T11:12:04.291712+09:00 phy-link-up at 2023-10-14T11:12:31.328101+09:00 |
DELLSONiC# show interface advertise Eth 1/1
Name: Eth1/1
Admin State: UP
Link Status: UP
Auto Negotiation: OFF
Operational Link Training: OFF
Standalone Link Training: OFF
400G 200G 100G 50G 40G 25G 10G 5G 2.5G 1G 100f 100h 10f 10h
---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ----
Admin Local Advertisement - - - - - - - - - - - - - -
Oper Local Advertisement - - - - - - - - - - - - - -
Oper Remote Advertisement - - - - - - - - - - - - - -
DELLSONiC# |
Como configurar a velocidade da porta em uma interface
Sintaxe de configuração
| Comando | Explicação |
|---|---|
admin@DELLSONiC:~$ sonic-cli |
Entrar na interface de linha de comando do Dell Management |
DELLSONiC# configure terminal |
Entrar no modo de configuração |
DELLSONiC(config)# interface Eth slot/port |
Configurar interface |
DELLSONiC(conf-if-Ethslot/port)# Speed <Speed> |
Configurar velocidade |
DELLSONiC(conf-if-Ethslot/port)# speed auto <Speed> |
Habilite a velocidade negociada automaticamente e digite speed auto. Para anunciar uma velocidade específica para negociação automática com a conexão de dispositivos |
DELLSONiC(conf-if-Ethslot/port)#no speed |
Restaure a velocidade padrão da porta: |
DELLSONiC(conf-if-Ethslot/port)#no speed auto |
Desative a negociação automática e restaure a velocidade padrão da porta. |
DELLSONiC(conf-if-Ethslot/port)#no speed auto <Speed> |
Desative a negociação automática e defina uma velocidade de porta especificada. |
Sample Configuration
Permite configurar o Eth 1/1 com velocidade 10000:
admin@DELLSONiC:~$ sonic-cli DELLSONiC# configure terminal DELLSONiC(config)# interface Eth 1/1 DELLSONiC(conf-if-Eth1/30)# speed 10000 |
Vamos verificar a velocidade:
amostra de saída
DELLSONiC# show interface status -------------------------------------------------------------------------------------------------------------------------------------- Name Description Oper Reason AutoNeg Speed MTU Alternate Name -------------------------------------------------------------------------------------------------------------------------------------- Eth1/1 - up oper-up off 10000 9100 Ethernet0 |
Como configurar a velocidade da porta em um PortChannel
Nota: Um port channel deve conter interfaces da mesma velocidade.
Para alterar a velocidade para PortChannel, altere a velocidade de todas as suas interfaces membro. Por exemplo, Considere que Eh 1/1 e 1/2 faz parte da interface PortChannel.
Exemplo de resultado
admin@DELLSONiC:~$ sonic-cli DELLSONiC# configure DELLSONiC(config)# interface range Eth 1/1-1/2 DELLSONiC(config)#Speed 25000 |
DELLSONiC# show interface status | grep Po PortChannel1 - up oper-up - 50000 9100 - |
DELLSONiC# show interface PortChannel 1 PortChannel1 is up, line protocol is up, reason oper-up, mode Static Hardware is PortChannel, address is 0c:2c:1e:b9:00:0a Minimum number of links to bring PortChannel up is 1 Mode of IPV4 address assignment: not-set Mode of IPV6 address assignment: not-set Graceful shutdown: Disabled MTU 9100 LineSpeed 50.0GB Events: |
Como configurar a velocidade da porta em um grupo de portas (aplicável apenas ao S5248F-ON e ao S5296F-ON)
Nota: Os switches S5248F-ON e S5296F-ON são compatíveis com grupos de portas.
Os grupos de portas permitem que você aplique configurações comuns em portas de acordo com suas características de hardware.
- As interfaces de grupo de portas que são executadas no 10G podem ser configuradas individualmente para serem executadas no 1G.
- Se um grupo de portas estiver configurado para ser executado no 25G, você não poderá configurar uma interface para ser executada no 1G.
Use o comando:
show port-group
Exemplo de resultado
DELLSONiC# show port-group ------------------------------------------------------------------------------------- Port-group Interface range Valid speeds Default Speed Current Speed ------------------------------------------------------------------------------------- 1 Eth1/1 - Eth1/4 10G, 25G 25G 10G 2 Eth1/5 - Eth1/8 10G, 25G 25G 25G 3 Eth1/9 - Eth1/12 10G, 25G 25G 25G 4 Eth1/13 - Eth1/16 10G, 25G 25G 25G 5 Eth1/17 - Eth1/20 10G, 25G 25G 25G 6 Eth1/21 - Eth1/24 10G, 25G 25G 25G 7 Eth1/25 - Eth1/28 10G, 25G 25G 25G 8 Eth1/29 - Eth1/32 10G, 25G 25G 25G 9 Eth1/33 - Eth1/36 10G, 25G 25G 10G 10 Eth1/37 - Eth1/40 10G, 25G 25G 25G 11 Eth1/41 - Eth1/44 10G, 25G 25G 25G 12 Eth1/45 - Eth1/48 10G, 25G 25G 25G |
Configurar a velocidade do grupo de portas
Para configurar a velocidade do grupo de portas Use o comando abaixo para alterar a velocidade das interfaces em um grupo de portas. As velocidades da porta estão em Megabits por segundo (Mbps).
port-group speed
Sintaxe de configuração
admin@DELLSONiC:~$ sonic-cli
DELLSONiC# configure terminal
DELLSONiC(config)# port-group number speed {10000 | 25000} |
Nota: Embora o comando de velocidade do grupo de portas ofereça várias opções de velocidade de porta, as únicas velocidades de grupo de portas compatíveis são 10000 e 25000. Se você configurar uma velocidade de porta incompatível, uma mensagem de erro será exibida: %Error (%Error): Velocidade incompatível
Para desconfigurar a velocidade de um grupo de portas e definir a velocidade padrão do grupo, digite o comando abaixo:
no port-group speed
Sintaxe de configuração
admin@DELLSONiC:~$ sonic-cli DELLSONiC# configure terminal DELLSONiC(config)#no port-group number speed |
Exemplo de configuração
admin@DELLSONiC:~$ sonic-cli DELLSONiC# configure DELLSONiC(config)# port-group 1 speed 10000 DELLSONiC(config)# end DELLSONiC# |
Para verificar, use o comando abaixo:
how port-group
Exemplo de resultado
DELLSONiC# show port-group ------------------------------------------------------------------------------------- Port-group Interface range Valid speeds Default Speed Current Speed ------------------------------------------------------------------------------------- 1 Eth1/1 - Eth1/4 10G, 25G 25G 10G 2 Eth1/5 - Eth1/8 10G, 25G 25G 25G 3 Eth1/9 - Eth1/12 10G, 25G 25G 25G 4 Eth1/13 - Eth1/16 10G, 25G 25G 25G 5 Eth1/17 - Eth1/20 10G, 25G 25G 25G 6 Eth1/21 - Eth1/24 10G, 25G 25G 25G 7 Eth1/25 - Eth1/28 10G, 25G 25G 25G 8 Eth1/29 - Eth1/32 10G, 25G 25G 25G 9 Eth1/33 - Eth1/36 10G, 25G 25G 10G 10 Eth1/37 - Eth1/40 10G, 25G 25G 25G 11 Eth1/41 - Eth1/44 10G, 25G 25G 25G 12 Eth1/45 - Eth1/48 10G, 25G 25G 25G |
対象製品
Enterprise SONiC Distribution, PowerSwitch E3200-ON Series, Dell EMC Networking N3200-ON, PowerSwitch S5212F-ON, PowerSwitch S5224F-ON, PowerSwitch S5232F-ON, PowerSwitch S5248F-ON, PowerSwitch S5296F-ON, PowerSwitch Z9264F-ON, PowerSwitch Z9332F-ON
, PowerSwitch Z9432F-ON
...
文書のプロパティ
文書番号: 000218554
文書の種類: How To
最終更新: 19 10月 2023
バージョン: 3
質問に対する他のDellユーザーからの回答を見つける
サポート サービス
お使いのデバイスがサポート サービスの対象かどうかを確認してください。