User Tools

Site Tools


cisco_sfp_and_port_commands

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
cisco_sfp_and_port_commands [2019/12/02 09:47] walkeradmincisco_sfp_and_port_commands [2021/04/17 17:30] (current) walkeradmin
Line 1: Line 1:
 ====== Cisco SFP and Port Commands ====== ====== Cisco SFP and Port Commands ======
-<color orange>Dec 2019</color>+<color orange>Dec 2019</color>\\  
 +<color orange>Updated Apr 2021</color>\\ 
 \\  \\ 
 \\  \\ 
Line 86: Line 87:
     0 Tx pause     0 Tx pause
 </file> </file>
 +
 +----
 +==== Show Interface Status ====
 +\\ 
 +Show Interface Status will display a summary of interfaces and their status. Use either <color #00a2e8>sh interface status</color> to show all interfaces, or <color #00a2e8>sh interface ehternet 1/1 status</color> to show specific interface.
 +\\ 
 +<file>
 +sh int status
 +
 +Port      Name               Status       Vlan       Duplex  Speed Type
 +Gi1/0/                     connected    10         a-full a-1000 10/100/1000BaseTX
 +Gi1/0/                     connected    10         a-full a-1000 10/100/1000BaseTX
 +Gi1/0/                     connected    10         a-full a-1000 10/100/1000BaseTX
 +Gi1/0/                     connected    10         a-full a-1000 10/100/1000BaseTX
 +Gi1/0/                     connected    10         a-full a-1000 10/100/1000BaseTX
 +Gi1/0/                     connected    10         a-full a-1000 10/100/1000BaseTX
 +Gi1/0/                     connected    10         a-full a-1000 10/100/1000BaseTX
 +Gi1/0/                     notconnect   10           auto   auto 10/100/1000BaseTX
 +Gi1/0/                     notconnect   10           auto   auto 10/100/1000BaseTX
 +Gi1/0/10                     notconnect   10           auto   auto 10/100/1000BaseTX
 +Gi1/0/11                     notconnect   10           auto   auto 10/100/1000BaseTX
 +Gi1/0/12                     notconnect   10           auto   auto 10/100/1000BaseTX
 +Gi1/0/13                     notconnect   10           auto   auto 10/100/1000BaseTX
 +Gi1/0/14                     notconnect   10           auto   auto 10/100/1000BaseTX
 +Gi1/0/15                     notconnect   10           auto   auto 10/100/1000BaseTX
 +Gi1/0/16                     notconnect   10           auto   auto 10/100/1000BaseTX
 +Gi1/0/17                     notconnect   10           auto   auto 10/100/1000BaseTX
 +Gi1/0/18                     notconnect   10           auto   auto 10/100/1000BaseTX
 +Gi1/0/19                     connected    20         a-full a-1000 10/100/1000BaseTX
 +Gi1/0/20                     connected    20         a-full a-1000 10/100/1000BaseTX
 +Gi1/0/21                     connected    20         a-full a-1000 10/100/1000BaseTX
 +Gi1/0/22                     notconnect   20           auto   auto 10/100/1000BaseTX
 +Gi1/0/23                     notconnect   20           auto   auto 10/100/1000BaseTX
 +Gi1/0/24                     notconnect   20           auto   auto 10/100/1000BaseTX
 +Gi1/0/25                     notconnect   20           auto   auto 10/100/1000BaseTX
 +Gi1/0/26                     notconnect   20           auto   auto 10/100/1000BaseTX
 +Gi1/0/27                     notconnect   20           auto   auto 10/100/1000BaseTX
 +Gi1/0/28                     notconnect   20           auto   auto 10/100/1000BaseTX
 +Gi1/0/29                     notconnect   20           auto   auto 10/100/1000BaseTX
 +Gi1/0/30                     notconnect   20           auto   auto 10/100/1000BaseTX
 +Gi1/0/31                     notconnect   30           auto   auto 10/100/1000BaseTX
 +Gi1/0/32                     connected    30         a-full a-1000 10/100/1000BaseTX
 +Gi1/0/33                     connected    30         a-full a-1000 10/100/1000BaseTX
 +Gi1/0/34                     connected    30         a-full a-1000 10/100/1000BaseTX
 +Gi1/0/35                     connected    30         a-full a-1000 10/100/1000BaseTX
 +Gi1/0/36                     connected    30         a-full a-1000 10/100/1000BaseTX
 +Gi1/0/37                     notconnect   30           auto   auto 10/100/1000BaseTX
 +Gi1/0/38                     notconnect   30           auto   auto 10/100/1000BaseTX
 +Gi1/0/39                     notconnect   30           auto   auto 10/100/1000BaseTX
 +Gi1/0/40                     notconnect   30           auto   auto 10/100/1000BaseTX
 +Gi1/0/41                     notconnect   40           auto   auto 10/100/1000BaseTX
 +Gi1/0/42                     connected    40         a-full a-1000 10/100/1000BaseTX
 +Gi1/0/43                     connected    40         a-full a-1000 10/100/1000BaseTX
 +Gi1/0/44                     connected    40         a-full a-1000 10/100/1000BaseTX
 +Gi1/0/45                     notconnect   40           auto   auto 10/100/1000BaseTX
 +Gi1/0/46                     notconnect   40           auto   auto 10/100/1000BaseTX
 +Gi1/0/47                     notconnect   40           auto   auto 10/100/1000BaseTX
 +Gi1/0/48                     notconnect   40           auto   auto 10/100/1000BaseTX
 +</file>
 +
 +----
 +
 +==== Show Interface Transceiver Details ====
 +\\ 
 +Show Interface Transceiver Details gives more specific information about the interface in a port. This is useful for SFPs, not so useful for fixed ethernet interfaces. Use: <color #00a2e8>sh interface transceiver details
 +</color>.
 +<file>
 +Ethernet1/1
 +    transceiver is present
 +    type is Unknown Type-(unknown)
 +    name is Amphenol
 +    part number is 603830001
 +    revision is N
 +    serial number is APF13350017WFF
 +    nominal bitrate is 10300 MBit/sec
 +    Link length supported for copper is 1 m
 +    cisco id is --
 +    cisco extended id number is 4
 +
 +DOM is not supported
 +</file>
 +
 +
 +----
 +
 +==== Show Version ====
 +\\ 
 +Show Version gives information regarding the hardware, software and BIOS version of the switch. Use: <color #00a2e8>sh version</color>
 +<file>
 +Cisco Nexus Operating System (NX-OS) Software
 +TAC support: http://www.cisco.com/tac
 +Documents: http://www.cisco.com/en/US/products/ps9372/tsd_products_support_serie
 +s_home.html
 +Copyright (c) 2002-2014, Cisco Systems, Inc. All rights reserved.
 +The copyrights to certain works contained herein are owned by
 +other third parties and are used and distributed under license.
 +Some parts of this software are covered under the GNU Public
 +License. A copy of the license is available at
 +http://www.gnu.org/licenses/gpl.html.
 +
 +Software
 +  BIOS:      version 1.9.0
 +  loader:    version N/A
 +  kickstart: version 6.0(2)A1(1d)
 +  system:    version 6.0(2)A1(1d)
 +  Power Sequencer Firmware:
 +             Module 1: version v3.1
 +  BIOS compile time:       10/13/2012
 +  kickstart image file is: bootflash:///n3500-uk9-kickstart.6.0.2.A1.1d.bin
 +  kickstart compile time:  1/30/2014 9:00:00 [01/30/2014 18:31:05]
 +  system image file is:    bootflash:///n3500-uk9.6.0.2.A1.1d.bin
 +  system compile time:     1/30/2014 9:00:00 [01/30/2014 19:39:25]
 +
 +
 +Hardware
 +  cisco Nexus 3548 Chassis ("48x10GE Supervisor")
 +  Intel(R) Pentium(R) CPU  @ 1.50GHz
 + with 4117860 kB of memory.
 +  Processor Board ID FOC18220S2A
 +
 +  Device name: switch
 +  bootflash:    2007040 kB
 +
 +Kernel uptime is 0 day(s), 4 hour(s), 23 minute(s), 57 second(s)
 +
 +Last reset
 +  Reason: Unknown
 +  System version: 6.0(2)A1(1d)
 +  Service:
 +
 +plugin
 +  Core Plugin, Ethernet Plugin
 +</file>
 +
 +----
 +\\ 
 +====sh mac address-table interface x====
 +\\ 
 +Shows the mac table for a particular interface.
 +\\ 
 +<file>
 +sh mac address-table interface gigabitEthernet 1/0/1
 +
 +
 +          Mac Address Table
 +-------------------------------------------
 +
 +Vlan    Mac Address       Type        Ports
 +----    -----------       --------    -----
 +  10    001d.aa16.a730    DYNAMIC     Gi1/0/1
 +  10    001d.aa1c.7b7c    DYNAMIC     Gi1/0/1
 +  10    00e0.f42c.0bce    DYNAMIC     Gi1/0/1
 +  10    1059.3202.e4c5    DYNAMIC     Gi1/0/1
 +  10    1059.3202.e5ae    DYNAMIC     Gi1/0/1
 +  10    30ab.6a3a.11b6    DYNAMIC     Gi1/0/1
 +  10    3822.e2b6.3385    DYNAMIC     Gi1/0/1
 +  10    3ca8.2a07.a6dc    DYNAMIC     Gi1/0/1
 +  10    3cd9.2b54.cd94    DYNAMIC     Gi1/0/1
 +  10    4016.7ea4.6f21    DYNAMIC     Gi1/0/1
 +  10    408d.5c1e.76bb    DYNAMIC     Gi1/0/1
 +  10    7054.d2c5.08a5    DYNAMIC     Gi1/0/1
 +  10    7085.c2b4.51ad    DYNAMIC     Gi1/0/1
 +  10    7898.e8f9.7ed0    DYNAMIC     Gi1/0/1
 +  10    b8a3.866a.4ad0    DYNAMIC     Gi1/0/1
 +  10    b8ac.6f2c.cf44    DYNAMIC     Gi1/0/1
 +  10    dca6.32e0.7e97    DYNAMIC     Gi1/0/1
 +  10    e89d.8709.d630    DYNAMIC     Gi1/0/1
 +  10    ecb1.d74a.441d    DYNAMIC     Gi1/0/1
 +Total Mac Addresses for this criterion: 19
 +</file>
 +\\ 
 +
 +----
 +\\ 
 +==== interface down/up ====
 +\\ 
 +To set a Cisco interface down or up we use the 'shutdown' command. 'shutdown' takes down the interface, 'no shutdown' brings it back up.
 +\\ 
 +\\ 
 +To bring down or up and interface, you must first select the interface, then issue the shutdown command.
 +\\ 
 +<file>
 +interface gigabitEthernet 1/0/48
 +
 +shutdown
 +
 +LINK-5-CHANGED: Interface GigabitEthernet1/0/48, changed state to administratively down
 +
 +exit
 +
 +Switch#show interfaces gigabitEthernet 1/0/48
 +
 +GigabitEthernet1/0/48 is administratively down, line protocol is down (disabled)
 +  Hardware is Gigabit Ethernet, address is d0ec.3549.1530 (bia d0ec.3549.1530)
 +  MTU 1500 bytes, BW 1000000 Kbit/sec, DLY 10 usec,
 +     reliability 255/255, txload 1/255, rxload 1/255
 +  Encapsulation ARPA, loopback not set
 +  Keepalive set (10 sec)
 +  Auto-duplex, Auto-speed, media type is 10/100/1000BaseTX
 +  input flow-control is on, output flow-control is unsupported
 +  ARP type: ARPA, ARP Timeout 04:00:00
 +  Last input never, output never, output hang never
 +  Last clearing of "show interface" counters never
 +  Input queue: 0/2000/0/0 (size/max/drops/flushes); Total output drops: 0
 +  Queueing strategy: fifo
 +  Output queue: 0/40 (size/max)
 +  5 minute input rate 0 bits/sec, 0 packets/sec
 +  5 minute output rate 0 bits/sec, 0 packets/sec
 +     0 packets input, 0 bytes, 0 no buffer
 +     Received 0 broadcasts (0 multicasts)
 +     0 runts, 0 giants, 0 throttles
 +     0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored
 +     0 watchdog, 0 multicast, 0 pause input
 +     0 input packets with dribble condition detected
 +     0 packets output, 0 bytes, 0 underruns
 +     0 output errors, 0 collisions, 1 interface resets
 +     0 unknown protocol drops
 +     0 babbles, 0 late collision, 0 deferred
 +     0 lost carrier, 0 no carrier, 0 pause output
 +     0 output buffer failures, 0 output buffers swapped out
 +</file>
 +\\ 
 +In the above example, we shutdown interface 48 on a Cisco, we then exit back up so we can run the 'show' command to check the status of the interface. Below we will bring the interface back up.
 +\\ 
 +<file>
 +interface gigabitEthernet 1/0/48
 +
 +no shutdown
 +
 +exit
 +
 +Interface GigabitEthernet1/0/48, changed state to down
 +
 +exit
 +
 +show interfaces gigabitEthernet 1/0/48
 +
 +
 +GigabitEthernet1/0/48 is down, line protocol is down (notconnect)
 +  Hardware is Gigabit Ethernet, address is d0ec.3549.1530 (bia d0ec.3549.1530)
 +  MTU 1500 bytes, BW 1000000 Kbit/sec, DLY 10 usec,
 +     reliability 255/255, txload 1/255, rxload 1/255
 +  Encapsulation ARPA, loopback not set
 +  Keepalive set (10 sec)
 +  Auto-duplex, Auto-speed, media type is 10/100/1000BaseTX
 +  input flow-control is on, output flow-control is unsupported
 +  ARP type: ARPA, ARP Timeout 04:00:00
 +  Last input never, output never, output hang never
 +  Last clearing of "show interface" counters never
 +  Input queue: 0/2000/0/0 (size/max/drops/flushes); Total output drops: 0
 +  Queueing strategy: fifo
 +  Output queue: 0/40 (size/max)
 +  5 minute input rate 0 bits/sec, 0 packets/sec
 +  5 minute output rate 0 bits/sec, 0 packets/sec
 +     0 packets input, 0 bytes, 0 no buffer
 +     Received 0 broadcasts (0 multicasts)
 +     0 runts, 0 giants, 0 throttles
 +     0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored
 +     0 watchdog, 0 multicast, 0 pause input
 +     0 input packets with dribble condition detected
 +     0 packets output, 0 bytes, 0 underruns
 +     0 output errors, 0 collisions, 2 interface resets
 +     0 unknown protocol drops
 +     0 babbles, 0 late collision, 0 deferred
 +     0 lost carrier, 0 no carrier, 0 pause output
 +     0 output buffer failures, 0 output buffers swapped out
 +</file>
 +\\ 
 +Notice that the message says 'interface is down' this just means nothing is plugged in, in the first example where we actually shutdown the interface it states that the interface is 'administratively down'
 +\\ 
 +----
 +
 +
 +//[[al@nwalker.co.uk|Alan Walker]] 2019/12/02 11:30//
 +
  
  
cisco_sfp_and_port_commands.1575280078.txt.gz · Last modified: (external edit)