Sunday, August 22, 2010

Network TIP 1 - Adding Hosts/PCs to GNS3 - VPCS Configuration Guide

1. Download the VPCS zip file from Here
and extract it to wherever desired.

2. Go to the GNS3/Dynamips directory and rename the cygwin1.dll file to cygwin1.dll.old

3. copy the cygwin1.dll file in the VPCS directory to this directory.

4. To run VPCS type vpcs.exe from the command line and you ought to see a screenshot similar to below:





5. Type in the show command to view a printout of your virtual PCs.

6. To view the help type ?



Note : Mike Muuss was the author of the freeware network tool Ping.

7. To change the IP address and default gateway to better suit your needs the following syntax prevails:

ip [ip address of PC] [ip address of default gateway] [mask in number of bits]

8. To change the virtual PC you are configuring simply enter the number of the virtual PC you wish to configure.



9. Keep adding as many PCs as you need and configure the IP addresses as desired (limited to 9).

10. Make a note of the LPORT and RPORT settings (from the show command) for each PC you have configured as you will need them for later.

NOTE: I know this seems obvious but KEEP VPCS RUNNING ,

11. Right-click on each cloud, choose Configure and then select the NIO UDP tab.

12. Referring to step 10 where you noted the LPORT and RPORT values for each PC you need to add the RPORT value to the Local Port field in GNS3, the IP address 127.0.0.1 in the Remote Host field in GNS3, and finally the LPORT value in the Remote Port field in GNS3. Once you have finished this ensure that you click on the Add button and select Apply, then OK.





13. Now connect your network in GNS3 end-to-end and assign IP addresses
Here . I use 2 PC Connected via a router

For example in my IP addressing scheme I have:

PC1 = 10.10.10.1 /24 connected to R0 Fa0/0 = 10.10.10.100 /24
PC2 = 10.10.20.1 /24 connected to R0 Fa1/0 = 10.10.20.100 /24

My network looks like this now:

PC1 ------ R0 ------ PC2

14. Go back to VPCS. Here I have tested for end-to-end connectivity by pinging from PC1 to PC2:

“So what?” I hear you cry. I know this doesn’t prove whether the traffic passes over the GNS3 routers. That is where we use the tracert command in VPCS. Check it out:

I must say that this is a major breakthrough for me and hopefully for others and will save a lot of time and CPU resources.

................................./´¯ /)..(\ ¯`\
................................/....//.....\\....\.
.............................../....//.......\\....\.
...................../´¯/´¯ /....//........\¯ `\´¯ \´¯ \
.................././.../..../..../.|_..._ |.\....\....\...\.\.
................(.(....(....(..../.)..)...(..(.\.....)....)....).)
.................\................\/.../...\...\/................./
..................\................. /.......\.................../
....................\..............(..........)................/


Copyright © reserved to amenext.com.
Edited and Enhanced by Eslam Daoud.

No comments:

Post a Comment