Changes between Initial Version and Version 1 of CiscoCommands


Ignore:
Timestamp:
01/10/24 13:47:07 (10 months ago)
Author:
ypap
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • CiscoCommands

    v1 v1  
     1== Commands for managing of Cisco 2960G/S and 2924XL switches ==
     2
     3=== Add user ===
     4
     5{{{
     6config terminal
     7username <USERNAME> privilege 15 password <PASSWORD>
     8enable secret <PASSWORD>
     9!
     10line vty 0 15
     11login local
     12exit
     13exit
     14copy running-config startup-config
     15}}}
     16
     17=== Ports and VLANs status ===
     18
     19{{{
     20show interface
     21show interface status
     22show interface summary
     23show vlan
     24}}}
     25
     26=== Add port to VLAN ===
     27
     28{{{
     29configure terminal
     30interface FastEthernet 0/1
     31switchport access vlan 15
     32exit
     33copy running-config startup-config
     34}}}
     35
     36=== Add IP to a VLAN interface ===
     37
     38{{{
     39configure terminal
     40interface vlan <VLAN-ID>
     41ip address 10.42.42.<XX> 255.255.255.0
     42exit
     43copy running-config startup-config
     44}}}
     45
     46=== Restore a port that has been err-disabled ===
     47
     48First, check which port has been err-disabled:
     49
     50{{{
     51show interface status
     52show interface Gi0/10
     53}}}
     54
     55Then enable it again:
     56
     57{{{
     58enable
     59configure terminal
     60interface Gi0/10
     61shutdown
     62end
     63write
     64enable
     65configure terminal
     66interface Gi0/10
     67no shutdown
     68end
     69write
     70}}}
     71