Sei sulla pagina 1di 2

OSPF (sintaxa)

Configurare globala Router(config)# router ospf <PID> intre 1 si 65535. Orice valoare este OK Router(config-router)# router-id <IP> alegem un RID usor de retinut/asociat Router(config-router)# network <IP> <NM|WM> area <area-id> 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> } similar EIGRP, nu trimitem/acceptam Hello Router(config-router)# area <area-id> default-cost <cost> 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] alternativa la asignarea intf la o arie Router(config-if)# ip ospf hello-interval <sec> 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> by-default 1, intre 0 si 255 Router(config-if)# ip ospf cost <nr> 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 daca exista MTU mismatch Router(config-if)# ip ospf retransmit-interval <sec> interval intre retransmisii neconfirmate (5s) Router(config-if)# ip ospf transmit-delay <sec> secunde cu care se incrementeaza Age (1s) Autentificare Router(config-if)# ip ospf authentication null Router(config-if)# ip ospf authentication Router(config-if)# ip ospf authentication-key <pass> Router(config-if)# ip ospf authentication message-digest Router(config-if)# ip ospf message-digest-key <key> mdk <pass> Router(config-router)# area <area-id> authentication Router(config-router)# area <area-id> authentication message-digest type 0, este default type 1 parola trimisa in clear text type 2; se trimite un hash MD5 key intre 1 si 255. Tb sa fie identica. type 1; schimba autentificarea pt toate intf type 2; schimba autentificarea pt toate intf

1|Page

Router(config-router)# area <area-id> virtual-link <RID> authentication null type 0 Router(config-router)# area <area-id> virtual-link <RID> authentication authentication-key <pass> type 1 Router(config-router)# area <area-id> virtual-link <RID> authentication message-digest message-digest-key <key> md5 <pass> 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 | asbrsummary | 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|Page

Potrebbero piacerti anche