and a very good link to go for it.
http://www.cisco.com/en/US/tech/tk827/tk369/technologies_white_paper09186a00800d6979.shtml
We need to ping from R1 (RED vrf ) to R3 (BLUE vrf).
R1-RED-----------------RED--R2--BLUE------------------BLUE--R3
1.1.1.1 1.1.1.2 2.2.2.1 2.2.2.2
101#ping vrf RED 2.2.2.2 ------------Ã pinging vrf BLUE’s 2.2.2.2 from R1’s VRF RED.
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 2.2.2.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/4 ms
101#
===============================================
101#sh running-config interface e0/0
Building configuration...
Current configuration : 86 bytes
!
interface Ethernet0/0
ip vrf forwarding RED
ip address 1.1.1.1 255.255.255.0
end
101#
101#sh running-config | in route
ip route vrf RED 0.0.0.0 0.0.0.0 1.1.1.2
101#
===================
102#sh running-config | in route
ip route vrf RED 2.2.2.0 255.255.255.0 Ethernet1/0 2.2.2.2
ip route vrf BLUE 1.1.1.0 255.255.255.0 Ethernet0/0 1.1.1.1
102#
102#
102#sh run
102#sh running-config in
102#sh running-config interface e0/0
Building configuration...
Current configuration : 86 bytes
!
interface Ethernet0/0
ip vrf forwarding RED
ip address 1.1.1.2 255.255.255.0
end
102#sh run
102#sh running-config in
102#sh running-config interface e1/0
Building configuration...
Current configuration : 87 bytes
!
interface Ethernet1/0
ip vrf forwarding BLUE
ip address 2.2.2.1 255.255.255.0
end
102#
=================
103#sh running-config interface e1/0
Building configuration...
Current configuration : 87 bytes
!
interface Ethernet1/0
ip vrf forwarding BLUE
ip address 2.2.2.2 255.255.255.0
end
103#
103#
103#sh run
103#sh running-config | in route
ip route vrf BLUE 0.0.0.0 0.0.0.0 2.2.2.1
103#
As I am currently studying for my CCIE, I find it very helpful to be able to practice creating networks in a non-destructive environment. Thus, GNS3 provides that solution. At first it was a little difficult installing it because you simply can’t type in
sudo apt-get install GNS3That’s not even half of it. So here is how to install GNS3 and have it work efficiently for your CCIE studying needs.
1. First we will install Dynagen and Python-Qt4
sudo apt-get install dynagen python-qt42. Download GNS3 and extract in /opt
cd /opt sudo wget http://downloads.sourceforge.net/project/gns-3/GNS3/0.6.1/GNS3-0.6.1-src.tar.bz2?use_mirror=softlayer sudo tar -xjvf GNS3-0.6.1-src.tar.bz2 && rm GNS3-0.6.1-src.tar.bz2 sudo mv GNS3-0.6.1-src /opt/GNS33. Create the following directories:
These directories will be used by GNS3 – such as projects – where your working projects will be stored, cache, temp, IOS images, etc.
cd /opt/GNS3 mkdir Dynamips mkdir IOS mkdir Project mkdir Cache mkdir tmp chmod o+rw -R ./Project chmod o+rw -R ./tmp4. Download binary of dynamips and make it executable
cd Dynamips sudo wget http://www.ipflow.utc.fr/dynamips/dynamips-0.2.8-RC2-x86.bin sudo chmod +x ./dynamips-0.2.8-RC2-x86.binYou can create a desktop shortcut by right-clicking on the desktop and select “Create Launcher..”, Name it GNS3 and in the command section type in
python "/opt/GNS3/gns3"Double click to open GNS3 and we will edit the default settings. If you don’t want to use desktop icons you can create a launcher from your programs menu by right clicking on the Main Menu, selecting Edit Menu. Select New Item on the right and you will be presented with the same window where you type in the above. From there you can move the launcher into any menu section of your choice.
5. Go to edit | preferences and in the ‘Terminal command:’ section type in:
gnome-terminal -t %d -e 'telnet %h %p' > /dev/null 2>&1 &6. Under ‘Paths’ change the ‘Project directory:’ to
/opt/GNS3/Projectand the ‘IOS/PIX directory:’ to
/opt/GNS3/IOS7. Click on Dynamips tab on the left
For the ‘Executable path:’ type in
/opt/GNS3/Dynamips/dynamips-0.2.8-RC2-x86.bin8. Change the ‘Working directory:’ to
/opt/GNS3/tmpClick on the Capture tab on the left
9. For the ‘Working directory for capture files:’ change it to
/opt/GNS3/ProjectAfter you have done all that you will be able to Open and Save your GNS3 projects properly and have an efficient setup for GNS3. In order to use the devices in GNS3 you must obtain our own IOS images from Cisco.
You can also build a generic routing encapsulation (GRE) tunnel between Router2 and Router3 and put the tunnel in Area 0. The main differences between a GRE tunnel and a virtual link are described in this table:
| GRE Tunnel | Virtual Link |
|---|---|
| All traffic in the tunnel is encapsulated and decapsulated by the tunnel endpoints. | The routing updates are tunneled, but the data traffic is sent natively. |
| Tunnel headers in every packet cause overhead. | Data traffic is not subject to any tunnel overhead. |
| The tunnel can go through a stub area. | The transit area cannot be a stub area, because routers in the stub area do not have routes for external destinations. Because data is sent natively, if a packet destined for an external destination is sent into a stub area which is also a transit area, then the packet is not routed correctly. The routers in the stub area do not have routes for specific external destinations. |