Cisco IOS: Unterschied zwischen den Versionen

Aus Zovis Wikili
Wechseln zu: Navigation, Suche
(Wichtigste Befehle)
(Wichtigste Befehle)
 
(7 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt)
Zeile 1: Zeile 1:
 
= Wichtigste Befehle =
 
= Wichtigste Befehle =
  
 
+
=== State and overview ===
 
show running-configuration
 
show running-configuration
 
   
 
   
 
show interfaces description
 
show interfaces description
  
 +
show interface status  #shows effective status -
 +
show interface status
 +
...
 +
Gi1/0/13  Production - VRF3  connected    854        a-full a-1000 10/100/1000BaseTX
 +
Gi1/0/14  Production - VRF3  '''err-disabled''' 854          auto  auto 10/100/1000BaseTX
 +
Gi1/0/15  Production - VRF3  notconnect  854          auto  auto 10/100/1000BaseTX
 +
Gi1/0/16  Production - VRF3  notconnect  854          auto  auto 10/100/1000BaseTX
 +
...
 +
 +
 +
 +
=== Config ===
 +
configuring more than one interface:<br>
 +
interface '''range''' gigabitEthernet 1/0/13'''-24'''
 +
 +
 +
 +
 +
=== Monitoring  and logs: ===
 +
 +
terminal monitor  #active monitor enable
 +
 +
show log
 +
 +
 +
=== Backup: ===
 +
wr # writes the running-config down
 +
 +
copy running-config tftp:  # save config to tftp server
 +
 +
 +
<br><br><br>
  
 
= find a Switchport with an IP Address =
 
= find a Switchport with an IP Address =
Zeile 14: Zeile 46:
  
 
  show arp | include 172.23.133.11
 
  show arp | include 172.23.133.11
  Internet  172.23.133.11          56  00d0.c971.2821  ARPA  Vlan633
+
  Internet  172.23.133.11          56  '''00d0.c971.2821''' ARPA  Vlan633
  
 
* show the port on witch the mac is located
 
* show the port on witch the mac is located
  sh mac address-table | include 00d0.c971.2821
+
  sh mac address-table | include '''00d0.c971.2821'''
  633    00d0.c971.2821    DYNAMIC    Te1/0/6
+
  633    00d0.c971.2821    DYNAMIC    '''Te1/0/6'''
  
* have a look on witch accessswitch it is
+
* have a look on witch accessswitch '''Te1/0/6''' is
weis26b043og3850#show running-config interface tenGigabitEthernet 1/0/6
+
  sh cdp neighbors
  Building configuration...
 
 
   
 
   
  Current configuration : 233 bytes
+
  Capability Codes: R - Router, T - Trans Bridge, B - Source Route Bridge
!
+
                  S - Switch, H - Host, I - IGMP, r - Repeater,P - Phone,
interface TenGigabitEthernet1/0/6
+
                  D - Remote, C - CVTA, M - Two-port Mac Relay
  description weis26b241ogost2960-10, Gig 1/0/25
 
  switchport trunk native vlan 503
 
  switchport trunk allowed vlan 502-504,509,513,530,613,633,853
 
  switchport mode trunk
 
  switchport nonegotiate
 
end
 
 
   
 
   
  weis26b043og3850#
+
  Device ID        Local Intrfce    Holdtme    Capability  Platform  Port ID
 +
Brun06wt3og4500.itsroot.net
 +
                  Ten 1/0/24        173              R S  WS-C4500X Ten 1/7
 +
weis26b242ogost2960-10.itsroot.net
 +
                  Ten 1/0/9        134              S I  WS-C2960X Gig 1/0/25
 +
weis26b242ogost2960-10.itsroot.net
 +
                  Ten 2/0/9        134              S I  WS-C2960X Gig 6/0/25
 +
'''weis26b241ogost2960-10.itsroot.net'''
 +
                  '''Ten 1/0/6'''        173              S I  WS-C2960X Gig 1/0/25
 +
weis26b241ogost2960-10.itsroot.net
 +
                  Ten 2/0/6        173              S I  WS-C2960X Gig 3/0/25
 +
weis26b044og2960labor-10.itsroot.net
 +
                  Ten 1/0/17        138              S I  WS-C2960X Gig 1/0/25
 +
