Dell Networking SONiC: Sådan konfigureres porthastigheden
概要: Sådan konfigureres porthastighed i Dell Networking SONiC. Denne artikel bruger en switch, der kører Dell SONiC 4.1.
この記事は次に適用されます:
この記事は次には適用されません:
この記事は、特定の製品に関連付けられていません。
すべての製品パージョンがこの記事に記載されているわけではありません。
手順
|
Forudsætninger
Vi bruger standardgrænsefladenavngivning til at demonstrere koncepterne. Se artiklen 202172 Dell Networking S-serien: Grundlæggende interfacekonfiguration – SONIC 4.0 for flere oplysninger om grænsefladenavngivning |
Indeks
Kontrollér status for linkhastighed og automatisk forhandling.Sådan konfigureres porthastigheden på en grænseflade
Sådan konfigureres porthastigheden i en portkanal
Sådan konfigureres porthastigheden på en portgruppe (gælder for S5248F-ON og S5296F-ON)
Kontrollér status for linkhastighed og automatisk forhandling.
Kommandosyntaks
| Kommando | Forklaring |
|---|---|
admin@DELLSONiC:~$ sonic-cli |
Åbn Dell Management Command Line Interface |
DELLSONiC# show interface status |
Kontroller alle grænsefladestatusser. |
DELLSONiC# show interface Eth <slot/port> |
Kontroller oplysningerne om en bestemt grænseflade. |
DELLSONiC# show interface PortChannel <number> |
Kontroller PortKanal |
DELLSONiC# show interface advertise [Ethslot/port] |
Se annoncerede porthastigheder og automatisk godkendte indstillinger |
Eksempeloutput (beskåret af kort varighed)
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# |
Sådan konfigureres porthastigheden på en grænseflade
Konfigurationssyntaks
| Kommando | Forklaring |
|---|---|
admin@DELLSONiC:~$ sonic-cli |
Åbn Dell Management Command Line Interface |
DELLSONiC# configure terminal |
Gå til konfigurationstilstand |
DELLSONiC(config)# interface Eth slot/port |
Konfigurer grænseflade |
DELLSONiC(conf-if-Ethslot/port)# Speed <Speed> |
Konfigurer hastighed |
DELLSONiC(conf-if-Ethslot/port)# speed auto <Speed> |
Aktivér automatisk forhandlet hastighed, indtast hastighed auto. Sådan annonceres en bestemt hastighed for automatisk at gå i gang med tilslutningsenheder |
DELLSONiC(conf-if-Ethslot/port)#no speed |
Gendan standardportens hastighed: |
DELLSONiC(conf-if-Ethslot/port)#no speed auto |
Deaktiver automatisk forhandling, og gendan standardportens hastighed. |
DELLSONiC(conf-if-Ethslot/port)#no speed auto <Speed> |
Deaktiver automatisk forhandling, og angiv en bestemt porthastighed. |
Sample Configuration
Giver mulighed for at konfigurere Eth 1/1 med hastighed 10000:
admin@DELLSONiC:~$ sonic-cli DELLSONiC# configure terminal DELLSONiC(config)# interface Eth 1/1 DELLSONiC(conf-if-Eth1/30)# speed 10000 |
Lad os kontrollere hastigheden:
Eksempeloutput
DELLSONiC# show interface status -------------------------------------------------------------------------------------------------------------------------------------- Name Description Oper Reason AutoNeg Speed MTU Alternate Name -------------------------------------------------------------------------------------------------------------------------------------- Eth1/1 - up oper-up off 10000 9100 Ethernet0 |
Sådan konfigureres porthastigheden i en portkanal
BEMÆRK: En portkanal skal indeholde grænseflader med samme hastighed.
Hvis du vil ændre hastigheden til PortChannel, skal du ændre hastigheden for alle dens medlemsgrænseflader. Overvej Eh 1/1 og 1/2 er f.eks. en del af PortChannel-grænsefladen.
Eksempel på output
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: |
Sådan konfigureres porthastigheden på en portgruppe (gælder kun for S5248F-ON og S5296F-ON)
BEMÆRK: S5248F-ON- og S5296F-ON-switche understøtter portgrupper.
Portgrupper giver dig mulighed for at anvende almindelige konfigurationer på porte i henhold til deres hardwareegenskaber.
- Portgruppegrænseflader, der kører ved 10G, kan konfigureres individuelt til at køre på 1G.
- Hvis en portgruppe er konfigureret til at køre ved 25G, kan du ikke konfigurere en grænseflade til at køre ved 1G.
Brug kommandoen:
show port-group
Eksempel på output
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 |
Konfigurer portgruppens hastighed
Hvis du vil konfigurere portgruppens hastighed, skal du bruge nedenstående kommando til at ændre hastigheden på grænsefladerne i en portgruppe. Portens hastigheder er i Megabits pr. sekund (Mbps).
port-group speed
Konfigurationssyntaks
admin@DELLSONiC:~$ sonic-cli
DELLSONiC# configure terminal
DELLSONiC(config)# port-group number speed {10000 | 25000} |
BEMÆRK: Selvom portgruppens hastighedskommando tilbyder forskellige porthastighedsmuligheder, er de eneste understøttede portgruppehastigheder 10000 og 25000. Hvis du konfigurerer en ikke-understøttet porthastighed, vises en fejlmeddelelse: %Fejl: Ikke-understøttet hastighed
Hvis du vil fjerne konfigurationen af en portgruppes hastighed og indstille standardgruppehastigheden, skal du indtaste nedenstående kommando:
no port-group speed
Konfigurationssyntaks
admin@DELLSONiC:~$ sonic-cli DELLSONiC# configure terminal DELLSONiC(config)#no port-group number speed |
Eksempelkonfiguration
admin@DELLSONiC:~$ sonic-cli DELLSONiC# configure DELLSONiC(config)# port-group 1 speed 10000 DELLSONiC(config)# end DELLSONiC# |
Brug nedenstående kommando for at bekræfte:
how port-group
Eksempel på output
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ユーザーからの回答を見つける
サポート サービス
お使いのデバイスがサポート サービスの対象かどうかを確認してください。