SlideShare a Scribd company logo
Sumario de Comandos
                                Comandos Básicos
   Comandos Básico del IOS                             Comandos Básico CLI
Switch(config)#hostname hostname            Switch> (enable) set system name name-string
                                            Switch> (enable) set prompt name (for different
                                            prompt)

                 The switch in-band management, management vlan
Switch(config)#interface vlan 1             Switch> (enable) set interface sc0 up
Switch(config-if)#ip address ip-address     Switch> (enable) set interface sc0 ip-address
netmask                                     netmask broad
Switch(config-if)#ip default-gateway        Switch> (enable) set interface sc0 vlan
ipaddress                                   (default = 1)
                                            Switch> (enable) set ip route default gateway-
                                            address

Ends and Exits
Switch(config-if)#end
Switch#
Switch(config-if)#exit
Switch(config)#
Switch(vlan)#end
Switch#

                                       Session Timeout
Switch(config-line)#exec-timeout            Switch> (enable) set logout minutes
minutes
                                      Salvar configuración
Switch#copy running-config startup-         {Config saved automatically}
config
                                            Switch> (enable) write net (upload)
Switch#copy running-config tftp
                                            Switch> (enable) configure net download)
Switch#copy tftp running-config
                                            Switch> (enable) copy config [flash |file-id |
                                            tftp]
                                            Switch> (enable) copy flash [flash |file-id |
                                            config]
                           Comando Show Visualización Configuración
Switch#show running-config                  Switch> (enable) show config [all]
Switch#show ip interface                    Switch> (enable) show port mod/num
                                            Switch> (enable) show interface
                                            Switch> (enable) show module
Comandos Básicos
   Comandos Básico del IOS                              Comandos Básico CLI
                                      Borrar configuración
Switch#erase startup-config                 Do Both of these:
1900 Switches:                              Switch> (enable) clear config all
1900-SW#(config)#delete nvram               Switch> (enable) clear vtp
1900-SW#(config)#delete vtp
1900-Switch#show ip

                                          Passwords
Set EXEC level password                     Set privileged level password
Switch(config)#enable password level 1      Switch> (enable) set enablepass
password
                                            vty and con passwords
Set privileged level password
                                            Switch> (enable) set password
Switch(config)#enable password level 15
password
vty and con passwords
Switch(config)#line vty vty-first vty-
last
Switch(config-line)#password password
Switch(config)#line con 0
Switch(config-line)#password password

                                  Comandos de Interfaces
Switch(config)#interface fastethernet 0     Switch> (enable) set port enable mod/num (enable
Switch(config-if)#description               a port or a range of ports)
description-string                          Switch> (enable) set port name mod/num
Switch(config-if)#speed [10 | 100 |         description
auto] (Ether only)                          Switch> (enable) set port speed mod/num [10 |
Switch(config-if)#duplex [auto | full |     100 | auto]
half] (Ether only)                          Switch> (enable) set port duplex mod/num [auto
                                            | full | half]
Comandos Show
                                            (auto sets speed and duplex)
Switch#show ip
                                            Comandos Show
                                            Switch> (enable) show interface
                                            Switch> (enable) show port name mod/num

                                             CDP
Switch(config-if)#cdp enable                Switch> (enable) set cdp {enable|disable}
                                            mod/port
Comandos Show
                                            Comandos Show
Switch#show cdp inteface type mod/num
                                            Switch> (enable) show cdp neighbors [mod/port]
Switch#show cdp neighbors type mod/num      [vlan |duplex |capabilities | detail]
[detail]
VLANs
   Comandos Básico del IOS     Comandos Básico CLI
                           The switch in-band management, management vlan
Switch(config)#interface vlan 1                     Switch> (enable) set interface sc0
                                                    ipaddress netmask broad
Switch(config-if)#ip address ip-address
netmask                                             Switch> (enable) set interface sc0 vlan
                                                    (default = 1)
Switch(config-if)#ip default-gateway
ipaddress                                           Switch> (enable) set ip route default
                                                    gateway-address
                                           Creación VLANs
