wiki:site:cisco:ospf:start
This is an old revision of the document!
OSPF (RFC 2328)
- AD = 110
- Classless, VLSM
- Rychlá convergence
- Náročnější na systémové prostředky (RAM,CPU) a obsluhu
- Možnost authentikace
- updaty jen při změně topologie
- každých 30min ful update
- metrika - Cost, odvozeno od bandwidth
- čím menší Cost, tím lépe
- Cost = 100,000,000 / bandwidth of link in bps (FA=1,Eth=10,E1=48,T1=64)
- LSA Link-state advertisement - pomocí LSA si routery vyměňují informace o svých interfacech (stav, ip, bw)
- Dijkstrův algoritmus / SPF - pro výpočet stromu
- Topological database - Na základě LSA si router vytvoří mapu stromu, router je v něm kořenem, pak vyhodnotí nejlepší cesty
- Navazuje sousedské vztahy
- Hello 224.0.0.5 10s (30s no broacast medium)
- Dva routery, kteří splou mají navázat sousedství, musí mít stejně nastavené timery.
- DR,BDR naslouchá na 224.0.0.6
- Router, který není DR ani BDR je DROther
- Volba DR na point-to-point (PPP) linkách neprobíhá (serial,T1/E1)
- V NBMA sítích běží (FR,ATM) OSPF buď v sim.broadcastu (volba DR je nutná) a nebo v režimu point-to-multipoint (volba DR neprobíhá)
- Vžy musí být Area 0, do ní se připojují ostatní oblasti (1-65535) - celé dohromady = AS
- ABR - area border router (hranice mezi oblastmi ospf)
- ASBR - autonomous system border router (hranice s jiným rout.protokolem)
- Refernce Bandwidth = 100,000,000
- Cost = Ref.BW/link_bw ⇒ FastEth=1, Ge=1, 10Ge=1 - coz je problem
router(config)#router ospf <process-id>
router(config-router)#network <ip-address> <wildcard> area <id>
show ip protocols
show ip route
show ip ospf
show ip ospf neighbor
show ip ospf interface
debug ip ospf packet
debug ip ospf hello
debug ip ospf adj
Plain text authentikace per Area:
Router(config)# router ospf 1
Router(config-router)# area 0 authentication
Router(config)# interface fa 0/0
Router(config-if)# ip ospf authentication-key password
Plain text authentikace per Interface:
Router(config)# interface fa 0/0
Router(config-if)# ip ospf authentication
Router(config-if)# ip ospf authentication-key password
MD5 authentikace per Area:
Router(config)# router ospf 1
Router(config-router)# area 0 authentication message-digest
Router(config)# interface fa 0/0
Router(config-if)# ip ospf message-digest-key 10 md5 password
MD5 authentikace per Interface:
Router(config)# interface fa 0/0
Router(config-if)# ip ospf authentication message-digest
Router(config-if)# ip ospf message-digest-key 10 md5 password
Tuninng - priority:
Router(config)# interface fa 0/0
Router(config-if)# ip ospf priority <0-255>
Router# clear ip ospf process
Tuninng - Router ID:
Router(config)# router ospf 1
Router(config-router)# router id <ip-address>
Router# clear ip ospf process
Tunning - Loopback:
Router(config)# interface Loopback 1
Router(config-if)# ip address 10.10.10.10 255.255.255.255
Tunning - Bandwidth/Cost:
Router(config)# interface ser 0/0/0
Router(config-if)# bandwidth 64
nebo:
Router(config-if)# ip ospf cost 1562
Tunning - Refernece BW pro linky > 100Mbps:
Router(config)# router ospf 1
Router(config-router)# auto-cost reference-bandwidth 10000 (max.rychlost v Mbps)
Propagace default-route (ta je pak v RT ostatnich routeru oznacena E2*O):
Router(config)# router ospf 1
Router(config-router)# default-information originate
Inter Area sumarizace na ABR:
Router(config)# router ospf 1
Router(config-router)# network 192.168.10.64 0.0.0.3 area 1
Router(config-router)# network 192.168.10.68 0.0.0.3 area 1
Router(config-router)# network 10.10.10.10 0.0.0.255 area 0
Router(config-router)# area 1 range 192.168.10.64 255.255.255.248
Load Balancing (jen equal-cost, 1-16 smeru, def.4):
Router(config)# router ospf 1
Router(config-router)# maximum-paths <1-16>
wiki/site/cisco/ospf/start.1453153276.txt.gz · Last modified: by root
