informatique:cisco:vrf
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
informatique:cisco:vrf [2009/10/29 15:03] – pteu | informatique:cisco:vrf [2010/04/06 08:38] – ping VRF pteu | ||
---|---|---|---|
Line 6: | Line 6: | ||
* // | * // | ||
+ | |||
+ | |||
+ | =====Mise en place===== | ||
+ | |||
+ | Supposons un routeur R3 qui connecte 2 clients distincts , symbolisés par leurs routeurs respectifs R1 et R2. Chacun appartient à un réseau différent ; on va les mettre dans des VRF différents (sur R3) ; cependant cette segmentation sera transparente pour les clients. | ||
+ | |||
+ | |||
+ | ====Schéma de principe (certes un peu sommaire)==== | ||
+ | < | ||
+ | R1 (fa0/1)__ | ||
+ | \ | ||
+ | \ | ||
+ | (fa0/1) | ||
+ | R3 | ||
+ | (fa0/2) | ||
+ | / | ||
+ | R2 (fa0/2)__/ | ||
+ | </ | ||
+ | Pour l' | ||
+ | |||
+ | ====Configuration de R1==== | ||
+ | < | ||
+ | vlan 10 | ||
+ | name interco R1-R3 | ||
+ | ! | ||
+ | interface fa0/1 | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | ! | ||
+ | interface vlan10 | ||
+ | | ||
+ | ip address 10.0.1.1 255.255.255.0 | ||
+ | </ | ||
+ | |||
+ | ====Configuration de R2==== | ||
+ | < | ||
+ | interface fa0/2 | ||
+ | | ||
+ | ip address 10.0.1.2 255.255.255.0 | ||
+ | </ | ||
+ | |||
+ | ====Configuration de R3==== | ||
+ | * déclaration des VRFs : | ||
+ | < | ||
+ | ip vrf v1 | ||
+ | rd 1:1 | ||
+ | | ||
+ | ! | ||
+ | ip vrf v2 | ||
+ | rd 1:2 | ||
+ | | ||
+ | </ | ||
+ | |||
+ | * assignation de chaque interface dans un VRF | ||
+ | < | ||
+ | vlan 10 | ||
+ | name interco R1-R3 | ||
+ | ! | ||
+ | interface fa0/1 | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | ! | ||
+ | interface vlan10 | ||
+ | | ||
+ | ip vrf forwarding v1 | ||
+ | ip address 10.0.1.3 255.255.255.0 | ||
+ | ! | ||
+ | interface fa0/2 | ||
+ | | ||
+ | ip vrf forwarding v2 | ||
+ | ip address 10.0.2.3 255.255.255.0 | ||
+ | </ | ||
+ | |||
+ | * création d'une interface de loopback par VRF | ||
+ | < | ||
+ | interface Loopback1 | ||
+ | ip vrf forwarding v1 | ||
+ | ip address 192.168.0.13 255.255.255.255 | ||
+ | ! | ||
+ | interface Loopback2 | ||
+ | ip vrf forwarding v2 | ||
+ | ip address 192.168.0.23 255.255.255.255 | ||
+ | </ | ||
+ | |||
+ | * Configuration du routage : une instance par VRF | ||
+ | < | ||
+ | router ospf 1 vrf v1 | ||
+ | | ||
+ | | ||
+ | ! | ||
+ | router ospf 2 vrf v2 | ||
+ | | ||
+ | | ||
+ | </ | ||
+ | |||
+ | |||
+ | =====Vérifications===== | ||
+ | |||
+ | Pour tester le PING, il faut préciser la VRF source dans la commande ping : exemple : test de ping de google.fr (IP=74.125.77.104) depuis l' | ||
+ | < | ||
+ | ping vrf v1 74.125.77.104 source 192.168.0.13 | ||
+ | </ | ||
informatique/cisco/vrf.txt · Last modified: 2013/10/14 20:44 by 127.0.0.1