Switch#vlan database                                Switch> (enable) set vlan vlan-num [name
                                                    name]
Switch(vlan)#vlan vlan-num name vlan-name
                                                    Switch> (enable) set vlan vlan-num
Switch(config)#interface fastethernet 0             mod/num,list
Switch(config-if)#switchport access vlan            Switch> (enable) clear vlan vlan-
vlan-num
Switch(config-if)#no switchport access vlan
vlan-num
1900 Switches
1900-SW(config-if)#vlan-membership static
vlan-num (Doesn’t exist)

Comandos Show                                       Comandos Show
Switch#show vlan brief                              Switch> (enable) show vlan
Switch#show ip                                      Switch> (enable) show interface
                                             VLAN Trunks
                                              Publicación
Switch(config)#interface fastethernet 0             Switch> (enable) set trunk mod/port [on |
                                                    off |desirable | auto | nonegotiate] [isl
Switch(config-if)#switchport mode [access |         | dot1q | dot10 | lane | negotiate] vlan-
multi | trunk]                                      range

Switch(config-if)#switchport trunk                  Switch> (enable) clear trunk mod/port
encapsulation {isl|dot1q}
                                                    vlan-range (must remove as all vlans trunked by
Otros comandos                                      default)
Switch(config-if)#switchport trunk allowed
vlan remove vlan-list (must remove as all trunked
by default)

Switch(config-if)#switchport trunk allowed
vlan add vlan-list (then add vlans to be trunked)

Switches 1900
Switch(config-if)#trunk on

Switch(config-if)#no trunk-vlan vlan-list
Comandos Show                                       Comandos Show
Switch#show interface mod/num switchport            Switch> (enable) show trunk
Show port capabilities
                                                    Switch> (enable) show port capabilities
                                                    mod/num
VLANs
    Comandos Básico del IOS     Comandos Básico CLI
                                      VTP (VLAN Trunking Protocol)
                                            Habilitación de VTP

Switch#vlan database                                      Switch> (enable) set vtp [domain
                                                          domainname][mode {server | client |
Switch(vlan)#vtp domain domain-name                       transparent}] [password password]
Switch(vlan)#vtp {server | client |
transparent}                                              Switch> (enable) set vtp v2 enable (version
Switch(vlan)#vtp password password
Switch(vlan)#vtp v2-mode (version2)

                                                   VTP Pruning

Switch(vlan)#vtp pruning                                  Switch> (enable) set vtp pruning enable
                                                          Switch> (enable) set vtp pruneeligible
Switch(config-if)#switchport trunk pruning                vlan-range
vlan remove vlan-list (remove vlans from pruning)
                                                          Switch> (enable) clear vtp pruning
                                                          vlanrange
Comandos Show                                             Comandos Show
Switch#show vtp                                           Switch> (enable) show vtp domain
Switch#show vtp status                                    Switch> (enable) show vtp statistics
Switch#show vtp counters                                  Switch> (enable) show vlan




                                    Spanning Tree Protocol
        Comandos Básico del IOS                                         Comandos Básico CLI
                       Habilitación de Spanning Tree (Habilitado por Omisión)
Switch(config)#spantree vlan-list                     Switch> (enable) set spantree enable [all |
                                                      mod/num]
(Enabled by default)



                                    Otros comandos de configuración

Bridge Priority                                       Bridge Priority

Switch(config)#spanning-tree [vlan                    Switch> (enable) set spantree priority
vlanlist] priority prty                               priority vlan (Lower wins, Priority default = 32,768)
Port Cost                                             Port Cost
                                                      Switch> (enable) set spantree portcost
Switch(config-if)#spanning-tree [vlan vlan-list]      mod/num cost (Lower wins)
cost cost
                                                      Switch> (enable) set spantree portvlancost
                                                      mod/num [cost cost] [vlanlist]
Spanning Tree Protocol
         Comandos Básico del IOS                                         Comandos Básico CLI
Port Priority                                            Port Priority
Switch(config-if)#spanning-tree [vlan vlan-list] port-   Switch> (enable) set spantree portpri mod/num
priority port-priority                                   cost (Lower wins, Priority default = 32, range 0-63)

                                                         Switch> (enable) set spantree portvlanpri
                                                         mod/num priority vlan-list

