OSPF
OSPF (Open Shortest Path First) est un protocole de routage dynamiqueP de type "à état de liens".
Règle :
Router(config)#router ospf process-id
Router(config-router)#network @ip-reseau-direct-connecté masque-générique area area-id
Router(config-router)#exit
masque-générique=(255.255.255.255 - masqueSousRéseau)
Exemple :
sur Spade
Spade>enable
Spade#configure terminal
Spade(config)#interface fastEthernet 0/0
Spade(config-if)#no shutdown
Spade(config-if)#ip address 172.16.1.1 255.255.255.0
Spade(config-if)#exit
Spade(config)#interface fastEthernet 1/0
Spade(config-if)#ip address 192.168.12.1 255.255.255.0
Spade(config-if)#no shutdown
Spade(config)#router ospf 1
Spade(config-router)#network 192.168.12.0 0.0.0.255 area 0
Spade(config-router)#network 172.16.1.0 0.0.0.255 area 0
Spade(config-router)#exit
sur Hearts
Hearts>enable
Hearts#configure terminal
Hearts(config)#interface fastEthernet 0/0
Hearts(config-if)#no shutdown
Hearts(config-if)#ip address 192.168.12.2 255.255.255.0
Hearts(config-if)#exit
Hearts(config)#interface FastEthernet 1/0
Hearts(config-if)#no shutdown
Hearts(config-if)#ip address 192.168.23.2 255.255.255.0
Hearts(config-if)#exit
Hearts(config)#router ospf 1
Hearts(config-router)#network 192.168.12.0 0.0.0.255 area 0
Hearts(config-router)#network 192.168.23.0 0.0.0.255 area 0
Hearts(config-router)#exit
sur Clubs
Clubs>enable
Clubs#configure terminal
Clubs(config)#interface fastEthernet 0/0
Clubs(config-if)#no shutdown
Clubs(config-if)#ip address 172.16.2.3 255.255.255.0
Clubs(config-if)#exit
Clubs(config)#interface fastEthernet 1/0
Clubs(config-if)#no shutdown
Clubs(config-if)#ip address 192.168.23.3 255.255.255.0
Clubs(config-if)#exit
Clubs(config)#router ospf 1
Clubs(config-router)#network 172.16.2.0 0.0.0.255 area 0
Clubs(config-router)#network 192.168.23.0 0.0.0.255 area 0
Clubs(config-router)#exit
Spade>enable
Spade#configure terminal
Spade(config)#interface fastEthernet 0/0
Spade(config-if)#no shutdown
Spade(config-if)#ip address 172.16.1.1 255.255.255.0
Spade(config-if)#exit
Spade(config)#interface fastEthernet 1/0
Spade(config-if)#ip address 192.168.12.1 255.255.255.0
Spade(config-if)#no shutdown
Spade(config)#router ospf 1
Spade(config-router)#network 192.168.12.0 0.0.0.255 area 0
Spade(config-router)#network 172.16.1.0 0.0.0.255 area 0
Spade(config-router)#exit
sur Hearts
Hearts>enable
Hearts#configure terminal
Hearts(config)#interface fastEthernet 0/0
Hearts(config-if)#no shutdown
Hearts(config-if)#ip address 192.168.12.2 255.255.255.0
Hearts(config-if)#exit
Hearts(config)#interface FastEthernet 1/0
Hearts(config-if)#no shutdown
Hearts(config-if)#ip address 192.168.23.2 255.255.255.0
Hearts(config-if)#exit
Hearts(config)#router ospf 1
Hearts(config-router)#network 192.168.12.0 0.0.0.255 area 0
Hearts(config-router)#network 192.168.23.0 0.0.0.255 area 0
Hearts(config-router)#exit
sur Clubs
Clubs>enable
Clubs#configure terminal
Clubs(config)#interface fastEthernet 0/0
Clubs(config-if)#no shutdown
Clubs(config-if)#ip address 172.16.2.3 255.255.255.0
Clubs(config-if)#exit
Clubs(config)#interface fastEthernet 1/0
Clubs(config-if)#no shutdown
Clubs(config-if)#ip address 192.168.23.3 255.255.255.0
Clubs(config-if)#exit
Clubs(config)#router ospf 1
Clubs(config-router)#network 172.16.2.0 0.0.0.255 area 0
Clubs(config-router)#network 192.168.23.0 0.0.0.255 area 0
Clubs(config-router)#exit
0 Comment to "OSPF"
Post a Comment