cisco cli xarxes ii
DESCRIPTION
curso cisco de redesTRANSCRIPT
-
20/01/12 Cisco-CLI - Xar[es
1/14phobos.[tec.cat/rsanch65/Z/inde[.php/Cisco-CLI
Cisco-CLI
De Xar[es
Contingut
1 Modes
2 Configuraciy bsica2.1 Nom del dispositiu
2.2 passwords
2.3 terminals, consola i auxiliars
2.4 Missatge del dia
2.5 Missatge de login
2.6 Rellotge
3 Interfcies3.1 Configuraciy
3.2 Mostrar informaciy
4 Encaminament
4.1 Distncies administratives
4.2 Configuracions
4.3 Rutes esttiques4.4 Enrutament dinmic
4.4.1 Vector distncia
4.4.1.1 RIP
4.4.1.1.1 Comandes bsiques
4.4.1.1.2 Comandes d'ajuda associades4.4.1.1.3 Opcions avanades
4.4.1.2 EIGRP
4.4.2 Estat d'enlla4.4.2.1 OSPF
4.5 Cisco discover protocol
4.6 Borrar i mostrar
5 Configuracions avanades
5.1 NAT
5.1.1 NAT esttic
5.1.2 NAT dinmic
5.1.3 PAT
5.1.4 Mostrar taula i estadstiques
5.2 DHCP5.3 Llistes d'accs
5.4 Syslog
6 ACL
7 VLAN
8 Manteniment
8.1 Restauraciy
-
20/01/12 Cisco-CLI - Xar[es
2/14phobos.[tec.cat/rsanch65/Z/inde[.php/Cisco-CLI
8.1.1 Restaurar flash en mode rommon8.1.2 Restaurar password
8.2 Reset
8.3 copy
8.3.1 Running y start-up config
8.3.2 backups TFTP
8.3.3 IOS
9 Monitoritzaciy de switch
Modes
Els encaminadors estan organitzats en diferents modes o contextos. Cada context tindr diferents tems aconfigurar
Entrar a mode administrador
R o X W e U > e n a b l e [ p a V V Z o U d _ V X p e U Y i V o U ] / / N o X p U o m p W : n o m R o X W e U #
Entrar a mode configuraciy global
R o X W e U # c o n f i g W e U m i n a l / / N o X p U o m p W : n o m R o X W e U #
Tornar mode anterior
R o X W e U ( c o n f i g - i f ) # e [ i W o C T R L + Z / / T o U n a U a l m o d e a n W e U i o U
Configuraciy bsica
Nom del dispositiu
R o X W e U ( c o n f i g ) # h o V W n a m e [ N o m ]
passwords
Enable Password (contrasenya enable no encriptada)
N o m ( c o n f i g ) # e n a b l e p a V V Z o U d [ p a V V Z o U d ]
Enable Secret (contrasenya enable encriptada amb md5)
N o m ( c o n f i g ) # e n a b l e V e c U e W [ p a V V Z o U d ]
-
20/01/12 Cisco-CLI - Xar[es
3/14phobos.[tec.cat/rsanch65/Z/inde[.php/Cisco-CLI
Encriptar contrasenyes (a baix nivell)
N o m ( c o n f i g ) # s e r v i c e p a s s w o r d - e n c r y p t i o n
R o u t e r #
( A m b e l p a s s w o r d C u s c i G e t P a s s p o d e m d e s x i f r a r )
terminals, consola i auxiliars
Terminal (Telnet)
N o m ( c o n f i g ) # l i n e v t y 0 4 / / c o n f i g u r a c i y d e l s 5 t e r m i n a l s 0 a 4
N o m ( c o n f i g - l i n e ) # l o g i n
N o m ( c o n f i g - l i n e ) # p a s s w o r d [ p a s s w o r d ]
Consola (posar contrasenya a usuari)
N o m ( c o n f i g ) # l i n e c o n s o l e 0
N o m ( c o n f i g - l i n e ) # l o g i n
N o m ( c o n f i g - l i n e ) # p a s s w o r d [ p a s s w o r d ]
Auxiliar (Mzdem)
N o m ( c o n f i g ) # l i n e a u x i l i a r y 0
N o m ( c o n f i g - l i n e ) # l o g i n
N o m ( c o n f i g - l i n e ) # p a s s w o r d [ p a s s w o r d ]
Missatge del dia
N o m ( c o n f i g ) # b a n n e r m o t d [ m i s s a t g e ]
Missatge de login
N o m ( c o n f i g ) # b a n n e r l o g i n [ m i s s a t g e ]
Rellotge
R o u t e r # c l o c k s e t [ h o r a : m i n u t : s e g o n ] [ n u m e r o D i a ] [ m e s P a r a u l a ] [ a n y ]
Interfcies
Configuraciy
Entrar en mode interfcie
-
20/01/12 Cisco-CLI - Xar[es
4/14phobos.[tec.cat/rsanch65/Z/inde[.php/Cisco-CLI
N o m ( c o n f i g ) # i n t e r f a c e [ t i p u s ] [ i n t e r f a c e ] / / O n t i p u s p o t s e r : ( e t h e r n e t / f a s t e t h e r n e t / g i g a b i t e t h e r n e t / s e r i a l )
Configuraciy d'IP
N o m ( c o n f i g - i f ) # i p a d d r e s s [ d i r e c c i y ] [ m s c a r a ]
N o m ( c o n f i g - i f ) # c l o c k r a t e [ v e l o c i t a t ] / / N o m s i n t e r f c i e s S e r i a l D C E
N o m # c o n f i g - i f ) # n o s h u t d o w n
Configuraciy de les descripcions de les interfcies
N o m ( c o n f i g - i f ) # d e s c r i p t i o n [ d e s c r i p c i y n ]
Mostrar informaciy
Estat de les interfcies
R o u t e r # s h o w i p i n t b r i e f
up -up --> OKup-down -->Un extrem no funciona.Pot ser problemes de clock rate? Down-down -->Probablementproblemes de cables.
Informaciy detallada de les interfcies
R o u t e r # s h o w i n t e r f a c e s
R o u t e r # s h o w i n t e r f a c e s [ i n t e r f a c e ]
Esbrinar quina interficie es DCE i DTE
R o u t e r # s h o w c o n t r o l l e r s s e r i a l 0 / 0
Mostrar la taula arp
R o u t e r # s h o w a r p
Encaminament
Distncies administratives
LLista de distncies administratives
I n t e r f c i e c o n n e c t a d a : 0
R u t a e s t t i c a : 1
E I G R P : 9 0
O S P F : 1 1 0
-
20/01/12 Cisco-CLI - Xar[es
5/14phobos.[tec.cat/rsanch65/Z/inde[.php/Cisco-CLI
R I P : 1 2 0
D e s c o n e g u t / N o f i a b l e : 2 5 5
Configuracions
Mostrar la informaciy dels protocols d'encaminament
R o u t e r # s h o w i p p r o t o c o l s
Borrar una ruta o totes
R o u t e r # c l e a r i p r o u t e [ r u t a | * ]
Rutes estjtiques
Una lnia per cada ruta
i p r o u t e [ i p _ d e s t t ] [ m s c a r a ] [ i p o i n t e r f t c i e _ s o r t i d a ( n e x t h o p ) ]
Enrutament dinjmic
Vector distjncia
RIP
Comandes bjsiques
Entrar en mode configuraciy rip
N o m ( c o n f i g ) # r o u t e r r i p
Establir llista de xarxes a publicar directament connectades
N o m ( c o n f i g - r o u t e r ) # n e t w o r k a . b . c . d
Canviar a V2 (Per defecte s V1) Recorda que RIP v1 suporta subxarxes i RIPv2 suporta subnetting i VLSM
N o m ( c o n f i g - r o u t e r ) # v e r s i o n 2
Comandes d'ajuda associades
Mostrar la BD rip
-
20/01/12 Cisco-CLI - Xar[es
6/14phobos.[tec.cat/rsanch65/Z/inde[.php/Cisco-CLI
N o m # s h o w i p r i p d a t a b a s e
Debugar rip
N o m # d e b u g i p r i p
Mostrar bandwidth i altres detalls
R o u t e r # s h o w i n t e r f a c e [ i n t e r f c i e ]
Opcions avanoades
Eliminar sumaritzaciy automtica (Resum) / Permetre xarxes discontinues (Noms V2)
N o m ( c o n f i g - r o u t e r ) # n o a u t o - s u m m a r y / / P e r c o m p r o v a r - h o p o d e m u t i l i t z a r s h o w i p p r o t o c o l s
CIDR (Sumaritzaciy manual / Resum manual) (Noms V2) Noms en el router frontera S'ha de eliminar lasumaritzaciy automtica
N o m ( c o n f i g - r o u t e r ) # n o a u t o - s u m m a r y
N o m ( c o n f i g - r o u t e r ) # r e d i s t r i b u t e s t a t i c
N o m ( c o n f i g ) # i p r o u t e a . b . c . d a . b . c . d n u l l 0 / / P o s a r r u t a e n i n t e r f c i e n u l l a
Marcar una interfcie passiva
N o m ( c o n f i g - r o u t e r ) # p a s s i v e i n t e r f a c e [ i n t e r f c i e ]
Marcar totes les interfcies com a passives menys algunes
N o m ( c o n f i g - r o u t e r ) # p a s s i v e i n t e r f a c e d e f a u l t
N o m ( c o n f i g - r o u t e r ) # n o p a s s i v e i n t e r f a c e [ i n t e r f c i e ] / / M a r q u e s l a q u e n o v o l s c o m a p a s s i v a
Canviar els actualitzacions
N o m ( c o n f i g - r o u t e r ) # t i m e r s b a s i c [ A c t u a l i z a c i o n e s ] [ R u t a i n v a l i d a ] [ E s p e r a ] [ p u r g a ]
Distribuir una ruta per defecte
N o m ( c o n f i g - r o u t e r ) # d e f a u l t - i n f o r m a t i o n o r i g i n a t e
Deshabilitar divisiy d'horitzy
-
20/01/12 Cisco-CLI - Xar[es
7/14phobos.[tec.cat/rsanch65/Z/inde[.php/Cisco-CLI
N o m # c o n f i g - r o u t e r ) # n o i p s p l i t - h o r i t z o n
EIGRP
Configurar EIGRP equival a detallar quin s el seu AS -n~mero de sistema autnom- i la IP. Si treballem ambsubxarxes s'ha d'especificar la mscara que s'utilitza
N o m ( c o n f i g ) # r o u t e r e i g r p [ A S ]
N o m ( c o n f i g - r o u t e r ) # n e t w o r k i p r e d / / S i e s u n a i p d e c l a s s e
N o m ( c o n f i g - r o u t e r ) # n e t w o r k i p s u b r e d [ M j s c a r a / M j s c a r a w i l d c a r d ] / / S i e s s u b r e d
Eliminar sumaritzaci automtica (Resum) / Permetre xarxes discontinues
N o m ( c o n f i g - r o u t e r ) # n o a u t o - s u m m a r y
Propagar ruta per defecte
N o m ( c o n f i g - r o u t e r ) # r e d i s t r i b u t e s t a t i c
Mostrar veins EIGRP
N o m ( c o n f i g - r o u t e r ) # s h o w i p e i g r p n e i g h b o r s
Mostrar veins topologia
N o m ( c o n f i g - r o u t e r ) # s h o w i p e i g r p t o p o l o g y
Configurar k
N o m ( c o n f i g - r o u t e r ) # m e t r i c w e i g h t s 0 k 1 k 2 k 3 k 4 k 5
Estat d'enllao
OSPF
Per configurar OSPF s'ha d'especificar el seu PID -on PID s un n~mero entre 1 i 65535-, la IP i la mscara
N o m ( c o n f i g ) # r o u t e r o s p f [ P I D ]
N o m ( c o n f i g - r o u t e r ) # n e t w o r k I P _ R E D M A S C / W I L D a r e a N u m e r o / / O n a r e a e n t r e 0 - 6 5 5 3 5
Mostrar els vens (BD adjacents)
N o m # s h o w i p o s p f n e i g h b o r
-
20/01/12 Cisco-CLI - Xar[es
8/14phobos.[tec.cat/rsanch65/Z/inde[.php/Cisco-CLI
Mostrar la taula d'estats d'enlla
N o m # s h o w i p o s p f d a t a b a s e
Mostrar informaciy d'interfcies que parlen ospf
N o m # s h o w i p o s p f i n t e r f a c e [ i n t e r f t c i e ] / / I n t e r f t c i e o p c i o n a l
Modificar el cost
N o m ( c o n f i g - i f ) # i p o s p f c o s t [ v a l o r ] / / O n v a l o r e s e l c o s t e n v a l o r n u m r i c
Modificar la prioritat
N o m ( c o n f i g - i f ) # i p o s p f p r i o r i t y [ p r i o r i t a t ]
Modificar l'interval de mort
N o m ( c o n f i g - i f ) # i p o s p f d e a d - i n t e r v a l [ t ] / / t e m p s
Modificar l'ample de banda que utilitzar ospf per fer el clcul
N o m ( c o n f i g - i f ) # b a n d w i d t h [ b w ] / / O n b w e s l ' a m p l e d e b a n d a e n k i l o b i t s
Modificar l'identificador
N o m ( c o n f i g - r o u t e r ) # r o u t e r - i d [ i d ] / / O n i d e s f o r m a t i p
Redistribuir ruta esttica
N o m ( c o n f i g - r o u t e r ) # r e d i s t r i b u t e s t a t i c / / P r o p a g a r x a r x e s a m b c l a s s e
N o m ( c o n f i g - r o u t e r ) # r e d i s t r i b u t e s t a t i c s u b n e t / / P r o p a g a r x a r x e s i s u b x a r x e s
Redistribuir ruta per defecte
N o m ( c o n f i g - r o u t e r ) # d e f a u l t - i n f o r m a t i o n o r i g i n a t e a l l w a y s
Cisco discoYer protocol
Recorda que noms funciona en dispositius CISCO Activar CDP
R o u t e r # { n o } c d p r u n / / a c t i v a r / d e s a c t i v a r c d p a n i v e l l g l o b a l
R o u t e r ( c o n f i g - i f ) # { n o } c d p e n a b l e / / a c t i v a r c d p a n i v e l l d e p o r t
Mostrar
-
20/01/12 Cisco-CLI - Xar[es
9/14phobos.[tec.cat/rsanch65/Z/inde[.php/Cisco-CLI
M o s t r a r v e i n s
R o u t e r # s h o w c d p n e i g h b o r s { d e t a i l } / / D e t a i l s o p c i o n a l
M o s t r a r i n f o r m a c i g e n r i c a
R o u t e r # s h o w c d p
M o s t r a q u i n e s i n t e r f c i e s u t i l i t z e n c d p
R o u t e r # s h o w c d p i n t e r f a c e
M o s t a r l a i n f o r m a c i d e n o m
R o u t e r # s h o w c d p e n t r y [ n o m ]
Borrar l'estat actual de la taula cdp
r o u t e r # c l e a r c d p t a b l e
Borrar i mostrar
Configuracions avanoades
NAT
NAT esttic
Passos per a definir NAT estjtic
1 . D e f i n i r l a p o o l d e d i r e c c i o n s I P p ~ b l i q u e s
R o u t e r ( c o n f i g ) # i p n a t p o o l [ n o m _ p o o l ] [ i p _ i n i c i ] [ i p _ f i ] n e t m a s k [ m a s k ]
2 . D e f i n i r l l i s t a d ' a c c e s s a m b l e s i p ' s p r i v a d e s i n t e r i o r s
R o u t e r ( c o n f i g ) # a c c e s s - l i s t [ a c c e s s - l i s t - n u m b e r ] p e r m i t [ i p ] [ m s c a r a w i l d c a r d ]
3 . C o n v e r s i N A T d e s d e l ' i n t e r i o r a l ' e x t e r i o r
R o u t e r ( c o n f i g ) # i p n a t i n s i d e s o u r c e l i s t [ a c c e s s - l i s t - n u m b e r ] p o o l [ n o m _ p o o l ]
4 . E s p e c i f i c a r l e s i n t e r f c i e s i n t e r i o r s i e x t e r i o r s
R o u t e r ( c o n f i g - i f ) # i p n a t i n s i d e / / a l a i n t e r f c i e i n t e r i o r
R o u t e r ( c o n f i g - i f ) # i p n a t o u t s i d e / / a l a i n t e r f c i e e x t e r i o r
5 . c o n f i g u r a r l ' a s s i g n a c i e s t t i c a
R o u t e r ( c o n f i g ) # i p n a t i n s i d e s o u r c e s t a t i c [ i p _ p r i v a d a ] [ i p _ p u b l i c a ]
NAT dinmic
Passos per a definir NAT dinjmic
1 . D e f i n i r l a p o o l d e d i r e c c i o n s I P p ~ b l i q u e s
R o u t e r ( c o n f i g ) # i p n a t p o o l [ n o m _ p o o l ] [ i p _ i n i c i ] [ i p _ f i ] n e t m a s k [ m a s k ]
2 . D e f i n i r l l i s t a d ' a c c e s s a m b l e s i p ' s p r i v a d e s i n t e r i o r s
R o u t e r ( c o n f i g ) # a c c e s s - l i s t [ a c c e s s - l i s t - n u m b e r ] p e r m i t [ i p ] [ m s c a r a w i l d c a r d ]
3 . C o n v e r s i N A T d e s d e l ' i n t e r i o r a l ' e x t e r i o r
R o u t e r ( c o n f i g ) # i p n a t i n s i d e s o u r c e l i s t [ a c c e s s - l i s t - n u m b e r ] p o o l [ n o m _ p o o l ]
4 . E s p e c i f i c a r l e s i n t e r f c i e s i n t e r i o r s i e x t e r i o r s
R o u t e r ( c o n f i g - i f ) # i p n a t i n s i d e / / a l a i n t e r f c i e i n t e r i o r
R o u t e r ( c o n f i g - i f ) # i p n a t o u t s i d e / / a l a i n t e r f c i e e x t e r i o r
-
20/01/12 Cisco-CLI - Xar[es
10/14phobos.[tec.cat/rsanch65/Z/inde[.php/Cisco-CLI
PAT
Passos per a definir PAT
1 . D e f i n i r l l i s t a d ' a c c e s s a m b l e s i p ' s p r i v a d e s i n t e r i o r s
R o u t e r ( c o n f i g ) # a c c e s s - l i s t [ a c c e s s - l i s t - n u m b e r ] p e r m i t [ i p ] [ m s c a r a w i l d c a r d ]
2 . D e f i n i r l a c o n v e r s i y P A T d e l ' i n t e r i o r d e l a l l i s t a a l ' e x t e r i o r d e l a d i r e c c i y
R o u t e r ( c o n f i g ) # i p n a t i n s i d e s o u r c e l i s t [ a c c e s s - l i s t - n u m b e r ] i n t e r f a c e [ i n t e r f c i e ] o v e r l o a d
3 . E s p e c i f i c a r l e s i n t e r f c i e s i n t e r i o r s i e x t e r i o r s
R o u t e r ( c o n f i g - i f ) # i p n a t i n s i d e / / a l a i n t e r f c i e i n t e r i o r
R o u t e r ( c o n f i g - i f ) # i p n a t o u t s i d e / / a l a i n t e r f c i e e x t e r i o r
Mostrar taula i estadtstiques
Mostra la taula NAT
R o u t e r # s h o w i p n a t t r a s l a t i o n s
Mostra les estadstiques NAT
R o u t e r # s h o w i p n a t s t a t i s t i c s
DHCP
Per configurar el DHCP s'ha de definir el nom de la pool, la IP/MASK de la xarxa, el gateway i el servidorDNS
R o u t e r ( c o n f i g ) # i p d h c p p o o l [ n o m _ p o o l ]
R o u t e r ( d h c p - c o n f i g ) # n e t w o r k [ I P ] [ M a s k ]
R o u t e r ( d h c p - c o n f i g ) # d e f a u l t - r o u t e r [ I P _ G a t e w a y ]
R o u t e r ( d h c p - c o n f i g ) # d n s - s e r v e r [ I P _ s e r v i d o r _ D N S ]
Per excloure un rang d'IP's
R o u t e r ( c o n f i g ) # i p d h c p e x c l u d e d - a d d r e s s [ i p _ i n i c i ] [ i p _ f i ]
Llistes d'accs
Syslog
Activaciy de logs:
R o u t e r ( c o n f i g ) # l o g g i n g o n
Configuraciy de la direcciy del servidor de logs:
-
20/01/12 Cisco-CLI - Xar[es
11/14phobos.[tec.cat/rsanch65/Z/inde[.php/Cisco-CLI
R o u t e r ( c o n f i g ) # l o g g i n g 1 9 2 . 1 6 8 . 1 0 . 5 3
Activaci del nivell de logs:
R o u t e r ( c o n f i g ) # l o g g i n g t r a p x
Inclusi de la informaci horaria en els logs:
R o u t e r ( c o n f i g ) # s e r v i c e t i m e s t a m p s l o g d a t e t i m e m s e c
Inclusi de la informaci dels moviments de l'usuari privilegiat:
R o u t e r ( c o n f i g ) # l o g g i n g u s e r i n f o
AC/
1) Definir l'ACL (Cada llista cont un nmero. Hi haur una regla por cada lnia access-list , per totes amb elmateix nmero).
R o u t e r ( c o n f i g ) # a c c e s s - l i s t [ a c c e s s - l i s t - n u m b e r ] { p e r m i t | d e n y } { t e s t - c o n d i t i o n s } / / R e g l a N
. . . ( r e p e t i r f i n s q u e n o q u e d i n r e g l e s )
2) Aplicar la ACL a una interfcie
R o u t e r ( c o n f i g - i f ) # { p r o t o c o l } a c c e s s - g r o u p [ a c c e s s - l i s t - n u m b e r ]
Comandes any
R o u t e r ( c o n f i g ) # a c c e s s - l i s t 1 p e r m i t 0 . 0 . 0 . 0 2 5 5 . 2 5 5 . 2 5 5 . 2 5 5
q u a l s e v o l I P m s c a r a w i l d c a r d
E s p o t u t i l i t z a r a i x :
R o u t e r ( c o n f i g ) # a c c e s s - l i s t 1 p e r m i t a n y
Commanda host
R o u t e r ( c o n f i g ) # a c c e s s - l i s t 1 p e r m i t 1 7 2 . 3 0 . 1 6 . 2 9 0 . 0 . 0 . 0
d i r e c c i y I P m s c a r a w i l d c a r d
E s p o t u t i l i t z a r a i x :
R o u t e r ( c o n f i g ) # a c c e s s - l i s t 1 p e r m i t h o s t 1 7 2 . 3 0 . 1 6 . 2 9
Mostrar les ACL
R o u t e r ( c o n f i g ) # s h o w a c c e s s - l i s t [ a c c e s s - l i s t - n u m b e r ]
Comandes ACL exteses
-
20/01/12 Cisco-CLI - Xar[es
12/14phobos.[tec.cat/rsanch65/Z/inde[.php/Cisco-CLI
R o u t e r ( c o n f i g ) # a c c e s s - l i s t [ a c c e s s - l i s t - n u m b e r ] { p e r m i t | d e n y } [ p r o t o c o l ] [ s o u r c e - a d d r e s s ] [ s o u r c e - m a s k ] [ d e s t i n a t i o n - a d r e s s ] [ d e s t i n a t i o n - m a s k ] o p e r a t o r [ o p e r a n d ] [ e s t a b l i s h e d ]
R o u t e r ( c o n f i g - i f ) # { p r o t o c o l } a c c e s s - g r o u p [ a c c e s s - l i s t - n u m b e r ] { i n | o u t }
Comandes ACL nombrades
R o u t e r ( c o n f i g ) # i p a c c e s s - l i s t { s t a n d a r d | e x t e n d e d } [ n a m e ]
Denegar
d e n y { s o u r c e [ s o u r c e - w i l d c a r d ] | a n y }
VLAN
Afegir VLAN al switch (opcional)
1 . C o n f i g u r a r B D d e V L A N
S w i t c h ( c o n f i g ) # v l a n n ~ m e r o _ v l a n
2 . D e f i n i r n o m
S w i t c h ( c o n f i g - v l a n ) # n a m e n o m
Configurar ports al switch: Equival a especificar si el port s trunk o access i en l'~ltim cas a quina vlan pertany
1 . C o n f i g u r a r p o r t t r u n k
S w ( c o n f i g - i f ) # s w i c t h p o r t m o d e t r u n k
2 . C o n f i g u r a r p o r t s a c c e s s
S w i t c h ( c o n f i g - i f ) # s w i t c h p o r t a c c e s s v l a n n ~ m e r o _ v l a n
Configurar l'encapsulaci 802.1Q per a encaminar entre VLAN
1 . D e f i n i r l a s u b i n t e r f c i e
R o u t e r ( c o n f i g ) # i n t e r f a c e i n t e r f i c i e . s u b i n t e r f i c i e / / P e r e x : i n t e r f a c e F a s t E t h e r n e t 0 / 0 . 1
2 . E n c a p s u l a c i d o t 1 q
e n c a p s u l a t i o n d o t 1 Q v l a n _ n u m b e r
Manteniment
Restauraciy
Restaurar flash en mode rommon
Establir parmetres
I P _ A D D R E S S = I P
I P _ S U B N E T _ M A S K = M A S C A R A
D E F A U L T _ G A T E W A Y = G A T E W A Y
T F T P _ S E R V E R = I P S E R V I D R O
-
20/01/12 Cisco-CLI - Xar[es
13/14phobos.[tec.cat/rsanch65/Z/inde[.php/Cisco-CLI
T F T P _ F I L E = f i t x e r
comanda
t f t d n l d
Restaurar password
Reset
CAT: Esborrar passwords
1 . F e r b r e a k e n e l t e r m i n a l
2 . M a r c a q u e e n e l p r z x i m r e i n i c i s ' u t i l i t z i e l r e g i s t r e d e c o n f i g u r a c i d e f b r i c a
3 . R e s e t e j a
4 . U n c o p r e i n i c i a t c o p i a l a c o n f i g u r a c i a c t i v a a l a d ' i n i c i
ESP: Borrar passwords
1 . H a z u n b r e a k e n e l t e r m i n a l
2 . M a r c a q u e e n e l p r x i m o r e i n i c i o s e u t i l i c e e l r e g i s t r o d e c o n f i g u r a c i n d e f b r i c a
3 . H a z u n r e s e t
4 . U n a v e z r e i n i c i a d o c o p i a l a c o n f i g u r a c i n a c t i v a a l a d e i n i c i o
ENG: Password recover\
1 . P r e s s b r e a k o n t e r m i n a l
2 . M a k e t h a t t h e n e x t r e b o o t u s e f a c t o r y - d e f a u l t c o n f i g u r a t i o n r e g i s t e r v a l u e
3 . R e s e t
4 . C o p y r u n n i n g c o n f i g t o s t a r t u p c o n f i g
CLI
1 . S e n d b r e a k
2 .
r o m m o n 1 > c o n f r e g 0 x 2 1 4 2
3 .
r o m m o n 2 > r e s e t
4 .
r o u t e r ( c o n f i g ) # c o p y r u n n i n g - c o n f i g s t a r t u p - c o n f i g
DOC:http://www.cisco.com/en/US/products/sw/iosswrel/ps1831/products_tech_note09186a00801746e6.shtml
cop\
Running \ start-up config
R o u t e r # c o p y r u n n i n g - c o n f i g s t a r t u p - c o n f i g / / G u a r d a r c o n f i g . e n N V R A M
-
20/01/12 Cisco-CLI - Xar[es
14/14phobos.[tec.cat/rsanch65/Z/inde[.php/Cisco-CLI
backups TFTP
R o u t e r # c o p \ r u n n i n g - c o n f i g t f t p / / G u a r d a r c o n f i g . e n t f t p
R o u t e r # c o p \ t f t p r u n n i n g - c o n f i g / / R e c u p e r a r c o n f i g . d e t f t p
IOS
R o u t e r # c o p \ f l a s h t f t p / / G u a r d a r I O S e n t f t p
R o u t e r # c o p \ t f t p f l a s h / / R e c u p e r a r I O S d e t f t p
Monitoritzaciy de switch
Monitoritzar ports concrets: 1 - Entrar al port des de el que monitoritzar 2 - Especificar les interficies amonitoritzar
S w i t c h ( c o n f i g - i f ) # p o r t m o n i t o r [ t i p u s p o r t ] [ n o m p o r t ]
Monitoritzar una vlan: 1 - Entrar al port des de el que monitoritzar 2 - Especificar la vlan a monitoritzar
S w i t c h ( c o n f i g - i f ) # p o r t m o n i t o r v l a n 1
Ms informaci per a altres modelshttp://www.cisco.com/en/US/products/hw/switches/ps708/products_tech_note09186a008015c612.shtml
Obtingut de http://phobos.xtec.cat/rsanch65/w/index.php/Cisco-CLI
Darrera modificaci de la pgina: 08:57, 20 gen 2012.