OSPF est le protocole très utilisée en entreprise, il utilise des AS (Autonomous System), puis on retrouve le protocole BGP (Border Gateway protocol).
| Protocoles | Couches |
|---|---|
| EGP (Exterieur GP) | BGP (niveau 5) |
| IGP (Interieur GP) | Link state = OSPF (niveau 3) ; distance vector = RIP (niveau 3); hybride = EIGRP (niveau 3) |
Pour le protocole BGP il existe des numéros AS permettant de définir un autre réseau (image de area) et certains de numéro AS sont considérer comme privée et d’autres comme publique.

Dans ce coeur de réseau, on utilise des protocoles dynamiques, OSPF et BGP. OSPF est utilisée pour transmettre les adresses de loopback des routeurs du coeur de réseau, ce qui permet de faire du routage dynamique avec Bgp et ainsi avoir une session iBgp entre les deux routeurs de bordure d’AS. Cette architecture nécessite d’être full mech, c’est à dire qu’on respecte la formule suivante : (N.router * N.router-1) / 2 donc les routeurs sont tous interconnectés via des liaisons iBgp.
router ospf 10
network 9.9.9.0 0.0.0.255 area 0
network 10.10.10.4 0.0.0.3 area 0
network 10.10.10.16 0.0.0.3 area 0
router bgp 65500
neighbor IBGP peer-group
neighbor IBGP remote-as 65500
neighbor IBGP update-source Loopback0
neighbor IBGP next-hop-self
neighbor 9.9.9.3 peer-group IBGP
neighbor 192.168.0.13 remote-as 64000
interface Loopback0
ip address 9.9.9.2 255.255.255.255
!
interface Serial1/0
ip address 10.10.10.17 255.255.255.252
encapsulation ppp
serial restart-delay 0
!
interface Serial1/1
ip address 10.10.10.5 255.255.255.252
encapsulation ppp
serial restart-delay 0
!
interface Serial1/2
ip address 192.168.0.14 255.255.255.252
encapsulation ppp
serial restart-delay 0
!
router ospf 10
log-adjacency-changes
network 9.9.9.0 0.0.0.255 area 0
network 10.10.10.4 0.0.0.3 area 0
network 10.10.10.16 0.0.0.3 area 0
!
router bgp 65500
no synchronization
bgp log-neighbor-changes
neighbor IBGP peer-group
neighbor IBGP remote-as 65500
neighbor IBGP update-source Loopback0
neighbor IBGP next-hop-self
neighbor 9.9.9.3 peer-group IBGP
neighbor 9.9.9.4 peer-group IBGP
neighbor 9.9.9.5 peer-group IBGP
neighbor 192.168.0.13 remote-as 64000
no auto-summary
!
interface Loopback0
ip address 9.9.9.3 255.255.255.255
!
interface Serial1/0
ip address 10.10.10.18 255.255.255.252
encapsulation ppp
serial restart-delay 0
!
interface Serial1/2
ip address 10.10.10.14 255.255.255.252
encapsulation ppp
serial restart-delay 0
!
router ospf 10
log-adjacency-changes
network 9.9.9.0 0.0.0.255 area 0
network 10.10.10.12 0.0.0.3 area 0
network 10.10.10.16 0.0.0.3 area 0
!
router bgp 65500
no synchronization
bgp log-neighbor-changes
neighbor IBGP peer-group
neighbor IBGP remote-as 65500
neighbor IBGP update-source Loopback0
neighbor 9.9.9.2 peer-group IBGP
neighbor 9.9.9.5 peer-group IBGP
no auto-summary
!
interface Loopback0
ip address 9.9.9.4 255.255.255.255
!
interface Serial1/0
ip address 10.10.10.9 255.255.255.252
encapsulation ppp
serial restart-delay 0
!
interface Serial1/1
ip address 10.10.10.6 255.255.255.252
encapsulation ppp
serial restart-delay 0
!
router ospf 10
log-adjacency-changes
network 9.9.9.0 0.0.0.255 area 0
network 10.10.10.4 0.0.0.3 area 0
network 10.10.10.8 0.0.0.3 area 0
!
router bgp 65500
no synchronization
bgp log-neighbor-changes
neighbor IBGP peer-group
neighbor IBGP remote-as 65500
neighbor IBGP update-source Loopback0
neighbor 9.9.9.2 peer-group IBGP
neighbor 9.9.9.5 peer-group IBGP
no auto-summary
!
interface Loopback0
ip address 9.9.9.5 255.255.255.255
!
interface Serial1/3
ip address 10.10.10.10 255.255.255.252
encapsulation ppp
serial restart-delay 0
!
interface Serial1/0
ip address 192.168.0.5 255.255.255.252
encapsulation ppp
serial restart-delay 0
!
interface Serial1/2
ip address 10.10.10.13 255.255.255.252
encapsulation ppp
serial restart-delay 0
!
interface Serial1/1
ip address 192.168.0.9 255.255.255.252
encapsulation ppp
serial restart-delay 0
!
router ospf 10
log-adjacency-changes
network 9.9.9.0 0.0.0.255 area 0
network 10.10.10.8 0.0.0.3 area 0
network 10.10.10.12 0.0.0.3 area 0
!
router bgp 65500
no synchronization
bgp log-neighbor-changes
neighbor IBGP peer-group
neighbor IBGP remote-as 65500
neighbor IBGP update-source Loopback0
neighbor IBGP next-hop-self
neighbor 8.8.8.8 remote-as 65000
neighbor 8.8.8.8 ebgp-multihop 2
neighbor 8.8.8.8 update-source Loopback0
neighbor 9.9.9.2 peer-group IBGP
neighbor 9.9.9.3 peer-group IBGP
neighbor 9.9.9.4 peer-group IBGP
no auto-summary
!
ip route 8.8.8.8 255.255.255.255 192.168.0.6
ip route 8.8.8.8 255.255.255.255 192.168.0.10
!
interface FastEthernet0/0
ip address 1.1.1.254 255.255.255.0
duplex auto
speed auto
!
interface Serial1/0
ip address 192.168.0.13 255.255.255.0
encapsulation ppp
serial restart-delay 0
!
router bgp 64000
no synchronization
bgp log-neighbor-changes
network 1.1.1.0 mask 255.255.255.0
neighbor 192.168.0.14 remote-as 65500
no auto-summary
!
Loopback0
ip address 8.8.8.8 255.255.255.255
!
interface Serial1/1
ip address 192.168.0.6 255.255.255.252
encapsulation ppp
serial restart-delay 0
!
interface Serial1/3
ip address 192.168.0.10 255.255.255.252
encapsulation ppp
serial restart-delay 0
!
router bgp 65000
no synchronization
bgp log-neighbor-changes
network 2.2.2.0 mask 255.255.255.0
neighbor 9.9.9.5 remote-as 65500
neighbor 9.9.9.5 ebgp-multihop 2
neighbor 9.9.9.5 update-source Loopback0
no auto-summary
!
ip forward-protocol nd
ip route 9.9.9.5 255.255.255.255 192.168.0.5
ip route 9.9.9.5 255.255.255.255 192.168.0.9
!