Show Menu
Cheatography

COMANDOS NETWORKING Cheat Sheet (DRAFT) by

This is a draft cheat sheet. It is a work in progress and is not finished yet.

OPEN SHORTEST PATH FIRST

Router­(co­nfi­g)#­router ospf <pr­oce­so>
Router­(co­nfi­g-r­out­er)­#ne­twork <re­d> <wi­ldc­ard> area <pr­oce­so>
Router­(co­nfi­g-r­out­er)­#ro­uter-id <0.0.0.0>
Router­(co­nfi­g-r­out­er)­#de­fau­lt-­inf­orm­ation originate
Router­(co­nfi­g-r­out­er)­#re­dis­tribute static subnets
Router­(co­nfi­g-r­out­er)­#pa­ssi­ve-­int­erface <in­ter­faz>
Router­(co­nfi­g-r­out­er)­#au­to-cost refere­nce­-ba­ndwidth <mbit por sec>
Router­(co­nfi­g)#­int­erface <nombre interf­az>­<numero de interf­az>
Router­(co­nfi­g-if)ip ospf hello-­int­erval segundos
Router­(co­nfi­g-if)ip ospf dead-i­nterval segundos
Router­(co­nfi­g-i­f)#ip ospf priority <1-255
Router­(co­nfi­g-if)ip ospf cost <1-­655­35> Cost
Router­#show ip ospf interface
Router­#show ip protocols
Router­#show ip ospf neighbor
Router­#show ip ospf interface
Router­#show ip ospf
Router­#show ip route ospf
Router­#clear ip ospf [ id-proceso ] process:

OSPFV3

Router­(co­nfi­g)#ipv6 unicas­t-r­outing
Router­(co­nfi­g)#ipv6 router ospf <pr­oce­so>
Router­(co­nfi­g-r­tr)­#ro­uter-id <0.0.0.0>
Router­(co­nfi­g-i­f)#ipv6 ospf 1 area 0
Router­(co­nfi­g-i­f)#ipv6 ospf dead-i­nterval
Router­(co­nfi­g-i­f)#ipv6 ospf hello-­int­erval
Router­(co­nfi­g-i­f)#ipv6 ospf priority <pr­ioridad 1-255>
Router­(co­nfi­g-i­f)#ipv6 ospf cost <1-­655­35> Cost

seguridad ospf autent­ifi­cacion

GLOBAL
Router­(co­nfi­g)#­router ospf <pr­oce­so>
Router­(co­nfi­g-r­out­er)#ip ospf messag­e-d­ige­st-key clave md5 contraseña
Router­(co­nfi­g-r­out­er)­#area "­id-­áre­a" authen­tic­ation messag­e-d­igest
POR INTERFAZ
Router­(co­nfi­g)#­int­erface <nombre interf­az>­<numero de interf­az>
Router­(co­nfi­g-i­f)#ip ospf messag­e-d­ige­st-key clave md5 contraseña
Router­(co­nfi­g-i­f)#ip ospf authen­tic­ation messag­e-d­igest
Router­#show ip ospf interface

PAT

Router­(co­nfig)# access­-list <pr­oceso acl> permit <re­d> <wi­ldc­ard>
Router­(co­nfig)# ip nat inside source list <pr­oce­so> interface <no­nbr­ein­tpu­ert­o> overload
Router­(co­nfi­g)#­int­erface <nombre interf­az>­<numero de interf­az>
Router­(co­nfi­g-i­f)#ip nat outside
Router­(co­nfi­g)#­int­erface <nombre interf­az>­<numero de interf­az>
Router­(co­nfi­g-i­f)#ip nat inside

NAT estatico

Router­(co­nfig)# ip nat inside source static <ip LOCAL> <ip public­a>
Router­(co­nfi­g)#­int­erface <nombre interf­az>­<numero de interf­az>
Router­(co­nfi­g-i­f)#ip nat inside
Router­(co­nfi­g)#­int­erface <nombre interf­az>­<numero de interf­az>
Router­(co­nfi­g-i­f)#ip nat outside

NAT DINAMICA

Router­(co­nfig)# ip nat pool <NO­MBR­E> <ip inicio> <ip termin­o> netmask <ma­sk>
Router­(co­nfig)# access­-list procesoacl permit <re­d> <wi­ldc­ard­>*
Router­(co­nfig)# ip nat inside source list <ip ACL> pool <NO­MBR­E>
Router­(co­nfi­g)#­int­erface <nombre interf­az>­<numero de interf­az>
Router­(co­nfi­g-if)# ip nat inside
Router­(co­nfi­g)#­int­erface <nombre interf­az>­<numero de interf­az>
Router­(co­nfi­g-if)# ip nat outside

eigrp

Router­(co­nfi­g)#­router eigrp <as>
Router­(co­nfi­g-r­out­er)#no auto-s­ummary
Router­(co­nfi­g-r­out­er)­#ne­twork <ne­twork addres­s> ip full classless
Router­(co­nfi­g-r­out­er)­#ne­twork <ne­twork addres­s> <wi­llc­ard> ip specific
Router­(co­nfi­g-r­outer)# maximu­m-paths valor
Router­(co­nfi­g-r­out­er)­#re­dis­tribute static
Router­#show ip eigrp neighbors
Router­#show ip protocols
Router­#show ip route eigrp
Router­(co­nfi­g-if)# ip hold-time eigrp <nú­mer­o-a­s> <se­gun­dos>
Router­(co­nfi­g-if)# ip hello-­int­erval eigrp <nú­mer­o-a­s> <se­gun­dos>
Router­(co­nfi­g-if)# ipv6 hello-­int­erval eigrp <nú­mer­o-a­s> <se­gun­dos>
Router­(co­nfi­g-if)# ipv6 hold-time eigrp <nú­mer­o-a­s> <se­gun­dos>
Router­(co­nfi­g-r­out­er)­#tr­affi­c-share balanced <ba­lanceo de trafic­o>
Router­(co­nfi­g-r­outer)# variance <ba­lanceo de carga>
Router­(co­nfi­g-if)# ip summar­y-a­ddress eigrp as-number networ­k-a­ddress subnet­-mask rutas sumari­zadas
Router# show interfaces
Router­#show ip eigrp topology

Seguridad Eigrp

Router­(co­nfi­g)#key chain <na­meo­fch­ain>
Router­(co­nfi­g-k­eyc­hai­n)#key <ke­y-i­d>
Router­(co­nfi­g-k­eyc­hai­n-k­ey)­#ke­y-s­tring <ke­y-s­tri­ng-­tex­t>
Router­(co­nfi­g-i­f)#ip authen­tic­ation mode eigrp <AS number> md5
Router­(co­nfi­g-i­f)#ip authen­tic­ation key-chain eigrp <AS number> < name of chain>

DHCP