OSPF
Configuration de base
La configuration base pour annoncer les routes peuvent se faire de deux façons: * Soit en déclarant les réseaux directement connecté que l'on souhaite annoncé * Soit en déclarant les interfaces que l'on souhaite annoncé
Configuration classique
configure terminal
router ospf <process-id>
network <network> <wildcard-mask> area <area>
exit
exit
Configuration par interface
configure terminal
router ospf <process-id>
exit
interface GigabitEthernet0/1
ip ospf network <type-of-network>
ip ospf <process-id> area <area>
ip ospf cost <cost>
exit
exit
Exemple
configure terminal
router ospf 10
network 192.168.0.0 0.0.255.255 area 0
exit
interface GigabitEthernet0/1
ip ospf 10 area 0
ip ospf cost 100
exit
exit