Dell Networking SONiC Media Access Control (MAC)-adres

Riepilogo: In dit artikel wordt uitgelegd wat het MAC-adres is in Dell SONiC switches

Questo articolo si applica a Questo articolo non si applica a Questo articolo non è legato a un prodotto specifico. Non tutte le versioni del prodotto sono identificate in questo articolo.

Istruzioni

Index

Wat is MAC-adres
?Hoe MAC-adres wordt geleerd in switch
Een statisch MAC-adres configureren
Mac-verouderingstijd
configurerenMac-adres bevochtigen configureren
Voorbeeldconfiguratie
Verificatie
Mac-adrestabel weergeven
MAC-adrestabelvermeldingen weergeven op MAC-adres
MAC-adrestabelvermeldingen weergeven op VLAN
MAC-adresaantal weergeven
MAC-adresvermeldingen per interface weergeven
MAC-adresvermeldingen weergeven door PortChannel
Statische MAC-adresvermeldingen
weergevenDynamische MAC-adresvermeldingen weergeven                        




Wat is MAC-adres?

Een MAC-adres (Media Access Control) is een 48-bits nummer in de indeling nn.nn.nn.nn.nn.nn. De MAC-adrestabel bevat statische en dynamische MAC-adresvermeldingen.

  • Statische MAC-adressen zijn door de gebruiker geconfigureerde vermeldingen die niet verouderd zijn.
  • Dynamisch geleerde MAC-adressen zijn op hardware gebaseerde vermeldingen die verouderd zijn op basis van de geconfigureerde verouderingstijd.
 
OPMERKING: De maximale capaciteit van de mac-adrestabel varieert tussen switchmodellen en geconfigureerd L2/L3-switchprofiel. Raadpleeg het artikel Dell Networking SONiC OS L2 en L3 Switch Profiles voor meer informatie.
 

Hoe MAC-adres wordt geleerd in switch

Wanneer de switch een pakket ontvangt, leert deze het MAC-adres in het veld bron-MAC-adres op de poort dat het pakket wordt ontvangen. De switch zoekt vervolgens het doel-MAC-adres op voor het opgegeven VLAN in de MAC-adrestabel. Als het MAC-doeladres wordt gevonden, stuurt de switch het pakket door naar het juiste poort-/poortkanaal. Als het doel-MAC-adres niet wordt gevonden, floodt de switch het pakket op alle VLAN-poorten.

Wanneer de verouderingstijd wordt bereikt, wordt er geen ontvangen pakket met bron-MAC, een dynamische MAC-adresvermelding uit de tabel verwijderd.

OPMERKING: De standaard MAC-verouderingstijd in Dell SONiC is 600 seconden (10 minuten).
 
 

Een statisch MAC-adres configureren

Als u een statisch MAC-adres aan de MAC-adrestabel wilt toevoegen, configureert u het adres handmatig. Geef de Ethernet-poort of het poortkanaal en het VLAN op waarmee het apparaat met het statische MAC-adres kan worden bereikt en waarnaar de switch pakketten kan doorsturen.

Configuratiesyntaxis

admin@sonic:~$ sonic-cli
sonic# configure
sonic(config)# mac address-table mac-address Vlan vlan-id 
 
Voorbeeldconfiguratie
admin@sonic:~$ sonic-cli
sonic# configure
sonic(config)# no mac address-table 00:00:00:00:00:01 Vlan 10 
 

Als u een statisch MAC-adres wilt verwijderen, gebruikt u de geen versie van de volledige opdracht zonder het Ethernet-poort- of poortkanaalnummer.

Voorbeeldconfiguratie

admin@sonic:~$ sonic-cli
sonic# configure
sonic(config)# no mac address-table 00:00:00:00:00:01 Vlan 10 
 
 

Mac-verouderingstijd configureren

Configureer de verouderingstijd voor alle dynamisch geleerde MAC-adressen (0 tot 1000000 seconden; standaard 600). Statische MAC-adresvermeldingen worden niet beïnvloed door de opdracht mac address-table aging-time. Wanneer de ouderdomstijd wordt bereikt, wordt een dynamische MAC-adresvermelding uit de tabel verwijderd. Voer 0 in om MAC-veroudering uit te schakelen. Voer de geen versie van de opdracht in om de standaard verouderingstijd te herstellen.

Configuratiesyntaxis
admin@sonic:~$ sonic-cli
sonic# configure
sonic(config)# mac address-table aging-time 

