Vrf - cisco
De Wiki doc
Les VRF sont aux routeurs ce que les Vlans sont aux commutateurs. Elles permettent de générer des routeurs logiques avec autant de tables de routage et donc de cloisonner des réseaux de niveau 3.
Schéma réseau
Voici l'architecture que nous utilisons pour ce tuto:
Configuration
R1
ip vrf ALPHA
rd 105:1
interface FastEthernet0/0
ip vrf forwarding ALPHA
ip address 192.168.1.254 255.255.255.0
duplex auto
speed auto
interface FastEthernet0/1
ip vrf forwarding ALPHA
ip address 1.1.1.2 255.255.255.252
duplex auto
speed auto
router ospf 1 vrf ALPHA
log-adjacency-changes
network 1.1.1.0 0.0.0.3 area 0
network 192.168.1.0 0.0.0.255 area 0
R2
ip vrf BRAVO
rd 105:2
interface FastEthernet0/0
ip vrf forwarding BRAVO
ip address 192.168.2.254 255.255.255.0
duplex auto
speed auto
interface FastEthernet0/1
ip vrf forwarding BRAVO
ip address 1.1.1.6 255.255.255.252
duplex auto
speed auto
router ospf 2 vrf BRAVO
log-adjacency-changes
network 1.1.1.4 0.0.0.3 area 0
network 192.168.2.0 0.0.0.255 area 0
R3
ip vrf ALPHA
rd 105:1
ip vrf BRAVO
rd 105:2
interface FastEthernet1/12
switchport access vlan 12
interface FastEthernet1/13
switchport access vlan 13
interface FastEthernet1/14
switchport access vlan 14
interface FastEthernet1/15
switchport access vlan 15
interface Vlan3
ip vrf forwarding ALPHA
ip address 192.168.3.254 255.255.255.0
interface Vlan12
ip vrf forwarding ALPHA
ip address 1.1.1.1 255.255.255.252
interface Vlan13
ip vrf forwarding BRAVO
ip address 1.1.1.5 255.255.255.252
interface Vlan14
ip vrf forwarding ALPHA
ip address 1.1.1.13 255.255.255.252
interface Vlan15
ip vrf forwarding BRAVO
ip address 1.1.1.9 255.255.255.252
router ospf 1 vrf ALPHA
log-adjacency-changes
network 1.1.1.0 0.0.0.3 area 0
network 1.1.1.12 0.0.0.3 area 0
network 192.168.3.0 0.0.0.255 area 0
router ospf 2 vrf BRAVO
log-adjacency-changes
network 1.1.1.4 0.0.0.3 area 0
network 1.1.1.8 0.0.0.3 area 0
R4
ip vrf ALPHA
rd 105:1
interface FastEthernet0/0
ip vrf forwarding ALPHA
ip address 192.168.5.254 255.255.255.0
duplex auto
speed auto
interface FastEthernet0/1
ip vrf forwarding ALPHA
ip address 1.1.1.14 255.255.255.252
duplex auto
speed auto
router ospf 1 vrf ALPHA
log-adjacency-changes
network 1.1.1.12 0.0.0.3 area 0
network 192.168.5.0 0.0.0.255 area 0
R5
ip vrf BRAVO
rd 105:2
interface FastEthernet0/0
ip vrf forwarding BRAVO
ip address 192.168.6.254 255.255.255.0
duplex auto
speed auto
interface FastEthernet0/1
ip vrf forwarding BRAVO
ip address 1.1.1.10 255.255.255.252
duplex auto
speed auto
router ospf 2 vrf BRAVO
log-adjacency-changes
network 1.1.1.8 0.0.0.3 area 0
network 192.168.6.0 0.0.0.255 area 0