EIGRP Passive Interface
Voici la configuration EIGRP de R1 et R2 :
R1(config)#router eigrp 12
R1(config-router)#network 192.168.12.0
R1(config-router)#network 192.168.10.0
R2(config)#router eigrp 12
R2(config-router)#network 192.168.12.0
En conséquence, R2 apprendra le réseau 192.168.10.0 /24 :
R2#show ip route eigrp
D 192.168.10.0/24 [90/307200] via 192.168.12.1, 00:00:59,
FastEthernet0/0
Le problème est cependant que R1 envoie des paquets Hello vers nos
ordinateurs. Vous pouvez le vérifier en activant un débogage :
R1#debug eigrp packets hello
EIGRP Packets debugging is on
(HELLO)
EIGRP: Sending HELLO on FastEthernet0/0
AS 12, Flags 0x0, Seq 0/0 idbQ 0/0 iidbQ un/rely 0/0
EIGRP: Sending HELLO on FastEthernet0/1
AS 12, Flags 0x0, Seq 0/0 idbQ 0/0 iidbQ un/rely 0/0
Ci-dessus, vous pouvez voir que les paquets Hello vont dans les deux sens.
Utilisons la commande d'interface passive pour désactiver les paquets hello
vers le commutateur:
R1(config)#router eigrp 12
R1(config-router)#passive-interface FastEthernet 0/1
C'est tout ce que vous avez à faire. Vous pouvez trouver toutes les interfaces
passives avec la commande suivante :
R1#show ip protocols
Routing Protocol is "eigrp 12"
Outgoing update filter list for all interfaces is not set
Incoming update filter list for all interfaces is not set
Default networks flagged in outgoing updates
Default networks accepted from incoming updates
EIGRP metric weight K1=1, K2=0, K3=1, K4=0, K5=0
EIGRP maximum hopcount 100
EIGRP maximum metric variance 1
Redistributing: eigrp 12
EIGRP NSF-aware route hold timer is 240s
Automatic network summarization is in effect
Automatic address summarization:
192.168.10.0/24 for FastEthernet0/0
Maximum path: 4
Routing for Networks:
192.168.10.0
192.168.12.0
Passive Interface(s):
FastEthernet0/1
Routing Information Sources:
Gateway Distance Last Update
Distance: internal 90 external 170
Si vous avez laissé le débogage activé, vous verrez que les paquets hello ne
sont désormais envoyés que vers R2 :
EIGRP: Sending HELLO on FastEthernet0/0
AS 12, Flags 0x0, Seq 0/0 idbQ 0/0 iidbQ un/rely 0/0
Le réseau est toujours annoncé, ce que nous pouvons confirmer en vérifiant
R2 :
R2#show ip route eigrp
D 192.168.10.0/24 [90/307200] via 192.168.12.1, 00:02:54,
FastEthernet0/0
Problème résolu. Le réseau est toujours annoncé mais nous n'envoyons plus
de paquets hello EIGRP vers nos ordinateurs. Vous devez utiliser cette
commande sur toutes les interfaces où aucun voisin EIGRP n'est trouvé et qui
ont un réseau annoncé dans EIGRP.
Si vous avez de nombreuses interfaces qui doivent être passives, vous pouvez
également utiliser la commande passive-interface default. Cela
désactivera l'envoi de paquets hello sur toutes les interfaces. Si vous
souhaitez envoyer des paquets hello, vous devez utiliser la commande no
passive-interface pour ces interfaces.
RIP et OSPF prennent également en charge la commande d'interface passive,
cela fonctionne de manière similaire à EIGRP. La seule différence avec RIP est
qu'il n'utilise pas de paquets Hello, il supprime simplement l'annonce des
paquets RIP sur l'interface.
Configurations
R1
hostname R1
!
interface FastEthernet0/0
ip address 192.168.10.254 255.255.255.0
!
interface FastEthernet0/1
ip address 192.168.12.1 255.255.255.0
!
router eigrp 12
network 192.168.12.0
network 192.168.10.0
passive-interface FastEthernet0/1
!
end
R2
hostname R2
!
interface FastEthernet0/0
ip address 192.168.12.2 255.255.255.0
!
router eigrp 12
network 192.168.12.0
end