meta data for this page
  •  

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
network:switches:cisco:cli [2024/07/18 11:17] niziaknetwork:switches:cisco:cli [2024/08/19 12:43] (current) niziak
Line 1: Line 1:
 ====== CLI ====== ====== CLI ======
  
 +===== info =====
 +
 +<code bash>
 +sh ver
 +</code>
 ===== passwords ===== ===== passwords =====
  
Line 85: Line 90:
 exit exit
 copy run start copy run start
-</code> 
- 
-==== mgmt if IP address ==== 
- 
-<code> 
-enable 
-conf term 
-interface FastEthernet1 
-ip address 192.168.28.31 255.255.252.0 
-no shutdown 
-end 
-</code> 
- 
-==== VLAN IP address ==== 
- 
-<code> 
-enable 
-configure terminal 
-interface vlan 1 
-no ip address DHCP 
-no ip address 
-end 
- 
-int vlan 28 
-ip address 192.168.28.31 255.255.252.0 
-no shutdown 
-exit 
- 
-ip default-gateway 192.168.28.1 
-ip name-server 192.168.28.1 
-ntp server 192.168.28.1 
-end 
- 
-show ip redirects 
-show spanning-tree vlan 28 
-sh int vlan 28 
- 
-copy running-config startup-config 
-</code> 
- 
-<code> 
-wr 
-copy running-config startup-config 
-</code> 
- 
-==== put one port in VLAN ==== 
- 
-<code> 
-conf term 
-interface Gi1/48 
-switchport access vlan 28 
-end 
-wr 
 </code> </code>
  
Line 143: Line 95:
 ===== reload ===== ===== reload =====
  
 +Reboots switch:
 <code>reload</code> <code>reload</code>
  
-===== RSTP ===== 
- 
-<code> 
-show spanning-tree summary 
-enable 
-config 
-spanning-tree mode ? 
-spanning-tree mode rapid-pvst 
- 
-spanning-tree vlan 1 priority 57344 
-spanning-tree vlan 2 priority 57344 
-spanning-tree vlan 28 priority 57344 
-spanning-tree vlan 255 priority 57344 
-exit 
- 
-show spanning-tree bridge 
- 
-wr 
-copy run star 
- 
-</code> 
- 
-Disable STP: 
- 
-<code> 
-enable 
-config terminal 
-Switch(config)#no spanning-tree vlan 1 
-wr 
-copy run star 
-</code> 
- 
-Enable STP trunk on one port: 
-<code> 
-interface GigabitEthernet1/1 
-no switchport nonegotiate 
-switchport mode dynamic auto 
-end 
-</code> 
  
 ===== Find MAC on ports ===== ===== Find MAC on ports =====
Line 189: Line 103:
 <code> <code>
 sh mac address-table vlan 1 sh mac address-table vlan 1
 +sh mac address-table vlan 1 | include 50eb\.f62e
 </code> </code>