Root Bridge                                              Root Bridge
                                                         Switch> (enable) set spantree root
N/A                                                      [secondary] [vlan-list][dia diameter] [hello
                                                         hellotime]

                                                         (Reduces default priority of 32,768 to 8,192)
                                                     STP Timers

Switch(config)#spanning-tree [vlan                       Switch> (enable) set spantree hello interval
vlanlist][hello-time seconds]                            [vlan]
(Default = 2 secs )                                      Switch> (enable) set spantree fwddelay delay
                                                         [vlan]
Switch(config)#spanning-tree [vlan
vlanlist][forward-time seconds]                          Switch> (enable) set spantree maxage
                                                         agingtime [vlan]
(Default = 15 secs )
                                                         Switch> (enable) set spantree root
Switch(config)#spanning-tree [vlan                       [secondary] [vlan-list] [dia diameter] [hello
vlanlist][max-age seconds]                               hellotime]
(Default = 20 secs )                                     (Lower wins, Priority default = 32,768)

                                  STP PortFast, UplinkFast, BackboneFast

Switch(config)#spanning-tree portfast                    Switch> (enable) set spantree portfast
                                                         [mod/num] [enable|disable]
Or
                                                         Switch> (enable) set spantree uplinkfast
Switch(config)#spantree start-forwarding                 [enable|disable] [rate update-rate]
                                                         [allprotocols off | on]
(For server and workstation ports)
                                                         Switch> (enable) set spantree backbonefast
Switch(config)#spanning-tree uplinkfast                  [enable|disable]
[max-update-rate pkts-per-sec]
                                                         (Must be on all switches, when receives inferior BPDU)
(For access switches when direct knowledge of failure)

                                                  Comandos Show

Switch#show spanning-tree [vlan]                         Switch> (enable) show spantree [vlan]
Switch#show spanning-tree mod/num                        Switch> (enable) show spantree mod/num




                                          Inter-VLAN Routing
                                                                 5000 Integrated Route Processor
  External Route Processor Commands
                                                                           Commands
VLANs – created at the switch level, but controlled at
the route processor level.
Inter-VLAN Routing
                                                       5000 Integrated Route Processor
 External Route Processor Commands
                                                                 Commands
External Route Processor                       Integrated Route Processor
Router(config)#interface ethernet 0            Switch> (enable) session module-number
Router(config-if)#encapsulation [isl |         *Router(config)#interface vlan-
dot1q] vlan-number                             interfacenumber
Router(config-if)#ip address ip-address        Router(config-if)#ip address ip-address
subnet-mask                                    subnet-mask

                                      Configuración de ruteo
Router(config)#ip routing                      Router(config)#ip routing
Router(config)#router routing-protocol         Router(config)#router routing-protocol
                                               Router(config-router)#network network
Router(config-router)#network network
                                               * Differs from:
                                               Switch(config)#interface vlan 1
                                               Switch(config)#assigns ip address to switch mngt
                                               interface

                                               Router(config)#configures vlan interface on
                                               RSM
            Comandos Básico del IOS                              Comandos Básico CLI
Default Gateway                                Default Gateway
Switch(config)#ip default-gateway ip           Switch> (enable) set ip route destination
address
                                               gateway metric
Comandos Show
                                               Comandos Show
Switch#show ip
                                               Switch> (enable) show module mod-number

More Related Content

PDF
The bryant advantage 150 commands
PDF
ccna cheat_sheet
DOCX
How to configure cisco router password
DOCX
Ccna command
DOC
Cisco router command configuration overview
PDF
Cisco router-commands
PPT
Ciso 4 ospf
The bryant advantage 150 commands
ccna cheat_sheet
How to configure cisco router password
Ccna command
Cisco router command configuration overview
Cisco router-commands
Ciso 4 ospf

What's hot (17)

