Dell EMC Networking S-serien: Grundlæggende switchadministrationskonfiguration – SONIC 4.0
Summary: Sådan konfigureres grundlæggende administration af switche i SONIC 4.0.
This article applies to
This article does not apply to
This article is not tied to any specific product.
Not all product versions are identified in this article.
Instructions
Instruktioner
Vejledning til opsætning af netværksforbindelsen til administrationsgrænsefladen:
Vejledning til opsætning af en bruger på administratorniveau:
Du kan finde yderligere hjælp i udgivelsesdokumentationen til Dell Technologies Enterprise SONiC SONiC eller ved at kontakte Dell Technologies teknisk support.
BEMÆRK: Disse trin forudsætter, at din switch konfigureres startende med fabriksindstillingerne.
Vejledning til opsætning af netværksforbindelsen til administrationsgrænsefladen:
- Åbn konsol- eller administrations-IP for din switch i S-serien.
- Log på privilegeret exec-tilstand med standardlegitimationsoplysninger: admin\YourPaSsWoRd
Debian GNU/Linux 9 sonic ttyS0 sonic login: admin Password: Last login: Mon Jul 18 22:08:17 UTC 2022 on ttyS0 Linux sonic 4.9.0-11-2-amd64 #1 SMP Debian 4.9.189-3+deb9u2 (2019-11-11) x86_64 You are on ____ ___ _ _ _ ____ / ___| / _ \| \ | (_)/ ___| \___ \| | | | \| | | | ___) | |_| | |\ | | |___ |____/ \___/|_| \_|_|\____| -- Software for Open Networking in the Cloud --
- Start SONIC CLI med: sonic-cli
admin@sonic:~$ sonic-cli sonic#
- Hvis du vil ændre switchkonfigurationen, skal du køre kommandoen Konfigurer terminal for at redigere switchkonfigurationen og derefter trykke på Enter.
sonic# configure terminal sonic(config)#
- Vis den kørende konfiguration af administrationsgrænsefladen: vis running-configuration interface management 0
sonic# show running-configuration interface Management 0 ! interface Management 0 description Management0 mtu 1500 autoneg on speed 1000 sonic#
- Hvis du vil ændre switchkonfigurationen, skal du køre kommandoen Konfigurer terminal for at redigere switchkonfigurationen og derefter trykke på Enter.
sonic# configure terminal sonic(config)#
- Sådan konfigureres administrationsgrænsefladen: Interface Management 0-kommando
sonic(config)# interface Management 0 sonic(conf-if-eth0)#
- Konfigurer en statisk IP-adresse og standardgateway på administrationsgrænsefladen med: IP-adresse 1.1.1.2/24 gwaddr 1.1.1.1
sonic(conf-if-eth0)# ip address 1.1.1.2/24 gwaddr 1.1.1.1 sonic(conf-if-eth0)#
- Afslut konfigurationstilstand til exec-tilstand med: slut
sonic(conf-if-eth0)# end sonic#
- I exec-tilstand skal du kontrollere, at konfigurationen af administrationsgrænsefladen er korrekt: Vis running-configuration interface Management 0
sonic# show running-configuration interface Management 0 ! interface Management 0 description Management0 mtu 1500 autoneg on speed 1000 ip address 1.1.1.2/24 gwaddr 1.1.1.1 sonic#
- Gem den kørende konfiguration til startkonfigurationen med: skrivehukommelse
sonic# write memory sonic#
BEMÆRK: Når en statisk IP-adresse føjes til Management 0-grænsefladen, deaktiveres DHCP automatisk. Hvis den statiske IP-adresse fjernes, vil DHCP automatisk blive genaktiveret.
Vejledning til opsætning af en bruger på administratorniveau:
- Åbn konsol- eller administrations-IP for din switch i S-serien.
- Log på privilegeret exec-tilstand med standardlegitimationsoplysninger: admin\YourPaSsWoRd
Debian GNU/Linux 9 sonic ttyS0 sonic login: admin Password: Last login: Mon Jul 18 22:08:17 UTC 2022 on ttyS0 Linux sonic 4.9.0-11-2-amd64 #1 SMP Debian 4.9.189-3+deb9u2 (2019-11-11) x86_64 You are on ____ ___ _ _ _ ____ / ___| / _ \| \ | (_)/ ___| \___ \| | | | \| | | | ___) | |_| | |\ | | |___ |____/ \___/|_| \_|_|\____| -- Software for Open Networking in the Cloud --
- Start SONIC CLI med: sonic-cli
admin@sonic:~$ sonic-cli sonic#
- Hvis du vil ændre switchkonfigurationen, skal du køre kommandoen Konfigurer terminal for at redigere switchkonfigurationen og derefter trykke på Enter.
sonic# configure terminal sonic(config)#
- Konfigurer et brugernavn "test" og adgangskode med sysadmin-rettigheder: brugernavntestadgangskode P@ssw0rd!123 rolleadministrator
sonic(config)# username test password P@ssw0rd!123 role admin sonic(config)#
- Afslut konfigurationstilstand til exec-tilstand med: slut
sonic(config)# end sonic#
- Kontrollér brugerkonfigurationen ved hjælp af: vis kørende konfiguration | grep-test
sonic# show running-configuration | grep user username test role admin
- Gem den kørende konfiguration til startkonfigurationen med: skrivehukommelse
sonic# write memory sonic#
Du kan finde yderligere hjælp i udgivelsesdokumentationen til Dell Technologies Enterprise SONiC SONiC eller ved at kontakte Dell Technologies teknisk support.
Affected Products
Enterprise SONiC DistributionArticle Properties
Article Number: 000201926
Article Type: How To
Last Modified: 24 May 2023
Version: 4
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.