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
BEMÆRK: Disse trin forudsætter, at din switch konfigureres startende med fabriksindstillingerne.

Vejledning til opsætning af netværksforbindelsen til administrationsgrænsefladen:  
  1. Åbn konsol- eller administrations-IP for din switch i S-serien. 
  2. 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 --
  1. Start SONIC CLI med: sonic-cli
admin@sonic:~$ sonic-cli
sonic#
  1. 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)#
  1. 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#
  1. 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)#
  1. Sådan konfigureres administrationsgrænsefladen: Interface Management 0-kommando
sonic(config)# interface Management 0
sonic(conf-if-eth0)#
  1. 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)#
  1. Afslut konfigurationstilstand til exec-tilstand med: slut
sonic(conf-if-eth0)# end
sonic#
  1. 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#
  1. 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:  
  1. Åbn konsol- eller administrations-IP for din switch i S-serien. 
  2. 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 --
  1. Start SONIC CLI med: sonic-cli
admin@sonic:~$ sonic-cli
sonic#
  1. 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)#
  1. 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)#
  1. Afslut konfigurationstilstand til exec-tilstand med: slut
sonic(config)# end
sonic#
  1. Kontrollér brugerkonfigurationen ved hjælp af: vis kørende konfiguration | grep-test
sonic# show running-configuration | grep user
username test role admin
  1. 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 Distribution
Article 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.