PDF
Cisco CCENT Cram Notes
PDF
Comandos
DOC
Router commands
PDF
Router commands
PDF
Open MP cheet sheet
DOC
Cisco switch commands cheat sheet
PDF
Ccna voice study summary 460
PDF
DOCX
Huawei cisco command conversion
PDF
Composants et fonctionnement d'un Switch Cisco
PDF
Ccna icnd2-labs exercices
DOC
Huawei switch configuration commands
DOC
Arp Dan Ipconfig Syntax
PDF
Athenticated smaba server config with open vpn
PDF
Cisco commands List for Beginners (CCNA, CCNP)
PDF
Cisco vs. huawei CLI Commands
DOC
9210 commissioning manual
Cisco CCENT Cram Notes
Comandos
Router commands
Router commands
Open MP cheet sheet
Cisco switch commands cheat sheet
Ccna voice study summary 460
Huawei cisco command conversion
Composants et fonctionnement d'un Switch Cisco
Ccna icnd2-labs exercices
Huawei switch configuration commands
Arp Dan Ipconfig Syntax
Athenticated smaba server config with open vpn
Cisco commands List for Beginners (CCNA, CCNP)
Cisco vs. huawei CLI Commands
9210 commissioning manual
Ad

Similar to Comandos routing switching (20)

DOC
Cisco 2960 basic configuration – vlan configuration
DOCX
Basic Switch Configurations
PDF
Packet Tracer da Cisco (Configuração Básica) Professor Fernando Maviuco - 202...
DOCX
How to configure vlan, stp, dtp step by step guide
PPTX
labffbhhhhjjjjjjjjj bnbbnv material.pptx
PDF
CCNA R&S 2 3 4 All Commands
DOC
Resumen vlan configuracion basica
PDF
cisco ccna cheat_sheet
PDF
Ncat ccna cheat sheet
PDF
Cisco Commands
DOCX
Configuración del dial peer
PDF
PPTX
Cisco Router Basic Configuraiton
PPTX
VLAN, VTP, DTP, Ether channel Cheat Sheet With examples.pptx
PDF
Simulasi vlan
DOCX
Ccna 4 final lab switchi
PDF
commandes_CHEAT_SH_2.pdf
PDF
Basic cisco commands_by_marcus_nielson_2
PDF
Ciso commands
PDF
Ciso commands
Cisco 2960 basic configuration – vlan configuration
Basic Switch Configurations
Packet Tracer da Cisco (Configuração Básica) Professor Fernando Maviuco - 202...
How to configure vlan, stp, dtp step by step guide
labffbhhhhjjjjjjjjj bnbbnv material.pptx
CCNA R&S 2 3 4 All Commands
Resumen vlan configuracion basica
cisco ccna cheat_sheet
Ncat ccna cheat sheet
Cisco Commands
Configuración del dial peer
Cisco Router Basic Configuraiton
VLAN, VTP, DTP, Ether channel Cheat Sheet With examples.pptx
Simulasi vlan
Ccna 4 final lab switchi
commandes_CHEAT_SH_2.pdf
Basic cisco commands_by_marcus_nielson_2
Ciso commands
Ciso commands
Ad

More from 1 2d (20)

DOCX
Notas clase
DOCX
Notas clase java ii
PDF
J2me
PDF
6. control de acceso
PDF
5. administracioìn de claves y certificados
PDF
4. certificados digitales
PDF
3. boletines de mensajes y firmas digitales
PDF
2. criptografiìa con java
PDF
1. introduccioìn a la seguridad
PDF
1046 pdfsam opos informatica
PDF
1203 pdfsam opos informatica
PDF
878 pdfsam opos informatica
PDF
516 pdfsam opos informatica
PDF
1704 pdfsam opos informatica
PDF
1893 pdfsam opos informatica
PDF
516 pdfsam opos informatica
PDF
706 pdfsam opos informatica
PDF
330 pdfsam opos informatica
PDF
1 pdfsam opos informatica
PDF
1379 pdfsam opos informatica
Notas clase
Notas clase java ii
J2me
6. control de acceso
5. administracioìn de claves y certificados
4. certificados digitales
3. boletines de mensajes y firmas digitales
2. criptografiìa con java
1. introduccioìn a la seguridad
1046 pdfsam opos informatica
1203 pdfsam opos informatica
878 pdfsam opos informatica
516 pdfsam opos informatica
1704 pdfsam opos informatica
1893 pdfsam opos informatica
516 pdfsam opos informatica
706 pdfsam opos informatica
330 pdfsam opos informatica
1 pdfsam opos informatica
1379 pdfsam opos informatica