Voorbeeldconfiguratie
admin@sonic:~$ sonic-cli
sonic# show mac address-table aging-time 
Global aging time: 600 seconds

admin@sonic:~$ sonic-cli
sonic# configure
sonic(config)# mac address-table aging-time 1000
sonic(config)# exit
sonic# show mac address-table aging-time 
Global aging time: 1000 seconds

sonic(config)# mac address-table aging-time 0
sonic(config)# exit
sonic# show mac address-table aging-time 
Global aging time: 0 seconds(disabled)

sonic(config)# no mac address-table aging-time 
sonic(config)# exit
sonic# show mac address-table aging-time 
Global aging time: 600 seconds
 
 

Mac-adres bevochtigen configureren

Als u het maximumaantal keren wilt beperken dat een dynamisch MAC-adres aan verschillende interfaces kan worden toegewezen, configureert u een bevochtigingsdrempel (5 tot 100; geen standaard).

Configuratiesyntaxis
admin@sonic:~$ sonic-cli
sonic# configure
sonic(config)# mac address-table dampening-threshold 

Als u het minimale tijdsinterval wilt configureren dat een dynamisch MAC-adres aan verschillende interfaces kan worden toegewezen, configureert u een bevochtigingsinterval (1 tot 1000000 seconden; geen standaard).

Configuratiesyntaxis
admin@sonic:~$ sonic-cli
sonic# configure
sonic(config)# mac address-table dampening-interval 
 
 

Voorbeeldconfiguratie

admin@sonic:~$ sonic-cli 
sonic# configure
sonic(config)# mac address-table 00:00:00:00:00:01 Vlan 10 Eth1/1
sonic(config)# mac address-table 00:00:00:00:00:01 Vlan 11 Eth1/1
sonic(config)# mac address-table 00:00:00:00:00:03 Vlan 30 Eth1/2
sonic(config)# mac address-table 00:00:00:00:00:05 Vlan 50 Eth1/3
sonic(config)# mac address-table 00:00:00:00:00:07 Vlan 70 Eth1/4
sonic(config)# mac address-table 00:00:00:00:00:09 Vlan 90 Eth1/5
sonic(config)# mac address-table 00:00:00:00:00:98 Vlan 10 Eth1/6
sonic(config)# mac address-table 00:00:00:00:00:99 Vlan 99 PortChannel 110
sonic(config)# mac address-table aging-time 1000
sonic(config)# mac address-table dampening-threshold 10
sonic(config)# mac address-table dampening-interval 100000
 

 

Controle


Gebruik opdrachten voor de show mac-address table om mac-adrestabelinformatie weer te geven.
show mac address-table [address mac-address] [aging-time] [interface Eth slot/port[/breakout-port]] [Vlan vlan-id] [PortChannel number] [count] [static] [dynamic]
 


Mac-adrestabel weergeven


Uitvoervoorbeeld
sonic# show mac address-table 
-----------------------------------------------------------
VLAN MAC-ADDRESS TYPE INTERFACE 
-----------------------------------------------------------
10 00:00:00:00:00:01 STATIC Eth1/1 
11 00:00:00:00:00:01 STATIC Eth1/1 
100 00:00:00:00:00:10 DYNAMIC Eth1/9 
20 00:00:00:00:00:02 DYNAMIC Eth1/2 
30 00:00:00:00:00:03 STATIC Eth1/2 
40 00:00:00:00:00:04 DYNAMIC Eth1/3 
50 00:00:00:00:00:05 STATIC Eth1/3 
60 00:00:00:00:00:06 DYNAMIC Eth1/4 
70 00:00:00:00:00:07 STATIC Eth1/4 
80 00:00:00:00:00:08 DYNAMIC Eth1/4 
90 00:00:00:00:00:09 STATIC Eth1/5 
99 00:00:00:00:00:99 STATIC PortChannel110


MAC-adrestabelvermeldingen weergeven op MAC-adres

Uitvoervoorbeeld
sonic# show mac address-table address 00:00:00:00:00:01 
-----------------------------------------------------------
VLAN MAC-ADDRESS TYPE INTERFACE 
-----------------------------------------------------------
10 00:00:00:00:00:01 STATIC Eth1/1 
11 00:00:00:00:00:01 STATIC Eth1/1


MAC-adrestabelvermeldingen weergeven op VLAN

Uitvoervoorbeeld
sonic# show mac address-table Vlan 10
-----------------------------------------------------------
VLAN MAC-ADDRESS TYPE INTERFACE 
-----------------------------------------------------------
10 00:00:00:00:00:01 STATIC Eth1/1 
10 00:00:00:00:00:98 STATIC Eth1/1
 
