cisco_sfp_and_port_commands
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| cisco_sfp_and_port_commands [2019/12/02 11:34] – walkeradmin | cisco_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> | + | <color orange> |
| + | <color orange> | ||
| \\ | \\ | ||
| \\ | \\ | ||
| Line 93: | Line 94: | ||
| \\ | \\ | ||
| < | < | ||
| - | -------------------------------------------------------------------------------- | + | sh int status |
| - | Port Name | + | |
| - | -------------------------------------------------------------------------------- | + | Port Name |
| - | Eth1/1 | + | Gi1/ |
| - | Eth1/2 | + | Gi1/ |
| - | Eth1/3 | + | Gi1/ |
| - | Eth1/4 | + | Gi1/ |
| + | Gi1/ | ||
| + | Gi1/ | ||
| + | Gi1/ | ||
| + | Gi1/ | ||
| + | Gi1/ | ||
| + | Gi1/ | ||
| + | Gi1/ | ||
| + | Gi1/ | ||
| + | Gi1/ | ||
| + | Gi1/ | ||
| + | Gi1/ | ||
| + | Gi1/ | ||
| + | Gi1/ | ||
| + | Gi1/ | ||
| + | Gi1/ | ||
| + | Gi1/ | ||
| + | Gi1/ | ||
| + | Gi1/0/22 | ||
| + | Gi1/ | ||
| + | Gi1/ | ||
| + | Gi1/ | ||
| + | Gi1/ | ||
| + | Gi1/ | ||
| + | Gi1/ | ||
| + | Gi1/ | ||
| + | Gi1/ | ||
| + | Gi1/ | ||
| + | Gi1/ | ||
| + | Gi1/ | ||
| + | Gi1/0/34 | ||
| + | Gi1/ | ||
| + | Gi1/0/36 | ||
| + | Gi1/ | ||
| + | Gi1/ | ||
| + | Gi1/ | ||
| + | Gi1/ | ||
| + | Gi1/ | ||
| + | Gi1/ | ||
| + | Gi1/0/43 | ||
| + | Gi1/ | ||
| + | Gi1/ | ||
| + | Gi1/ | ||
| + | Gi1/ | ||
| + | Gi1/ | ||
| </ | </ | ||
| Line 123: | Line 168: | ||
| DOM is not supported | DOM is not supported | ||
| </ | </ | ||
| - | --- // | + | |
| + | |||
| + | ---- | ||
| + | |||
| + | ==== Show Version ==== | ||
| + | \\ | ||
| + | Show Version gives information regarding the hardware, software and BIOS version of the switch. Use: <color # | ||
| + | < | ||
| + | Cisco Nexus Operating System (NX-OS) Software | ||
| + | TAC support: http:// | ||
| + | Documents: http:// | ||
| + | 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:// | ||
| + | |||
| + | Software | ||
| + | BIOS: version 1.9.0 | ||
| + | loader: | ||
| + | kickstart: version 6.0(2)A1(1d) | ||
| + | system: | ||
| + | Power Sequencer Firmware: | ||
| + | | ||
| + | BIOS compile time: | ||
| + | kickstart image file is: bootflash:/// | ||
| + | kickstart compile time: 1/30/2014 9:00:00 [01/30/2014 18:31:05] | ||
| + | system image file is: bootflash:/// | ||
| + | system compile time: | ||
| + | |||
| + | |||
| + | Hardware | ||
| + | cisco Nexus 3548 Chassis (" | ||
| + | Intel(R) Pentium(R) CPU @ 1.50GHz | ||
| + | with 4117860 kB of memory. | ||
| + | Processor Board ID FOC18220S2A | ||
| + | |||
| + | Device name: switch | ||
| + | bootflash: | ||
| + | |||
| + | 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 | ||
| + | </ | ||
| + | |||
| + | ---- | ||
| + | \\ | ||
| + | ====sh mac address-table interface x==== | ||
| + | \\ | ||
| + | Shows the mac table for a particular interface. | ||
| + | \\ | ||
| + | < | ||
| + | sh mac address-table interface gigabitEthernet 1/0/1 | ||
| + | |||
| + | |||
| + | Mac Address Table | ||
| + | ------------------------------------------- | ||
| + | |||
| + | Vlan Mac Address | ||
| + | ---- ----------- | ||
| + | 10 001d.aa16.a730 | ||
| + | 10 001d.aa1c.7b7c | ||
| + | 10 00e0.f42c.0bce | ||
| + | 10 1059.3202.e4c5 | ||
| + | 10 1059.3202.e5ae | ||
| + | 10 30ab.6a3a.11b6 | ||
| + | 10 3822.e2b6.3385 | ||
| + | 10 3ca8.2a07.a6dc | ||
| + | 10 3cd9.2b54.cd94 | ||
| + | 10 4016.7ea4.6f21 | ||
| + | 10 408d.5c1e.76bb | ||
| + | 10 7054.d2c5.08a5 | ||
| + | 10 7085.c2b4.51ad | ||
| + | 10 7898.e8f9.7ed0 | ||
| + | 10 b8a3.866a.4ad0 | ||
| + | 10 b8ac.6f2c.cf44 | ||
| + | 10 dca6.32e0.7e97 | ||
| + | 10 e89d.8709.d630 | ||
| + | 10 ecb1.d74a.441d | ||
| + | Total Mac Addresses for this criterion: 19 | ||
| + | </ | ||
| + | \\ | ||
| + | |||
| + | ---- | ||
| + | \\ | ||
| + | ==== interface down/up ==== | ||
| + | \\ | ||
| + | To set a Cisco interface down or up we use the ' | ||
| + | \\ | ||
| + | \\ | ||
| + | To bring down or up and interface, you must first select the interface, then issue the shutdown command. | ||
| + | \\ | ||
| + | < | ||
| + | interface gigabitEthernet 1/0/48 | ||
| + | |||
| + | shutdown | ||
| + | |||
| + | LINK-5-CHANGED: | ||
| + | |||
| + | exit | ||
| + | |||
| + | Switch#show interfaces gigabitEthernet 1/0/48 | ||
| + | |||
| + | GigabitEthernet1/ | ||
| + | Hardware is Gigabit Ethernet, address is d0ec.3549.1530 (bia d0ec.3549.1530) | ||
| + | MTU 1500 bytes, BW 1000000 Kbit/sec, DLY 10 usec, | ||
| + | | ||
| + | Encapsulation ARPA, loopback not set | ||
| + | Keepalive set (10 sec) | ||
| + | Auto-duplex, | ||
| + | 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" | ||
| + | Input queue: 0/2000/0/0 (size/ | ||
| + | Queueing strategy: fifo | ||
| + | Output queue: 0/40 (size/ | ||
| + | 5 minute input rate 0 bits/sec, 0 packets/ | ||
| + | 5 minute output rate 0 bits/sec, 0 packets/ | ||
| + | 0 packets input, 0 bytes, 0 no buffer | ||
| + | | ||
| + | 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 | ||
| + | </ | ||
| + | \\ | ||
| + | In the above example, we shutdown interface 48 on a Cisco, we then exit back up so we can run the ' | ||
| + | \\ | ||
| + | < | ||
| + | interface gigabitEthernet 1/0/48 | ||
| + | |||
| + | no shutdown | ||
| + | |||
| + | exit | ||
| + | |||
| + | Interface GigabitEthernet1/ | ||
| + | |||
| + | exit | ||
| + | |||
| + | show interfaces gigabitEthernet 1/0/48 | ||
| + | |||
| + | |||
| + | GigabitEthernet1/ | ||
| + | Hardware is Gigabit Ethernet, address is d0ec.3549.1530 (bia d0ec.3549.1530) | ||
| + | MTU 1500 bytes, BW 1000000 Kbit/sec, DLY 10 usec, | ||
| + | | ||
| + | Encapsulation ARPA, loopback not set | ||
| + | Keepalive set (10 sec) | ||
| + | Auto-duplex, | ||
| + | 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" | ||
| + | Input queue: 0/2000/0/0 (size/ | ||
| + | Queueing strategy: fifo | ||
| + | Output queue: 0/40 (size/ | ||
| + | 5 minute input rate 0 bits/sec, 0 packets/ | ||
| + | 5 minute output rate 0 bits/sec, 0 packets/ | ||
| + | 0 packets input, 0 bytes, 0 no buffer | ||
| + | | ||
| + | 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 | ||
| + | </ | ||
| + | \\ | ||
| + | Notice that the message says ' | ||
| + | \\ | ||
| + | ---- | ||
| + | |||
| + | |||
| + | // | ||
cisco_sfp_and_port_commands.1575286462.txt.gz · Last modified: (external edit)
