(RFC 2328)
Link state:
LSDB obsahuje:
Přehled Pojmů:
Konfigurace:
Příklad - Network matching:
RID Router ID:
Verifikace OSPF
Router# show ip ospf interface brief
Router# show ip protocols
Router# show ip ospf neighbors
Router# show ip ospf database
Router# show ip route
OSPF Shrnutí:
Hello zprávy:
Obsah Hello zpráv:
Podmínky navázání sousedství:
show ip ospf neighbor States:
Router(config-if)# ip ospf hello-interval sekundy
Router(config-if)# ip ospf dead-interval sekundy
show ip ospf interface fa0/0
show ip ospf neighbors
Nastavi dead-interval na 1s, hello na 1/4s
Router(config-if)# ip ospf dead-interval minimal hello-multiplier 4
Určuje se v tomto pořadí:
Mají-li routery rozdílné MTU:
Tři typy auth.:
Konfigurace:
Type 0 - none
Router(config-if)# ip ospf authentication null
Type 1 - per-interface
Router(config-if)# ip ospf authentication
Router(config-if)# ip ospf authentication-key key-value
Type 1 - Globálně
Router(config-router)# area area-id authentication
Type 2 - per-interface
Router(config-if)# ip ospf authentication message-gigest
Router(config-if)# ip ospf message-digest-key key-number md5 key-value
Type 2 - Globálně
Router(config-router)# area area-id authentication message-digest
key-value - maximálně 16 znaků
show ip ospf interface
show ip ospf neighbor
debug ip ospf adjacency
str.162
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>