Diferència entre revisions de la pàgina «A5. Verificació»
De Wiki IES Marianao. Departament Informàtica
(Hi ha 2 revisions intermèdies del mateix usuari que no es mostren) | |||
Línia 1: | Línia 1: | ||
+ | torna [[ M7 - Planificació i administració de xarxes ]] | ||
+ | |||
+ | |||
'''Mostrar les VLANs''' | '''Mostrar les VLANs''' | ||
− | <pre> | + | <html><pre><code class=""> |
Switch#show vlan brief | Switch#show vlan brief | ||
Línia 19: | Línia 22: | ||
1004 fddinet-default active | 1004 fddinet-default active | ||
1005 trnet-default active | 1005 trnet-default active | ||
− | </pre> | + | </code></pre></html> |
− | <pre> | + | <html><pre><code class=""> |
Switch#show vlan ? | Switch#show vlan ? | ||
brief VTP all VLAN status in brief | brief VTP all VLAN status in brief | ||
Línia 43: | Línia 46: | ||
Switch# | Switch# | ||
− | </pre> | + | </code></pre></html> |
Consulta configuració troncals | Consulta configuració troncals | ||
− | <pre> | + | <html><pre><code class=""> |
Switch#show interfaces trunk | Switch#show interfaces trunk | ||
Port Mode Encapsulation Status Native vlan | Port Mode Encapsulation Status Native vlan | ||
Línia 60: | Línia 63: | ||
Port Vlans in spanning tree forwarding state and not pruned | Port Vlans in spanning tree forwarding state and not pruned | ||
Gig0/1 2,3,4 | Gig0/1 2,3,4 | ||
− | </pre> | + | </code></pre></html> |
Consulta de les interfícies VLAN actives (Amb adreçament IP) | Consulta de les interfícies VLAN actives (Amb adreçament IP) | ||
− | <pre> | + | <html><pre><code class=""> |
SWESQUERRA#sh ip interface bri | SWESQUERRA#sh ip interface bri | ||
Interface IP-Address OK? Method Status Protocol | Interface IP-Address OK? Method Status Protocol | ||
Línia 77: | Línia 80: | ||
Vlan1 unassigned YES manual administratively down down | Vlan1 unassigned YES manual administratively down down | ||
Vlan4 192.168.4.100 YES manual up up | Vlan4 192.168.4.100 YES manual up up | ||
− | </pre> | + | </code></pre></html> |
'''Comandes per obtenir informació de la configuració d'una VLAN''' | '''Comandes per obtenir informació de la configuració d'una VLAN''' | ||
− | <code>Show vlan | + | <html><pre><code class=""> |
+ | Show vlan // Mostra les VLANs que es troben definides al switch. | ||
− | + | Show vlan-membership // Mostra quins ports estan assignats a quines VLANs. | |
− | + | Show interfaces switchport // Per comprovar quines interfaces fan d'enllaços | |
− | + | Show ip interface brief // Fa un informe (brief) sobre les adreces que tenen cada interfaç. | |
− | + | Show interfaces trunk // Mostra quins enllaços troncals estan configurats i a quines interfaces. | |
− | + | Show interface ''nom_interfaç'' switchport</code></pre></html> | |
'''Verificació VTP''' | '''Verificació VTP''' | ||
− | <code>Switch#show vtp status | + | <html><pre><code class="">Switch#show vtp status |
− | + | Switch#show vtp counters | |
− | + | Switch#show vlan brief</code></pre></html> |
Revisió de 02:56, 21 ago 2024
torna M7 - Planificació i administració de xarxes
Mostrar les VLANs
Switch#show vlan brief
VLAN Name Status Ports
---- -------------------------------- --------- -------------------------------
1 default active Gig0/2
2 VLAN2 active Fa0/1, Fa0/2, Fa0/3, Fa0/4
Fa0/5, Fa0/6, Fa0/7, Fa0/8
Fa0/9, Fa0/10
3 VLAN3 active Fa0/11, Fa0/12, Fa0/13, Fa0/14
Fa0/15, Fa0/16, Fa0/17, Fa0/18
Fa0/19, Fa0/20, Fa0/21, Fa0/22
Fa0/23
4 ADMINISTRACIO active Fa0/24
1002 fddi-default active
1003 token-ring-default active
1004 fddinet-default active
1005 trnet-default active
Switch#show vlan ?
brief VTP all VLAN status in brief
id VTP VLAN status by VLAN id
name VTP VLAN status by VLAN name
Switch#show vlan id ?
<1-4094> ISL VLAN IDs 1-1005
Switch#show vlan id 2
VLAN Name Status Ports
---- -------------------------------- --------- -------------------------------
2 VLAN2 active Fa0/1, Fa0/2, Fa0/3, Fa0/4
Fa0/5, Fa0/6, Fa0/7, Fa0/8
Fa0/9, Fa0/10
VLAN Type SAID MTU Parent RingNo BridgeNo Stp BrdgMode Trans1 Trans2
---- ----- ---------- ----- ------ ------ -------- ---- -------- ------ ------
2 enet 100002 1500 - - - - - 0 0
Switch#
Consulta configuració troncals
Switch#show interfaces trunk
Port Mode Encapsulation Status Native vlan
Gig0/1 on 802.1q trunking 99
Port Vlans allowed on trunk
Gig0/1 2-4
Port Vlans allowed and active in management domain
Gig0/1 2,3,4
Port Vlans in spanning tree forwarding state and not pruned
Gig0/1 2,3,4
Consulta de les interfícies VLAN actives (Amb adreçament IP)
SWESQUERRA#sh ip interface bri
Interface IP-Address OK? Method Status Protocol
FastEthernet0/1 unassigned YES manual down down
FastEthernet0/2 unassigned YES manual down down
FastEthernet0/3 unassigned YES manual up up
...
FastEthernet0/24 unassigned YES manual down down
GigabitEthernet0/1 unassigned YES manual up up
GigabitEthernet0/2 unassigned YES manual down down
Vlan1 unassigned YES manual administratively down down
Vlan4 192.168.4.100 YES manual up up
Comandes per obtenir informació de la configuració d'una VLAN
Show vlan // Mostra les VLANs que es troben definides al switch.
Show vlan-membership // Mostra quins ports estan assignats a quines VLANs.
Show interfaces switchport // Per comprovar quines interfaces fan d'enllaços
Show ip interface brief // Fa un informe (brief) sobre les adreces que tenen cada interfaç.
Show interfaces trunk // Mostra quins enllaços troncals estan configurats i a quines interfaces.
Show interface ''nom_interfaç'' switchport
Verificació VTP
Switch#show vtp status
Switch#show vtp counters
Switch#show vlan brief