Sei sulla pagina 1di 2

OSPF (sintaxa)

Configurare globala Router(config)# router ospf <PID> Router(config-router)# router-id <IP> Router(config-router)# network <IP> <NM|WM> area <area-id>

 

intre 1 si 65535. Orice valoare este OK alegem un RID usor de retinut/asociat

 

merge si invers de NM. NU accepta WM!

Router(config-router)# area <area-id> { stub [no-summary] | nssa [no-summary] }

tipul ariei

 

Router(config-router)# log-adjacency-changes detail

informatii detaliate despre starea OSPF

 

Router(config-router)# area <area-id> virtual-link <RID> [hello-interval <sec>] [dead-interval <sec>]

Router(config-router)# neighbor <IP> [cost <nr>] [priority <nr>] [poll-interval <sec>]

by-default priority=0

 

Router(config-router)# area <area-id> range <IP> <NM> [not-advertise] [cost <nr>] [advertise]

sumarizare/filtrare

 

Router(config-router)# passive-interface { default | <intf> } Router(config-router)# area <area-id> default-cost <cost>

similar EIGRP, nu trimitem/acceptam Hello

costul rutei default generat in stub/nssa

 

Router(config-router)# distance ospf { [external <nr>] [intra-area <nr>] [inter-area <nr>] }

 

default fiecare 110

Router(config-router)# auto-cost reference-bandwidth [<Mbps>] Router(config-router)# ispf Router(config-router)# maximum-paths <nr> Router(config-router)# discard-route { external | internal }

by-default 100. Identic pe toate routerele!

 

consum mai mult RAM, dar mai putin CPU

equal-cost, 4 default, 16 maxim

 

apare sau nu ruta de discard in RIB in

 
 

urma sumarizarii

 

Router(config-router)# max-metric router-lsa [ on-startup <sec> | wait-for-bgp ]

Gracefull Shutdown

 

Router(config)# ip ospf name-lookup

rezolutie inversa de DNS pt troubleshooting

Configurare interfate Router(config-if)# ip ospf <PID> area <area-id> [secondaries none] Router(config-if)# ip ospf hello-interval <sec>

 

alternativa la asignarea intf la o arie

 

intre 1 si 65535 sec

 

Router(config-if)# ip ospf dead-interval { <sec> | minimal hello-multiplier <nr> }

intre 1 si 65535 sec; intre 3 si 20

 

Router(config-if)# ip ospf priority <nr> Router(config-if)# ip ospf cost <nr>

by-default 1, intre 0 si 255

 

intre 1 si 65535

 

Router(config-if)# ip ospf network { broadcast | non-broadcast | point-to-multipoint [non-broadcast] | point-to-point }

Router(config-if)# ip ospf mtu-ignore Router(config-if)# ip ospf retransmit-interval <sec> Router(config-if)# ip ospf transmit-delay <sec>

daca exista MTU mismatch

 

interval intre retransmisii neconfirmate (5s)

secunde cu care se incrementeaza Age (1s)

Autentificare Router(config-if)# ip ospf authentication null

 

type 0, este default

 

Router(config-if)# ip ospf authentication Router(config-if)# ip ospf authentication-key <pass>

type 1

 

parola trimisa in clear text

 

Router(config-if)# ip ospf authentication message-digest Router(config-if)# ip ospf message-digest-key <key> mdk <pass>

type 2; se trimite un hash MD5

 

key intre 1 si 255. Tb sa fie identica

.

Router(config-router)# area <area-id> authentication Router(config-router)# area <area-id> authentication message-digest

type 1; schimba autentificarea pt toate intf type 2; schimba autentificarea pt toate intf

1

|

P

a

g e

Router(config-router)# area <area-id> virtual-link <RID> authentication null

Router(config-router)# area <area-id> virtual-link <RID> authentication authentication-key <pass>

type 0 type 1
type 0
type 1

Router(config-router)# area <area-id> virtual-link <RID> authentication message-digest message-digest-key <key> md5

<pass>

type 2
type 2

Propagare ruta default (quad zero) Router(config-router)# default information-originate [always] [metric <nr>] [metric-type <1|2>] [route-map <RM>]

Comenzi de viuzalizare Router# show ip protocols Router# show ip ospf [<PID>] Router# show ip ospf [<PID>] [<area-id>] database [router | network | external | nssa-external | summary | asbr- summary | database-summary] Router# show ip ospf [<PID>] border-routers Router# show ip ospf [<PID>] [<area-id>] neighbor [<intf>] [<neighID>] [detail] Router# show ip ospf [<PID>] summary-address Router# show ip ospf [<PID>] virtual-links Router# show ip ospf [<PID>] [<area-id>] interface [<intf>] [brief] Router# show ip ospf [<PID>] [<area-id>] traffic [<intf>] Router# show ip ospf [<PID>] statistics [detail]

Comenzi depanare Router# clear ip ospf [<PID>] { process | counters [neighbor [<neighID|neigh_Intf>]| traffic | redistribution [<intf>] } Router# debug ip ospf { hello | adj | spf | events | flood | nsf | packet }

2

|

P

a

g e