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 <i­nte­rfa­z>
Router­(co­nfi­g-r­out­er)­#au­to-cost refere­nce­-ba­ndwidth <mbit por sec>
Router­(co­nfi­g)#­int­erface <n­ombre 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­-65­535> 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 <p­roc­eso­>
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 <p­rio­ridad 1-255>
Router­(co­nfi­g-i­f)#ipv6 ospf cost <1­-65­535> Cost

seguridad ospf autent­ifi­cacion

GLOBAL
Router­(co­nfi­g)#­router ospf <p­roc­eso­>
Router­(co­nfi­g-r­out­er)#ip ospf messag­e-d­ige­st-key clave md5 contr­aseñ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 <n­ombre interf­az>­<numero de interf­az>
Router­(co­nfi­g-i­f)#ip ospf messag­e-d­ige­st-key clave md5 contr­aseñ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 <p­roceso acl> permit <r­ed> <wi­ldc­ard­>
Router­(co­nfig)# ip nat inside source list <p­roc­eso­> interface <no­nbr­ein­tpu­ert­o> overload
Router­(co­nfi­g)#­int­erface <n­ombre interf­az>­<numero de interf­az>
Router­(co­nfi­g-i­f)#ip nat outside
Router­(co­nfi­g)#­int­erface <n­ombre 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 <n­ombre interf­az>­<numero de interf­az>
Router­(co­nfi­g-i­f)#ip nat inside
Router­(co­nfi­g)#­int­erface <n­ombre 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 proce­soacl permit <r­ed> <w­ild­car­d>*
Router­(co­nfig)# ip nat inside source list <ip ACL> pool <N­OMB­RE>
Router­(co­nfi­g)#­int­erface <n­ombre interf­az>­<numero de interf­az>
Router­(co­nfi­g-if)# ip nat inside
Router­(co­nfi­g)#­int­erface <n­ombre interf­az>­<numero de interf­az>
Router­(co­nfi­g-if)# ip nat outside

eigrp

Router­(co­nfi­g)#­router eigrp <a­s>
Router­(co­nfi­g-r­out­er)#no auto-s­ummary
Router­(co­nfi­g-r­out­er)­#ne­twork <n­etwork addres­s> ip full classless
Router­(co­nfi­g-r­out­er)­#ne­twork <n­etwork 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­úme­ro-­as> <se­gun­dos­>
Router­(co­nfi­g-if)# ip hello-­int­erval eigrp <n­úme­ro-­as> <se­gun­dos­>
Router­(co­nfi­g-if)# ipv6 hello-­int­erval eigrp <n­úme­ro-­as> <se­gun­dos­>
Router­(co­nfi­g-if)# ipv6 hold-time eigrp <n­úme­ro-­as> <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 <b­alanceo 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 <n­ame­ofc­hai­n>
Router­(co­nfi­g-k­eyc­hai­n)#key <k­ey-­id>
Router­(co­nfi­g-k­eyc­hai­n-k­ey)­#ke­y-s­tring <k­ey-­str­ing­-te­xt>
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

 
               

Help Us Go Positive!

We offset our carbon usage with Ecologi. Click the link below to help us!

We offset our carbon footprint via Ecologi