Comandos routing switching
Upcoming SlideShare
Loading in...5
×
 

Comandos routing switching

on

  • 725 views

 

Statistics

Views

Total Views
725
Views on SlideShare
725
Embed Views
0

Actions

Likes
0
Downloads
44
Comments
0

0 Embeds 0

No embeds

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    Comandos routing switching Comandos routing switching Document Transcript

    • 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