Recently uploaded (20)

PDF
Supply Chain Operations Speaking Notes -ICLT Program
PDF
STATICS OF THE RIGID BODIES Hibbelers.pdf
PDF
Computing-Curriculum for Schools in Ghana
PDF
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
PDF
Module 4: Burden of Disease Tutorial Slides S2 2025
PDF
Chinmaya Tiranga quiz Grand Finale.pdf
PPTX
Microbial diseases, their pathogenesis and prophylaxis
PDF
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
PDF
O7-L3 Supply Chain Operations - ICLT Program
PDF
VCE English Exam - Section C Student Revision Booklet
PDF
01-Introduction-to-Information-Management.pdf
PDF
102 student loan defaulters named and shamed – Is someone you know on the list?
PDF
Classroom Observation Tools for Teachers
PDF
Microbial disease of the cardiovascular and lymphatic systems
PPTX
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
PDF
A systematic review of self-coping strategies used by university students to ...
PPTX
GDM (1) (1).pptx small presentation for students
PDF
RMMM.pdf make it easy to upload and study
PPTX
Institutional Correction lecture only . . .
PDF
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
Supply Chain Operations Speaking Notes -ICLT Program
STATICS OF THE RIGID BODIES Hibbelers.pdf
Computing-Curriculum for Schools in Ghana
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
Module 4: Burden of Disease Tutorial Slides S2 2025
Chinmaya Tiranga quiz Grand Finale.pdf
Microbial diseases, their pathogenesis and prophylaxis
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
O7-L3 Supply Chain Operations - ICLT Program
VCE English Exam - Section C Student Revision Booklet
01-Introduction-to-Information-Management.pdf
102 student loan defaulters named and shamed – Is someone you know on the list?
Classroom Observation Tools for Teachers
Microbial disease of the cardiovascular and lymphatic systems
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
A systematic review of self-coping strategies used by university students to ...
GDM (1) (1).pptx small presentation for students
RMMM.pdf make it easy to upload and study
Institutional Correction lecture only . . .
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape

Comandos routing switching

  • 1. Sumario de Comandos Comandos Básicos Comandos Básico del IOS Comandos Básico CLI Switch(config)#hostname hostname Switch> (enable) set system name name-string Switch> (enable) set prompt name (for different prompt) The switch in-band management, management vlan Switch(config)#interface vlan 1 Switch> (enable) set interface sc0 up Switch(config-if)#ip address ip-address Switch> (enable) set interface sc0 ip-address netmask netmask broad Switch(config-if)#ip default-gateway Switch> (enable) set interface sc0 vlan ipaddress (default = 1) Switch> (enable) set ip route default gateway- address Ends and Exits Switch(config-if)#end Switch# Switch(config-if)#exit Switch(config)# Switch(vlan)#end Switch# Session Timeout Switch(config-line)#exec-timeout Switch> (enable) set logout minutes minutes Salvar configuración Switch#copy running-config startup- {Config saved automatically} config Switch> (enable) write net (upload) Switch#copy running-config tftp Switch> (enable) configure net download) Switch#copy tftp running-config Switch> (enable) copy config [flash |file-id | tftp] Switch> (enable) copy flash [flash |file-id | config] Comando Show Visualización Configuración Switch#show running-config Switch> (enable) show config [all] Switch#show ip interface Switch> (enable) show port mod/num Switch> (enable) show interface Switch> (enable) show module
  • 2. Comandos Básicos Comandos Básico del IOS Comandos Básico CLI Borrar configuración Switch#erase startup-config Do Both of these: 1900 Switches: Switch> (enable) clear config all 1900-SW#(config)#delete nvram Switch> (enable) clear vtp 1900-SW#(config)#delete vtp 1900-Switch#show ip Passwords Set EXEC level password Set privileged level password Switch(config)#enable password level 1 Switch> (enable) set enablepass password vty and con passwords Set privileged level password Switch> (enable) set password Switch(config)#enable password level 15 password vty and con passwords Switch(config)#line vty vty-first vty- last Switch(config-line)#password password Switch(config)#line con 0 Switch(config-line)#password password Comandos de Interfaces Switch(config)#interface fastethernet 0 Switch> (enable) set port enable mod/num (enable Switch(config-if)#description a port or a range of ports) description-string Switch> (enable) set port name mod/num Switch(config-if)#speed [10 | 100 | description auto] (Ether only) Switch> (enable) set port speed mod/num [10 | Switch(config-if)#duplex [auto | full | 100 | auto] half] (Ether only) Switch> (enable) set port duplex mod/num [auto | full | half] Comandos Show (auto sets speed and duplex) Switch#show ip Comandos Show Switch> (enable) show interface Switch> (enable) show port name mod/num CDP Switch(config-if)#cdp enable Switch> (enable) set cdp {enable|disable} mod/port Comandos Show Comandos Show Switch#show cdp inteface type mod/num Switch> (enable) show cdp neighbors [mod/port] Switch#show cdp neighbors type mod/num [vlan |duplex |capabilities | detail] [detail]
  • 3. VLANs Comandos Básico del IOS Comandos Básico CLI The switch in-band management, management vlan Switch(config)#interface vlan 1 Switch> (enable) set interface sc0 ipaddress netmask broad Switch(config-if)#ip address ip-address netmask Switch> (enable) set interface sc0 vlan (default = 1) Switch(config-if)#ip default-gateway ipaddress Switch> (enable) set ip route default gateway-address Creación VLANs Switch#vlan database Switch> (enable) set vlan vlan-num [name name] Switch(vlan)#vlan vlan-num name vlan-name Switch> (enable) set vlan vlan-num Switch(config)#interface fastethernet 0 mod/num,list Switch(config-if)#switchport access vlan Switch> (enable) clear vlan vlan- vlan-num Switch(config-if)#no switchport access vlan vlan-num 1900 Switches 1900-SW(config-if)#vlan-membership static vlan-num (Doesn’t exist) Comandos Show Comandos Show Switch#show vlan brief Switch> (enable) show vlan Switch#show ip Switch> (enable) show interface VLAN Trunks Publicación Switch(config)#interface fastethernet 0 Switch> (enable) set trunk mod/port [on | off |desirable | auto | nonegotiate] [isl Switch(config-if)#switchport mode [access | | dot1q | dot10 | lane | negotiate] vlan- multi | trunk] range Switch(config-if)#switchport trunk Switch> (enable) clear trunk mod/port encapsulation {isl|dot1q} vlan-range (must remove as all vlans trunked by Otros comandos default) Switch(config-if)#switchport trunk allowed vlan remove vlan-list (must remove as all trunked by default) Switch(config-if)#switchport trunk allowed vlan add vlan-list (then add vlans to be trunked) Switches 1900 Switch(config-if)#trunk on Switch(config-if)#no trunk-vlan vlan-list Comandos Show Comandos Show Switch#show interface mod/num switchport Switch> (enable) show trunk Show port capabilities Switch> (enable) show port capabilities mod/num
  • 4. VLANs Comandos Básico del IOS Comandos Básico CLI VTP (VLAN Trunking Protocol) Habilitación de VTP Switch#vlan database Switch> (enable) set vtp [domain domainname][mode {server | client | Switch(vlan)#vtp domain domain-name transparent}] [password password] Switch(vlan)#vtp {server | client | transparent} Switch> (enable) set vtp v2 enable (version Switch(vlan)#vtp password password Switch(vlan)#vtp v2-mode (version2) VTP Pruning Switch(vlan)#vtp pruning Switch> (enable) set vtp pruning enable Switch> (enable) set vtp pruneeligible Switch(config-if)#switchport trunk pruning vlan-range vlan remove vlan-list (remove vlans from pruning) Switch> (enable) clear vtp pruning vlanrange Comandos Show Comandos Show Switch#show vtp Switch> (enable) show vtp domain Switch#show vtp status Switch> (enable) show vtp statistics Switch#show vtp counters Switch> (enable) show vlan Spanning Tree Protocol Comandos Básico del IOS Comandos Básico CLI Habilitación de Spanning Tree (Habilitado por Omisión) Switch(config)#spantree vlan-list Switch> (enable) set spantree enable [all | mod/num] (Enabled by default) Otros comandos de configuración Bridge Priority Bridge Priority Switch(config)#spanning-tree [vlan Switch> (enable) set spantree priority vlanlist] priority prty priority vlan (Lower wins, Priority default = 32,768) Port Cost Port Cost Switch> (enable) set spantree portcost Switch(config-if)#spanning-tree [vlan vlan-list] mod/num cost (Lower wins) cost cost Switch> (enable) set spantree portvlancost mod/num [cost cost] [vlanlist]
  • 5. Spanning Tree Protocol Comandos Básico del IOS Comandos Básico CLI Port Priority Port Priority Switch(config-if)#spanning-tree [vlan vlan-list] port- Switch> (enable) set spantree portpri mod/num priority port-priority cost (Lower wins, Priority default = 32, range 0-63) Switch> (enable) set spantree portvlanpri mod/num priority vlan-list Root Bridge Root Bridge Switch> (enable) set spantree root N/A [secondary] [vlan-list][dia diameter] [hello hellotime] (Reduces default priority of 32,768 to 8,192) STP Timers Switch(config)#spanning-tree [vlan Switch> (enable) set spantree hello interval vlanlist][hello-time seconds] [vlan] (Default = 2 secs ) Switch> (enable) set spantree fwddelay delay [vlan] Switch(config)#spanning-tree [vlan vlanlist][forward-time seconds] Switch> (enable) set spantree maxage agingtime [vlan] (Default = 15 secs ) Switch> (enable) set spantree root Switch(config)#spanning-tree [vlan [secondary] [vlan-list] [dia diameter] [hello vlanlist][max-age seconds] hellotime] (Default = 20 secs ) (Lower wins, Priority default = 32,768) STP PortFast, UplinkFast, BackboneFast Switch(config)#spanning-tree portfast Switch> (enable) set spantree portfast [mod/num] [enable|disable] Or Switch> (enable) set spantree uplinkfast Switch(config)#spantree start-forwarding [enable|disable] [rate update-rate] [allprotocols off | on] (For server and workstation ports) Switch> (enable) set spantree backbonefast Switch(config)#spanning-tree uplinkfast [enable|disable] [max-update-rate pkts-per-sec] (Must be on all switches, when receives inferior BPDU) (For access switches when direct knowledge of failure) Comandos Show Switch#show spanning-tree [vlan] Switch> (enable) show spantree [vlan] Switch#show spanning-tree mod/num Switch> (enable) show spantree mod/num Inter-VLAN Routing 5000 Integrated Route Processor External Route Processor Commands Commands VLANs – created at the switch level, but controlled at the route processor level.
  • 6. Inter-VLAN Routing 5000 Integrated Route Processor External Route Processor Commands Commands External Route Processor Integrated Route Processor Router(config)#interface ethernet 0 Switch> (enable) session module-number Router(config-if)#encapsulation [isl | *Router(config)#interface vlan- dot1q] vlan-number interfacenumber Router(config-if)#ip address ip-address Router(config-if)#ip address ip-address subnet-mask subnet-mask Configuración de ruteo Router(config)#ip routing Router(config)#ip routing Router(config)#router routing-protocol Router(config)#router routing-protocol Router(config-router)#network network Router(config-router)#network network * Differs from: Switch(config)#interface vlan 1 Switch(config)#assigns ip address to switch mngt interface Router(config)#configures vlan interface on RSM Comandos Básico del IOS Comandos Básico CLI Default Gateway Default Gateway Switch(config)#ip default-gateway ip Switch> (enable) set ip route destination address gateway metric Comandos Show Comandos Show Switch#show ip Switch> (enable) show module mod-number