sonic# show mac address-table static Vlan 11 
-----------------------------------------------------------
VLAN MAC-ADDRESS TYPE INTERFACE
-----------------------------------------------------------
11 00:00:00:00:00:01 STATIC Eth1/1
 
sonic# show mac address-table dynamic Vlan 60 
-----------------------------------------------------------
VLAN MAC-ADDRESS TYPE INTERFACE 
-----------------------------------------------------------
60 00:00:00:00:00:06 DYNAMIC Eth1/12


MAC-adresaantal weergeven

Uitvoervoorbeeld
sonic# show mac address-table count
MAC Entries for all vlans : 13 
Dynamic Address Count : 5 
Static Address (User-defined) Count : 8 
Total MAC Addresses in Use: 13 


MAC-adresvermeldingen per interface weergeven

Uitvoervoorbeeld
sonic# show mac address-table interface Eth1/1
-----------------------------------------------------------
VLAN MAC-ADDRESS TYPE INTERFACE 
-----------------------------------------------------------
10 00:00:00:00:00:01 STATIC Eth1/1 
10 00:00:00:00:00:98 STATIC Eth1/1 
11 00:00:00:00:00:01 STATIC Eth1/1
 
sonic# show mac address-table static interface Eth1/3 
-----------------------------------------------------------
VLAN MAC-ADDRESS TYPE INTERFACE 
-----------------------------------------------------------
30 00:00:00:00:00:03 STATIC Eth1/3
 
sonic# show mac address-table dynamic interface Eth1/5 
-----------------------------------------------------------
VLAN MAC-ADDRESS TYPE INTERFACE 
-----------------------------------------------------------
60 00:00:00:00:00:06 DYNAMIC Eth1/5


MAC-adresvermeldingen weergeven door PortChannel

Uitvoervoorbeeld
sonic# show mac address-table interface PortChannel 10 
-----------------------------------------------------------
VLAN MAC-ADDRESS TYPE INTERFACE 
-----------------------------------------------------------
99 00:00:00:00:00:99 STATIC PortChannel10


Statische MAC-adresvermeldingen

weergevenUitvoervoorbeeld
sonic# show mac address-table static
-----------------------------------------------------------
VLAN MAC-ADDRESS TYPE INTERFACE 
-----------------------------------------------------------
10 00:00:00:00:00:01 STATIC Eth1/1 
11 00:00:00:00:00:01 STATIC Eth1/1 
30 00:00:00:00:00:03 STATIC Eth1/3 
50 00:00:00:00:00:05 STATIC Eth1/5 
70 00:00:00:00:00:07 STATIC Eth1/7 
90 00:00:00:00:00:09 STATIC Eth1/9
10 00:00:00:00:00:98 STATIC Eth1/1 
99 00:00:00:00:00:99 STATIC PortChannel10
 
sonic# show mac address-table static address 00:00:00:00:00:01
-----------------------------------------------------------
VLAN MAC-ADDRESS TYPE INTERFACE 
-----------------------------------------------------------
10 00:00:00:00:00:01 STATIC Eth1/1 
11 00:00:00:00:00:01 STATIC Eth1/1 


Dynamische MAC-adresvermeldingen

weergevenUitvoervoorbeeld
sonic# show mac address-table dynamic
-----------------------------------------------------------
VLAN MAC-ADDRESS TYPE INTERFACE 
-----------------------------------------------------------
100 00:00:00:00:00:10 DYNAMIC Eth1/1 
20 00:00:00:00:00:02 DYNAMIC Eth1/2 
40 00:00:00:00:00:04 DYNAMIC Eth1/3 
60 00:00:00:00:00:06 DYNAMIC Eth1/4 
80 00:00:00:00:00:08 DYNAMIC Eth1/5
 
sonic# show mac address-table dynamic address 00:00:00:00:00:06
-----------------------------------------------------------
VLAN MAC-ADDRESS TYPE INTERFACE 
-----------------------------------------------------------
60 00:00:00:00:00:06 DYNAMIC Eth1/1



Prodotti interessati

Enterprise SONiC Distribution, PowerSwitch E3200-ON Series, PowerSwitch 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 ...
Proprietà dell'articolo
Numero articolo: 000217932
Tipo di articolo: How To
Ultima modifica: 02 ott 2023
Versione:  5
Trova risposta alle tue domande dagli altri utenti Dell
Support Services
Verifica che il dispositivo sia coperto dai Servizi di supporto.