VRF Configuration: For Some Very Basic VRF Configuration Follow The Steps
VRF Configuration: For Some Very Basic VRF Configuration Follow The Steps
2. Creates a VPN route distinguisher (RD) following one of the 16bit-ASN:32bit-number or 32bit-
IP:16bit-number explained above
Router(config-vrf)#rd route-distinguisher
3. Creates a list of import and/or export route target communities for the specified VRF.
4. (Optional step) Associates the specified route map with the VRF.
To check your configuration, you can use ping or traceroute tools under Cisco CLI, but remember
that you have to use “vrf vrf-name” parameter:
(Note: The RD / RT is a 8-byte (64-bits) number which can be written down as follow:
(e.g.) 65000:100
or
(e.g) 192.168.0.1:10)
VRF Configuration
Example
R1>enable R1#config t
R1(config)#ip vrf R2
R1(config)#rd 2:2
R1(config)#ip vrf R3
R1(config)#rd 3:3
R1(config)#ip vrf R4
R1(config)#rd 4:4
R1(config)#ip vrf R5
R1(config)#rd 5:5
R1(config)#interface f0/0
R1(config-if)#ip vrf forwarding R2
VRF Configuration
R1(config)#ip vrf forwarding R2
R1(config)#ip address 192.168.1.1 255.255.255.252
R1(config-if)#interface f0/1
R1(config-if)#ip vrf forwarding R3
R1(config-if)#ip address 192.168.1.1 255.255.255.252
R1(config-if)#no shutdown
R1(config)#interface f1/0
R1(config-if)#no switchport
R1(config-if)#ip vrf forwarding R4
R1(config-if)#ip address 192.168.1.1 255.255.255.252
R1(config-if)#no shutdown
R1(config)#interface f1/1
R1(config-if)#no switchport
R1(config-if)#ip vrf forwarding R5
R1(config-if)#ip address 192.168.1.1 255.255.255.252
R1(config-if)#no shutdown
For R2, R3, R4, R5 – Just configure the ip address and you are done . :)
R2(config)#interface FastEthernet0/0
R2(config)#ip address 192.168.1.2
255.255.255.252 R2(config)#no shutdown
(Note: IP address on all routers interfaces on Company End i.e. R2, R3, R4, R5 remain same.)
Now try to ping R1 or PE from all CE routers, it should give successful reply.
R2#ping 192.168.1.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.1.1, timeout is 2 seconds:
!!!!!