You are on page 1of 7

buscar

Comandos para configurar un Switch Cisco


El siguiente es un pequeo resumen sobre comandos para configurar un switch cisco y algunos de router, espero que les sea til como lo es para mi. Rip NewYork NewYork NewYork NewYork NewYork NewYork NewYork

config!"interface fastethernet#$# config%if!"ip address &'(.&)*.+#.&(' (++.(++.(++.&'( config%if!"ip rip send ,ersion & config%if!"ip rip recei,e ,ersion & config!"interface fastethernet#$& config%if!"ip address &-(.(+.&+#.&'. (++.(++.(++.(/# config%if!"ip rip send ,ersion & (

0how ip protocols show interface interface show ip interface interface show running%config 0how ip rip database 1023 Router config!"router ospf process%id Router config%router!"network address wildcard%mask area area%id Router config!"interface lookback # Router config%if!"ip address &'(.&)*..... (++.(++.(++.(++ Rtr config%if!" bandwidth )/ Rtr config%if!" ip ospf cost &+)( 4utenticaci5n sin md+ Router config%if!"ip ospf authentication%key password Router config%router!"area area%number authentication 4utenticaci5n con md+ Router config%if!"ip ospf message%digest%key key%id encryption%type md+ key Router config%router!"area area%id authentication message%digest Router config%if!"ip ospf hello%inter,al seconds Router config%if!"ip ospf dead%inter,al seconds debug ip ospf e,ents %%aumentar la prioridad para elegir un router 6R sw config!"interface fasethernet #$# sw config%if!"ip osfp priority +# sw config%if!"end

E78R2 Router config!"router eigrp as%id Router config%router!"network &'(.&)*...# Router config%router!"end Router" show ip eigrp topology eigrp log%neighbor%changes resumen de rutas9 router config%router!"no auto%summary

0witch 0witch" dir flash9 0witch"show flash 0witch"show ,lan 0witch",lan database 0witch ,lan!",lan ,lan:number 0witch ,lan!"e;it 0witch config!"interface fastethernet #$' 0witch config%if!"switchport access ,lan ,lan:number 0witch",lan database 0witch ,lan!"no ,lan .## 0witch config!"interface fastethernet #$' 0witch config%if!"switchport access ,lan ,lan:number 0w&"delete flash9,lan.dat 0w&"erase startup%config 0w&"reload 7nterface web 0w& config!"ip http port *# <er la tabla =4>9 0witch"show mac%address%table ? =as opciones! 0witch"clear mac%address%table 4signar una mac estatica @0witch config!"mac%address%table static interface 3astEthernet ,lan @0witch config!"no mac%address%table static interface 3astEthernet ,lan 0eguridad de 2uerto 0w& config!"interface fastEAehernet #$( 0w& config%if!"switchport port%security ? sale las opciones!

Bimitar la cantidad de host por puerto &'##9 0w& config!"interface fastEAehernet #$( 0w& config%if!"port secure mas%mac%count & ('+#9 0w& config!"interface fastEAehernet #$( 0w& config%if!"switchport port%security ma;imum & >onfiguracion del 2uerto que se desconecte cuando se produce una ,iolacion de seguridad 0w config%if!"switchport port%security ,iolation shutdown ('##;l9 0w config%if!"port security action shutdown

2oner 7p a la <lan& >atalyst ('+# 0w config!"interface <lan& 0w config%if!"ip address &'(.&)*.&.( (++.(++.(++.# 0w config%if!"no shutdown 0w config!" ip default%gateway &'(.&)*.&.& >atalyst &'## 0w config!"ip address &'(.&)*.&.( (++.(++.(++.# 0w config!" ip default%gateway &'(.&)*.&.& 4rchi,os de configuracion 0w" copy running%config startup%config &'##9 0w"copy n,ram tftp9$$tftp ser,er ip add$destination:filename >1nfiguracion de la ,elocidad 0witch config!"interface fastethernet #$' 0witch config%if!"duple; full 0witch config%if!"speed &##

>rear el trunk del switch 0w config!"interface fastethernet #$& 0w config%if!"swicthport mode trunk 0w config%if!"end ('##9 0w config!"interface fastethernet #$& 0w config%if!"swicthport mode trunk 0w config%if!"swicthport trunk encapsulation dot&q 0w config%if!"end &'##9 0w config!"interface fastethernet #$& 0w config%if!"swicthport mode trunk 0w config%if!"swicthport trunk encapsulation dot&q 0w config%if!"end Arunk en el router Router Router Router Router Router config!"interface fastethernet #$# config%if!"no shutdown config%if!"interface fastEthernet #$#.& config%subif!"encapsulation dot&q ,lan%number config%subif!"ip addressCC.

router&"copy running%config tftp Duitar un 2uerto de una <B4N 0witch config!"interface fasethernet #$' 0witch config%if!"no switchport access ,lan .## Eliminar una ,lan 0witch",lan database 0witch ,lan!"no ,lan .## 0panning tree show spanning%tree >onfiguracion de <A2 switch",lan database switch",tp ,(%mode switch ,lan!",tp domain password switch",tp Eclient F ser,er F transparentG

>opiar el 710 a un ser,er tftp 0w"copy flash tftp ('##9 sw"copy flash9nombre:del:archi,o tftp >opiar 710 desde un 0er,er tftp 0w"copy A3A2 flash 0w" copy 0tart tftp &'##9 sw"copy n,ram tftp9$$numero%ip$name 0w"copy tftp startup%config &'##9 sw"copy tftp9$$numero%ip$name n,ram Recuperar el acceso al switch &. 4pagar el switch, <uel,a a encenderlo mientras presiona el boton =16E en la parte delantera del switch. 6eHe de presionar el boton =16E una ,eI que se apague el led de 0A4A (. introducir los siguientes comandos9 flash:init load:helper dir flash9 .. rename flash9config.te;t flash9config.old /. reiniciar el sistema original9 /.& despues de entrar al switch hacer9 rename flash9config.old flash9config.te;t /.( sw"copy flash9config.te;t system9running%config /.. >ambiar los password 4ctualiIar el firmware 0w"show boot muestra el archi,e de boteo! >ambiar el nombre del archi,o de la ios,con el commando "rename flash9nombre flash9Nue,o:nombre 0w config!"no ip http 0er,er 0w" delete flash9html$J E;traer la nue,a ,ersion del 710 0w"archi,e tar $; tftp9$$&'(.&)*.&..$nombre:del:archi,o.tar flash9 0w config!"ip http 0er,er 0w config!"boot system flash9nombre.bin

0panning%Aree "show spanning%tree brief >ambiar prioridad9 ios &(.# sw config!"spanning%tree priority & sw config!"e;it ios &(.& sw config!"spanning%tree ,lan & priority /#') sw config!"e;it >onfigurar <B4N 0w",lan database 0w ,lan!",lan ( name Bogistica 0w ,lan!",lan . name Bicitaciones 0w ,lan!"end &'##9 0w"config terminal 0w config!",lan ( name <B4N( 0w config!",lan . name <B4N. >onfigurar puertos en las <B4N 0w"conf term 0w config!"interface fastethernet #$( 0w config%if!"switchport mode access 0w config%if!"switchport access ,lan( 0w config%if!"end Elminar el 2uerto de la ,lan 0w config%if!"no switchport access ,lan( 0w config%if!"end &'##9 0w"conf term 0w config!"interface fastethernet #$( 0w config%if!",lan static ( 2ara eliminar un 2uerto de la ,lan 0w config%if!"no ,lan%membership ( 0w"show ,lan 0w"show ,lan id ( &'##9 0how ,lan%membership 0how ,lan (

Eliminar un ,lan 0w",aln database 0w ,lan!"no ,lan . 0w ,lan!" e;it &'##9 sw confgi!" interface ethernet #$sw confgi!"no ,lan . enlacen troncal 70B sw >onfig.!"interafce fastethernet #$& sw >onfig%if!"switchport mode trunk sw >onfig%if!"switchport trunk encapsulation isl sw >onfig%if!"end enlace troncal *#(.&q ('+#9 por defecto dotiq sw >onfig.!"interafce fastethernet #$& sw >onfig%if!"switchport mode trunk ('##9 sw >onfig.!"interafce fastethernet #$& sw >onfig%if!"switchport mode trunk sw >onfig%if!"switchport trunk encapsulation dot&q <tp , ser,idor y cliente 0w" <lan database 0w ,lan!" ,tp ser,er 0w ,lan!" ,tp domain group& 0w ,lan!" e;it 0w" <lan database 0w ,lan!" ,tp client 0w ,lan!" ,tp domain group& 0w ,lan!" e;it Ruteo entre <B4N 2oner el encapsulamiento en las subinterfaces del router config%if!"interface fastethernet #$#.& config%subif!"encapsulation dot&q & & es la ,lan a la que esta!

You might also like