Cisco/CBS220: Difference between revisions
< Cisco
(4 intermediate revisions by the same user not shown) | |||
Line 25: | Line 25: | ||
SwitchXXXXXX# | SwitchXXXXXX# | ||
</pre> | </pre> | ||
== Enable Mode == | |||
# end End current mode and change to enable mode | |||
end | |||
- | |||
# enable Turn on privileged mode command | |||
enable | |||
Switch>enable | |||
Switch# | |||
== Exit == | |||
# exit Exit current mode and down to previous mode | |||
exit | |||
== Top Level Commands == | |||
<pre> | |||
# ? | |||
cbd CBD host configuration | |||
clear Reset functions | |||
clock Manage the system clock | |||
configure Configuration from vty interface | |||
copy Copy from one file to another | |||
debug Debug Options | |||
delete Delete a file from the flash file system | |||
dir Display the list of files on the flash file system | |||
disable Turn off privileged mode command | |||
end End current mode and change to enable mode | |||
exit Exit current mode and down to previous mode | |||
no Negate a command or set its defaults | |||
ping Send ICMP ECHO_REQUEST to network hosts | |||
reload Halt and perform a cold restart | |||
renew Renew a resource | |||
show Show running system information | |||
terminal Terminal configuration | |||
traceroute Traceroute | |||
write Write running configuration to memory | |||
</pre> | |||
== Copy == | |||
<pre> | |||
#copy ? | |||
active-image Current active image | |||
backup-config Copy from the backup configuration file. | |||
-- Only to a file on the flash or to a TFTP server | |||
Example: #copy backup-config tftp://10.0.0.2/saved_cfg | |||
flash:// Copy from a file on the flash memory (flash://filename) | |||
mirror-config Copy from the current mirror configuration file. | |||
Example: #copy mirror-config running-config | |||
running-config Copy from the current running configuration file. | |||
-- Only to another configuration file, or to a TFTP | |||
server | |||
Example: #copy running-config startup-config | |||
startup-config Copy from the startup configuration file. | |||
-- Only to a file on the flash or to a TFTP server | |||
Example: #copy startup-config tftp://10.0.0.2/saved_cfg | |||
tftp:// Source URL (tftp://ip address/filename) for a file on | |||
a TFTP network server from which to download. | |||
Examples: #copy tftp://10.1.2.3/saved-config | |||
startup-config | |||
#copy tftp://10.4.5.6/my_image.bin flash://image-1 | |||
</pre> | |||
== Reload == | |||
# reload Halt and perform a cold restart | |||
== Serial Console == | == Serial Console == | ||
Line 209: | Line 284: | ||
Do you want to erase all files on nvram and reboot? [y/n] y | Do you want to erase all files on nvram and reboot? [y/n] y | ||
*Oct 16 2021 05:19:07.670+0000: %SYSTEM-5-FACTORY_RESTORE: System restore to factory default | *Oct 16 2021 05:19:07.670+0000: %SYSTEM-5-FACTORY_RESTORE: System restore to factory default | ||
</pre> | |||
ref: <ref>How To Delete Configuration of a Cisco Router and Switches? - https://www.geeksforgeeks.org/how-to-delete-configuration-of-a-cisco-router-and-switches/</ref> | |||
== hostname == | |||
conf t | |||
hostname [NAME] | |||
== Configure VLAN == | |||
conf t | |||
vlan [ID] | |||
<pre> | |||
Switch#conf t | |||
Switch(config)#vlan 999 | |||
Switch(config-vlan)# | |||
Switch#sh vlan | |||
VID | VLAN Name | Untagged Ports | Tagged Ports | Type | |||
-------+------------------+------------------------------+------------------------------+--------- | |||
1 | default | gi1-48,te1-4,po1-8 | --- | Default | |||
999 | VLAN0999 | --- | --- | Static | |||
</pre> | </pre> | ||
Line 380: | Line 478: | ||
! | ! | ||
</pre> | </pre> | ||
== Disable or Default Config == | |||
# no Negate a command or set its defaults | |||
<pre> | |||
#no ? | |||
aaa Authentication, Authorization and Accounting is used to | |||
manage user access to the system | |||
banner Set banner display message | |||
bonjour Enables globally MDNS advertisement and responding to | |||
MDNS queries | |||
boot Boot Commands | |||
bridge Global bridge table configuration | |||
ca-certificate CA Certificate command | |||
cbd CBD host configuration | |||
cdp Global CDP configuration subcommands | |||
channel-group EtherChannel configuration | |||
class-map This command create class map and enter class map configur | |||
ation mode. Use no form in order to delete the class | |||
clock Manage the system clock | |||
crypto Global cryptographic features configuration subcommands | |||
dot1x 802.1x configuration | |||
eee EEE configuration | |||
enable Modify enable password parameters | |||
errdisable Error-Disable shutdown commands | |||
gvrp Global GVRP configuration commands | |||
ip Global IP configuration commands | |||
ipv6 IPV6 configuration | |||
jumbo-frame Jumbo Frame configuration | |||
lacp LACP Configuration | |||
lldp Global LLDP configuration subcommands | |||
logging Configure message logging facilities | |||
loopback-detection loopback-detection | |||
mac MAC configuration | |||
management IP management | |||
management-vlan Management VLAN configuration | |||
monitor Monitor configuration | |||
passwords Passwords configuration | |||
pnp Configure PnP | |||
policy-map This command create policy map and enter policy map config | |||
uration mode. Use no form to delete the policy map | |||
port Interface status and configuration | |||
qos Enable/Disable QoS on the device and enter the QoS mode (a | |||
dvance/basic) | |||
radius-server Modify RADIUS parameters | |||
rate-limit Use the rate-limit interface configuration command to limi | |||
t the rate of the incoming traffic. Use the no form of thi | |||
s command to disable rate limit | |||
rmon Remote Monitoring (RMON) configuration subcommand | |||
security-suite Security protections | |||
service Service options | |||
snmp-server Modify SNMP engine parameters | |||
sntp Configure SNTP server address. | |||
spanning-tree Spanning Tree Subsystem | |||
tacacs-server TACACS server command | |||
time-range Enters time-range configuration mode and defines time rang | |||
es for functions | |||
traffic-shape Excess burst size configuration | |||
username Establish User Name Authentication | |||
vlan VLAN commands | |||
voice Voice management | |||
</pre> | |||
== Issues == | |||
=== Drop unrecognized TLV === | |||
Issue: | |||
*Sep 24 2021 00:02:59.480+0000: %LLDP-5-TLV_UNRECOGNIZE: Drop unrecognized TLV on port GigabitEthernet1 | |||
Cause: | |||
Solution: | |||
== keywords == | == keywords == | ||
[[Category:Cisco]] | [[Category:Cisco]] |
Latest revision as of 22:40, 28 May 2025
End of Sale / End of Life
"Cisco announces the end-of-sale Cisco 220 Series Smart Switches. The last day to order the affected product(s) is July 30, 2022."
Which is confusing, as this would seem to indicate that the replacement for this document is the Cisco 220 switch?
Default Login
cisco / cisco
When you first login, it will ask you to change username and password:
Press any key to continue Username: cisco Password: ***** Please change your password from the default settings. Please change the password for better protection of your network. Enter old password :***** Enter new username :admin Enter new password :******** Confirm new password:******** SwitchXXXXXX#
Enable Mode
# end End current mode and change to enable mode
end
-
# enable Turn on privileged mode command
enable
Switch>enable Switch#
Exit
# exit Exit current mode and down to previous mode
exit
Top Level Commands
# ? cbd CBD host configuration clear Reset functions clock Manage the system clock configure Configuration from vty interface copy Copy from one file to another debug Debug Options delete Delete a file from the flash file system dir Display the list of files on the flash file system disable Turn off privileged mode command end End current mode and change to enable mode exit Exit current mode and down to previous mode no Negate a command or set its defaults ping Send ICMP ECHO_REQUEST to network hosts reload Halt and perform a cold restart renew Renew a resource show Show running system information terminal Terminal configuration traceroute Traceroute write Write running configuration to memory
Copy
#copy ? active-image Current active image backup-config Copy from the backup configuration file. -- Only to a file on the flash or to a TFTP server Example: #copy backup-config tftp://10.0.0.2/saved_cfg flash:// Copy from a file on the flash memory (flash://filename) mirror-config Copy from the current mirror configuration file. Example: #copy mirror-config running-config running-config Copy from the current running configuration file. -- Only to another configuration file, or to a TFTP server Example: #copy running-config startup-config startup-config Copy from the startup configuration file. -- Only to a file on the flash or to a TFTP server Example: #copy startup-config tftp://10.0.0.2/saved_cfg tftp:// Source URL (tftp://ip address/filename) for a file on a TFTP network server from which to download. Examples: #copy tftp://10.1.2.3/saved-config startup-config #copy tftp://10.4.5.6/my_image.bin flash://image-1
Reload
# reload Halt and perform a cold restart
Serial Console
Baud rate: 115200
tio -b 115200 /dev/ttyUSB0
Show Running Config
sh run show running-config
Show Startup Config
sh start sh startup-config
Show IP
sh ip
#sh ip IP Address: 192.168.1.254 Subnet Netmask: 255.255.255.0 Default Gateway: 192.168.1.1
Show Mac table
# address-table Bridge MAC address table configuration
sh mac ad sh mac address-table
Show VLAN
# vlan Display VLAN information
sh vlan
#sh vlan VID | VLAN Name | Untagged Ports | Tagged Ports | Type -------+------------------+------------------------------+------------------------------+--------- 1 | default | gi1-48,te1-4,po1-8 | --- | Default
Show arp
# arp Show the IP ARP translation table
sh arp
Show LACP
sh lacp neighbor
# sh lacp neighbor Flags: S - Device is sending Slow LACPDUs F - Device is sending Fast LACPDUs A - Device is in Active mode P - Device is in Passive mode
Show lldp
sh lldp neighbors
# sh lldp neighbor Port | Device ID | Port ID | SysName | Capabilities | TTL ---- + ----------------- + ---------------- + ----------------- + -------------- + ----- gi1 | C0:C5:20:XX:XX:XX |C0:C5:20:XX:XX:XX |IDF-SWITCH-123 | Bridge | 112
Show CDP
# neighbor CDP neighbor entires
sh cdp neighbor
#sh cdp neighbor Capability Codes: R - Router, T - Trans Bridge, B - Source Route Bridge S - Switch, H - Host, I - IGMP, r - Repeater, P - VoIP Phone M - Remotely-Managed Device, C - CAST Phone Port, W - Two-Port MAC Relay Device ID Local Adv Holdtime Capability Platform Port ID Interface Ver. ------------------ ----------- ---- -------- ---------- ------------ -----------
Show Error Disable Recovery
# recovery Err-Disable shutdown recovery commands
#sh errdisable recovery ErrDisable Reason | Timer Status --------------------------+--------------- bpduguard | disabled selfloop | disabled broadcast-flood | disabled unknown-multicast-flood | disabled unicast-flood | disabled acl | disabled psecure-violation | disabled dhcp-rate-limit | disabled arp-inspection | disabled dot1x-src-address | disabled loopback-detection | disabled Timer Interval : 300 seconds Interfaces that will be enabled at the next timeout: Port | Error Disable Reason | Time Left -----+--------------------------+------------
Configure Terminal
# terminal Configuration terminal
conf term configure terminal
WARNING: once you enter "configure terminal", the "show" command no longer appears to work
Write Configuration
w mem write mem write memory
Show Interfaces
sh interfaces status GigabitEthernet 1-48
Show Version Details
sh ver show version
#sh ver Cisco CBS220 Series Switch Software, Version 2.0.1.5, RELEASE SOFTWARE Copyright (c) 2021 by Cisco Systems, Inc. Compiled Sep 24 2021 - 13:29:15 ROM: Bootstrap program is CBS220 boot loader BOOTLDR: CBS220 Boot Loader Version 1.0.0.17, RELEASE SOFTWARE Compiled Jun 23 2021 - 13:32:02 SwitchXXXXXX uptime is 22 days, 4 hours, 59 mins, 22 secs system image is image-1 Processor 1000MHz, with 256M bytes of memory. 48 Gigabit Ethernet interfaces 0 Fast Ethernet interfaces 64M bytes of flash memory Base MAC Address : 74:11:B2:XX:XX:XX IP Address : 192.168.1.254 Subnet Mask : 255.255.255.0 Model Number : CBS220-48T-4X Serial Number : DNI264XXXXX PID : CBS220-48T-4X VID : V02
Erase Startup Config
# erase Erase all files on nvram # memory write to memory
write erase
#write erase Do you want to erase all files on nvram and reboot? [y/n] y *Oct 16 2021 05:19:07.670+0000: %SYSTEM-5-FACTORY_RESTORE: System restore to factory default
ref: [1]
hostname
conf t hostname [NAME]
Configure VLAN
conf t vlan [ID]
Switch#conf t Switch(config)#vlan 999 Switch(config-vlan)# Switch#sh vlan VID | VLAN Name | Untagged Ports | Tagged Ports | Type -------+------------------+------------------------------+------------------------------+--------- 1 | default | gi1-48,te1-4,po1-8 | --- | Default 999 | VLAN0999 | --- | --- | Static
Default Config
SwitchXXXXXX#sh run config-file-header CBS220-48T-4X SwitchXXXXXX v2.0.1.5 CLI v1.0 @ ! ! ! username "cisco" privilege admin secret 8 $8$xxxxxxxxxxxxxxxxxxxxxxxxxxx ! ! ! sntp server pool.ntp.org sntp server time-a.timefreq.bldrdoc.gov sntp server time-b.timefreq.bldrdoc.gov sntp server time-c.timefreq.bldrdoc.gov sntp server time-pnp.cisco.com ! voice vlan oui-table add 00:E0:BB 3COM voice vlan oui-table add 00:03:6B Cisco voice vlan oui-table add 00:E0:75 Veritel voice vlan oui-table add 00:D0:1E Pingtel voice vlan oui-table add 00:01:E3 Siemens voice vlan oui-table add 00:60:B9 NEC/Philips voice vlan oui-table add 00:0F:E2 H3C voice vlan oui-table add 00:09:6E Avaya ! ! ! ! ! spanning-tree mst configuration name "74:11:B2:XX:XX:XX" ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! interface gi1 ! interface gi2 ! interface gi3 ! interface gi4 ! interface gi5 ! interface gi6 ! interface gi7 ! interface gi8 ! interface gi9 ! interface gi10 ! interface gi11 ! interface gi12 ! interface gi13 ! interface gi14 ! interface gi15 ! interface gi16 ! interface gi17 ! interface gi18 ! interface gi19 ! interface gi20 ! interface gi21 ! interface gi22 ! interface gi23 ! interface gi24 ! interface gi25 ! interface gi26 ! interface gi27 ! interface gi28 ! interface gi29 ! interface gi30 ! interface gi31 ! interface gi32 ! interface gi33 ! interface gi34 ! interface gi35 ! interface gi36 ! interface gi37 ! interface gi38 ! interface gi39 ! interface gi40 ! interface gi41 ! interface gi42 ! interface gi43 ! interface gi44 ! interface gi45 ! interface gi46 ! interface gi47 ! interface gi48 ! interface te1 ! interface te2 ! interface te3 ! interface te4 ! ! ! !
Disable or Default Config
# no Negate a command or set its defaults
#no ? aaa Authentication, Authorization and Accounting is used to manage user access to the system banner Set banner display message bonjour Enables globally MDNS advertisement and responding to MDNS queries boot Boot Commands bridge Global bridge table configuration ca-certificate CA Certificate command cbd CBD host configuration cdp Global CDP configuration subcommands channel-group EtherChannel configuration class-map This command create class map and enter class map configur ation mode. Use no form in order to delete the class clock Manage the system clock crypto Global cryptographic features configuration subcommands dot1x 802.1x configuration eee EEE configuration enable Modify enable password parameters errdisable Error-Disable shutdown commands gvrp Global GVRP configuration commands ip Global IP configuration commands ipv6 IPV6 configuration jumbo-frame Jumbo Frame configuration lacp LACP Configuration lldp Global LLDP configuration subcommands logging Configure message logging facilities loopback-detection loopback-detection mac MAC configuration management IP management management-vlan Management VLAN configuration monitor Monitor configuration passwords Passwords configuration pnp Configure PnP policy-map This command create policy map and enter policy map config uration mode. Use no form to delete the policy map port Interface status and configuration qos Enable/Disable QoS on the device and enter the QoS mode (a dvance/basic) radius-server Modify RADIUS parameters rate-limit Use the rate-limit interface configuration command to limi t the rate of the incoming traffic. Use the no form of thi s command to disable rate limit rmon Remote Monitoring (RMON) configuration subcommand security-suite Security protections service Service options snmp-server Modify SNMP engine parameters sntp Configure SNTP server address. spanning-tree Spanning Tree Subsystem tacacs-server TACACS server command time-range Enters time-range configuration mode and defines time rang es for functions traffic-shape Excess burst size configuration username Establish User Name Authentication vlan VLAN commands voice Voice management
Issues
Drop unrecognized TLV
Issue:
*Sep 24 2021 00:02:59.480+0000: %LLDP-5-TLV_UNRECOGNIZE: Drop unrecognized TLV on port GigabitEthernet1
Cause:
Solution:
keywords
- ↑ How To Delete Configuration of a Cisco Router and Switches? - https://www.geeksforgeeks.org/how-to-delete-configuration-of-a-cisco-router-and-switches/