weis26b24ugost2960-10.itsroot.net
 +
                  Ten 1/0/13        144              S I  WS-C2960X Gig 1/0/25
 +
weis26b06ug2960c-11.itsroot.net
 +
                  Ten 1/0/11        163              S I  WS-C2960C Gig 0/1
 +
...
 +
 
 +
(just for info) if you want to know more about the neighbor
 +
cdp weis26b241ogost2960-10.itsroot.net
 +
 
 +
 
 +
* So, you know now the accessswitch. Now login in to the accessswitch you found on  the neighbour table (weis26b241ogost2960-10) and serch it in the mac adress-table
 +
weis26b241ogost2960-10#sh mac address-table | include '''00d0.c971.2821'''
 +
  633    00d0.c971.2821    DYNAMIC    '''Gi3/0/14'''
 +
weis26b241ogost2960-10#
  
* login on the accessswitch named on the description
+
Eh voila, the port is '''Gi3/0/14''' on '''weis26b241ogost2960-10'''
weis26b241ogost2960-10
 

Aktuelle Version vom 3. Mai 2018, 15:09 Uhr

Wichtigste Befehle

State and overview

show running-configuration

show interfaces description

show interface status #shows effective status -

show interface status
...
Gi1/0/13  Production - VRF3  connected    854        a-full a-1000 10/100/1000BaseTX
Gi1/0/14  Production - VRF3  err-disabled 854          auto   auto 10/100/1000BaseTX
Gi1/0/15  Production - VRF3  notconnect   854          auto   auto 10/100/1000BaseTX
Gi1/0/16  Production - VRF3  notconnect   854          auto   auto 10/100/1000BaseTX
...


Config

configuring more than one interface:
interface range gigabitEthernet 1/0/13-24



Monitoring and logs:

terminal monitor #active monitor enable

show log


Backup:

wr # writes the running-config down

copy running-config tftp: # save config to tftp server





find a Switchport with an IP Address

example:

  • login to coreswitch
  • get the Mac addr
show arp | include 172.23.133.11
Internet  172.23.133.11          56   00d0.c971.2821  ARPA   Vlan633
  • show the port on witch the mac is located
sh mac address-table | include 00d0.c971.2821
633    00d0.c971.2821    DYNAMIC     Te1/0/6
  • have a look on witch accessswitch Te1/0/6 is
sh cdp neighbors

Capability Codes: R - Router, T - Trans Bridge, B - Source Route Bridge
                  S - Switch, H - Host, I - IGMP, r - Repeater,P - Phone,
                  D - Remote, C - CVTA, M - Two-port Mac Relay 

Device ID        Local Intrfce     Holdtme    Capability  Platform  Port ID
Brun06wt3og4500.itsroot.net
                 Ten 1/0/24        173              R S   WS-C4500X Ten 1/7
weis26b242ogost2960-10.itsroot.net
                 Ten 1/0/9         134              S I   WS-C2960X Gig 1/0/25
weis26b242ogost2960-10.itsroot.net
                 Ten 2/0/9         134              S I   WS-C2960X Gig 6/0/25
weis26b241ogost2960-10.itsroot.net
                 Ten 1/0/6         173              S I   WS-C2960X Gig 1/0/25
weis26b241ogost2960-10.itsroot.net
                 Ten 2/0/6         173              S I   WS-C2960X Gig 3/0/25
weis26b044og2960labor-10.itsroot.net
                 Ten 1/0/17        138              S I   WS-C2960X Gig 1/0/25
weis26b24ugost2960-10.itsroot.net
                 Ten 1/0/13        144              S I   WS-C2960X Gig 1/0/25
weis26b06ug2960c-11.itsroot.net
                 Ten 1/0/11        163              S I   WS-C2960C Gig 0/1
...

(just for info) if you want to know more about the neighbor

cdp weis26b241ogost2960-10.itsroot.net


  • So, you know now the accessswitch. Now login in to the accessswitch you found on the neighbour table (weis26b241ogost2960-10) and serch it in the mac adress-table
weis26b241ogost2960-10#sh mac address-table | include 00d0.c971.2821
 633    00d0.c971.2821    DYNAMIC     Gi3/0/14
weis26b241ogost2960-10#

Eh voila, the port is Gi3/0/14 on weis26b241ogost2960-10