Skip to content

TP 3 - MPLS

Configuration des interfaces

Pescara

conf t
hostname Pescara

ip cef

interface serial 1/0
no shut
ip address 10.1.1.14 255.255.255.252
exit
interface lo 0
ip address 10.10.10.4 255.255.255.255
exit
ip vrf Customer_A
rd 100:110
exit
ip vrf Customer_B
rd 100:120
exit
interface lo 101
ip vrf forwarding Customer_A
ip address 200.0.4.1 255.255.255.0
no ip directed-broadcast
exit
interface lo 102
ip vrf forwarding Customer_B
ip address 200.0.4.1 255.255.255.0
no ip directed-broadcast
exit

Pescaro

conf t
hostname Pescaro

ip cef 

interface serial 1/0
no shut
ip address 10.1.1.22 255.255.255.252
exit
interface lo 0
no shut
ip address 10.10.10.6 255.255.255.255
exit
ip vrf Customer_A
rd 100:110
exit
ip vrf Customer_B
rd 100:120
exit
interface lo 101
ip vrf forwarding Customer_A
ip address 200.0.6.1 255.255.255.0
no ip directed-broadcast
exit
interface lo 111
ip vrf forwarding Customer_A
ip address 200.1.6.1 255.255.255.0
exit
interface lo 102
ip vrf forwarding Customer_B
ip address 200.0.6.1 255.255.255.0
no ip directed-broadcast
exit

Pauillac

conf t
hostname Pauillac

ip cef 

interface serial 1/0
no shut
ip address 10.1.1.13 255.255.255.252
exit
interface serial  1/1
no shut
ip address 10.1.1.5 255.255.255.252
exit
interface serial  1/2
no shut
ip address 10.1.1.1 255.255.255.252
exit
interface lo 0
ip address 10.10.10.1 255.255.255.255
exit

Pomerol

conf t
hostname Pomerol

interface serial 1/0
no shut
ip address 10.1.1.21 255.255.255.252
exit
interface serial  1/1
no shut
ip address 10.1.1.6 255.255.255.252
exit
interface serial  1/2
no shut
ip address 10.1.1.9 255.255.255.252
exit
interface lo 0
ip address 10.10.10.3 255.255.255.255
exit

Pulligny

conf t
hostname Pulligny

interface serial  1/3
no shut
ip address 10.1.1.2 255.255.255.252
exit
interface serial  1/2
no shut
ip address 10.1.1.10 255.255.255.252
exit
interface lo 0
ip address 10.10.10.2 255.255.255.255
exit

Configuration des VRF

Pescara

ip vrf Customer_A
rd 100:110
route-target export 100:1000
route-target import 100:1000
exit
ip vrf Customer_B
rd 100:120
route-target export 100:2000
route-target import 100:2000
exit

Pescaro

ip vrf Customer_A
rd 100:110
route-target export 100:1000
route-target import 100:1000
exit
ip vrf Customer_B
rd 100:120
route-target export 100:2000
route-target import 100:2000
exit

Configuration du protocol de routage IGP

Pescara

router ospf 1
network 10.1.1.12 0.0.0.3 area 0
network 10.10.10.4 0.0.0.0 area 0

Pescaro

router ospf 1
network 10.1.1.20 0.0.0.3 area 0
network 10.10.10.6 0.0.0.0 area 0

Pauillac

router ospf 1
network 10.1.1.4 0.0.0.3 area 0
network 10.1.1.0 0.0.0.3 area 0
network 10.1.1.12 0.0.0.3 area 0
network 10.10.10.1 0.0.0.0 area 0

Pomerol

router ospf 1
network 10.1.1.4 0.0.0.3 area 0
network 10.1.1.8 0.0.0.3 area 0
network 10.1.1.20 0.0.0.3 area 0
network 10.10.10.3 0.0.0.0 area 0

Pulligny

router ospf 1
network 10.1.1.0 0.0.0.3 area 0
network 10.1.1.8 0.0.0.3 area 0
network 10.10.10.2 0.0.0.0 area 0

Configuration du protocol de distribution de label LDP

Pescara

interface serial 1/0
mpls ip
mpls label protocol ldp
exit

Pescaro

interface serial 1/0
mpls ip
mpls label protocol ldp
exit

Pauillac

interface serial 1/0
mpls ip
mpls label protocol ldp
exit
interface serial 1/1
mpls ip
mpls label protocol ldp
exit
interface serial 1/2
mpls ip
mpls label protocol ldp
exit

Pomerol

interface serial 1/0
mpls ip
mpls label protocol ldp
exit
interface serial 1/1
mpls ip
mpls label protocol ldp
exit
interface serial 1/2
mpls ip
mpls label protocol ldp
exit

Pulligny

interface serial 1/2
mpls ip
mpls label protocol ldp
exit
interface serial 1/3
mpls ip
mpls label protocol ldp
exit

Configuration de MP-BGP

Pescara

router bgp 100
neighbor 10.10.10.6 remote-as 100
neighbor 10.10.10.6 update-source Loopback0


address-family vpnv4
neighbor 10.10.10.6 activate
neighbor 10.10.10.6 send-community both
exit-address-family

address-family ipv4 vrf Customer_A
redistribute connected
no auto-summary
exit-address-family

address-family ipv4 vrf Customer_B
redistribute connected
no auto-summary
exit-address-family

Pescaro

router bgp 100
neighbor 10.10.10.4 remote-as 100
neighbor 10.10.10.4 update-source Loopback0

address-family ipv4 vrf Customer_A
redistribute connected
no auto-summary
exit-address-family

address-family ipv4 vrf Customer_B
redistribute connected
no auto-summary
exit-address-family

address-family vpnv4
neighbor 10.10.10.4 activate
neighbor 10.10.10.4 send-community both
exit-address-family