Wednesday, February 26, 2014

Basic VRF Lab

Step 1 : Assign Ip address at Fa 0/0 of R1 and R2.
Step 2 : Configure Vrf R1 on router R1 and add Loopback 0 and 11 to this vrf
Step 3 : Configure Vrf R2 on router R2 and add Loopback 0 and 11 to this vrf
Step 4 : Configure the tunnel1 interface on both routers. Make sure the source and destination IP addresses of the Fastethernet link are used for this.
Step 5 : Make sure the tunnel1 interface is added to VRF R1 and R2 .
Step 6 : Configure the 192.168.1.0 /24 subnet on the tunnel1 interface.
Step 7 : Configure EIGRP AS 100 as the routing protocol for these VRFs. Make sure both routers can ping each others loopback interfaces.

Note :::::  interfaces must be assigned to a VRF before being addressed; assigning an interface to a VRF wipes any IP addresses already configured on that interface.

:::::Task To do:::::

sh ip route
sh ip route vrf
R1#ping 2.2.2.2
R1#ping vrf R1 2.2.2.2
R1#ping vrf R1 2.2.2.2 loopback 0


================================================================
#######Devices Config ######

================================================================
::::::::::::::::R1:::::::::::::

R1#sh running-config
Building configuration...

Current configuration : 1275 bytes
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R1
!
boot-start-marker
boot-end-marker
!
no aaa new-model
memory-size iomem 5
no ip icmp rate-limit unreachable
ip tcp synwait-time 5
!
!
ip cef
no ip domain lookup
!       
ip vrf R1
!     
interface Loopback0
 ip vrf forwarding R1
 ip address 1.1.1.1 255.255.255.0
!
interface Loopback11
 ip vrf forwarding R1
 ip address 11.11.11.11 255.255.255.0
!
interface Tunnel1
 ip vrf forwarding R1
 ip address 192.168.1.1 255.255.255.0
 tunnel source FastEthernet0/0
 tunnel destination 192.168.100.2
!
interface FastEthernet0/0
 ip address 192.168.100.1 255.255.255.0
 duplex auto
 speed auto
!
interface FastEthernet0/1
 no ip address
 shutdown
 duplex auto
 speed auto
!
router eigrp 100
 no auto-summary
 !
 address-family ipv4 vrf R1
 network 1.0.0.0
 network 11.0.0.0
 network 192.168.1.0
 auto-summary
 autonomous-system 100
 exit-address-family
!
no ip http server
no ip http secure-server
!
control-plane
!
line con 0
 exec-timeout 0 0
 privilege level 15
 logging synchronous
line aux 0
 exec-timeout 0 0
 privilege level 15
 logging synchronous
line vty 0 4
 login
!
!
end

=================================================================
::::::::::::::::::::::R2:::::::::::::::::::::::::::
R2#sh running-config
Building configuration...

Current configuration : 1275 bytes
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R2
!
boot-start-marker
boot-end-marker
!
no aaa new-model
memory-size iomem 5
no ip icmp rate-limit unreachable
ip tcp synwait-time 5
!
ip cef
no ip domain lookup
!       
ip vrf R2
!  
interface Loopback0
 ip vrf forwarding R2
 ip address 2.2.2.2 255.255.255.0
!
interface Loopback11
 ip vrf forwarding R2
 ip address 22.22.22.22 255.255.255.0
!
interface Tunnel1
 ip vrf forwarding R2
 ip address 192.168.1.2 255.255.255.0
 tunnel source FastEthernet0/0
 tunnel destination 192.168.100.1
!
interface FastEthernet0/0
 ip address 192.168.100.2 255.255.255.0
 duplex auto
 speed auto
!
interface FastEthernet0/1
 no ip address
 shutdown
 duplex auto
 speed auto
!
router eigrp 100
 no auto-summary
 !
 address-family ipv4 vrf R2
 network 2.0.0.0
 network 22.0.0.0
 network 192.168.1.0
 auto-summary
 autonomous-system 100
 exit-address-family
!
no ip http server
no ip http secure-server
!
control-plane
!
line con 0
 exec-timeout 0 0
 privilege level 15
 logging synchronous
line aux 0
 exec-timeout 0 0
 privilege level 15
 logging synchronous
line vty 0 4
 login
!
end
======================================================================
Reference ::::::::::: GNS3Vault :: VRF Routing
======================================================================