show ip interface brief
show ip route
show ip ospf neighbor
show ip protocols
show ip ospf
show ip ospf interface
conf t
router ospf "id proccessus"
exit
- l'ID processus correspond à un pool de gestion ospf. Tous les routeur/interface en ospf 10 interagirons ensemble.
conf t
router ospf 10
exit
conf t
router ospf "id proccessus"
router-id "id routeur"
end
conf t
router ospf 10
router-id 1.1.1.1
end
conf t
router ospf "id proccessus"
router-id "id routeur"
end
clear ip ospf process
conf t
router ospf 10
router-id 1.1.1.1
end
clear ip ospf process
conf t
interface Loopback "id interface loopback"
ip address "id routeur" 255.255.255.255
end
conf t
interface Loopback 1
router-id 1.1.1.1
end
conf t
router ospf "id proccessus"
network "réseau n°1 à router" "wildmask du réseau n°1 à router" area "zone réseau"
network "réseau n°2 à router" "wildmask du réseau n°2 à router" area "zone réseau"
La zone réseau correspond à un ensemble de routeur.
conf t
router ospf "id proccessus"
network 10.10.1.0 0.0.0.255 area 5
network 10.1.1.4 0.0.0.3 area 5
conf t
router ospf "id proccessus"
network "adresse IP 1ere interface" 0.0.0.0 area "zone réseau"
network "adresse IP 2eme interface" 0.0.0.0 area "zone réseau"
conf t
router ospf "id proccessus"
network 10.10.1.1 0.0.0.0 area 5
network 10.1.1.5 0.0.0.0 area 5
interface GigabitEthernet X/X/X
ip ospf "id proccessus" area "zone réseau"
interface Serial X/X/X
ip ospf "id proccessus" area "zone réseau"
interface Loopback X
ip ospf "id proccessus" area "zone réseau"
interface GigabitEthernet 0/0/0
ip ospf 10 area 5
interface Serial 0/0/0
ip ospf 10 area 5
interface Loopback 1
ip ospf 10 area 5
conf t
router ospf "id proccessus"
passive-interface "ID interface n°1"
passive-interface "ID interface n°2"
end
conf t
router ospf 10
passive-interface GigabitEthernet 0/0/0
passive-interface loopback 0
end
types de réseau admis:
conf t
interface GigabitEthernet X/X/X
ip ospf network "type de réseau"
end
conf t
interface GigabitEthernet X/X/X
ip ospf network point-to-point
end
conf t
interface GigabitEthernet X/X/X
ip ospf priority XXX
clear ip ospf process
end
conf t
interface GigabitEthernet 0/0/0
ip ospf priority 255
clear ip ospf process
end
- Un priorité de 255 correspond à forcer un DR (priorité la + haute)
- La bonne pratique pour le BDR consiste à mettre une priorité de 254.
- Saisir une priorité de 0 empéchera le router de devenir DR ou BDR même en cas de pannes des autres routeurs.
interface "ID interface n°1"
ip ospf cost xx
interface "ID interface n°2"
ip ospf cost XX
end
interface GigabitEthernet 0/0/0
ip ospf cost 30
interface loopback 0
ip ospf cost 10
end
router ospf "ID processus"
auto-cost reference-bandwidth "rapport de bande passante"
Commande à propagé sur toutes ls interfaces des routeurs du réseau.
Suivant le type de connectiques le plus rapide présent sur le réseau:
router ospf "ID processus"
auto-cost reference-bandwidth 10000
router ospf "ID processus"
auto-cost reference-bandwidth 1000
router ospf "ID processus"
auto-cost reference-bandwidth 100
router ospf "ID processus"
auto-cost reference-bandwidth 10
interface "ID interface n°1"
ip ospf hello-interval "intervalle en seconde"
ip ospf dead-interval "intervalle en seconde"
hello-interval: intervalle entre l'envoie de massage Hello. Par défaut: 10 secondes
dead-interval: période pendant laquelle le routeur attend de recevoir un paquet Hello avant de déclarer le voisin en panne. Par défaut: 40 secondes
interface "ID interface n°1"
no ip ospf hello-interval
no ip ospf dead-interval
ip route "réseau à router" "netmasque du réseau" "interface où doit être routé lle trafic"
ip route 0.0.0.0 0.0.0.0 Serial0/1/0
router ospf "ID processus"
default-information originate
end
router ospf 10
default-information originate
end