10-30-2012 07:35 AM - edited 03-04-2019 06:00 PM
Hi guys,
I am having a problem connecting a gns3 cloud to my local pc that has a public ip address. Basically i bought a plan for a dedicated server and the provider gave me a public ip address to use on my server.
I know how to connect the gns3 cloud when it comes to private ip addressing (example local area connection ip 192.168.0.1 -> cloud is connected on that connection-> a router in gns3 has an ip in that same range 192.168.0.2 and if i give it a default route i can reach the internet)
Now since the ip address on the local area connection is public is there any trick that i can do to make the router from inside gns to access the internet?
Best Regards
Stelios
10-30-2012 07:49 AM
Here's what has worked for me.
Create a cloud with the interface that has the public IP
Connect the cloud to your GNS infrastructure
Add a default route in the GNS connected router and inject it into the IGP
10-30-2012 08:20 AM
I've done this but it doesn't seem to be working.
Lets say that the public ip address of my local area connection is 200.0.0.1/27
GNS gloud is connected on the fa0/0 interface of a router which has the ip 200.0.0.2
The default gateway is 200.0.0.30.
I've added a default route 0.0.0.0 0.0.0.0 200.0.0.30 in the router but it's still not working.
10-30-2012 11:20 AM
What's the .30 address? Your router's default gateway should point to 200.0.0.1
10-31-2012 12:00 AM
Maybe i didn't explain it the proper way..
I bought a plan from a company that gives you a dedicated server (hardware level not software).
Since the server is a physical equipment they supply a public ip address in order to be accessible directly to the outside world. Below is an example of the ip addressing the server has.
ip 200.0.0.1
netmask /27
default gateway 200.0.0.30 (the default gateway router or layer 3 switch whatever equipment it is, is installed in their building and it's not accessible by me)
They supply me with remote desktop username and password to be able to access it.
So i installed GNS in order to make my tests.
I connected local area connection (which as i said has a public ip) with gns cloud and the gns cloud to a router inside gns. From this point onwards my problem starts since i don't know what ip addressing i have to give to my router in gns in order to comunicate with the outside world.
Is there any way that i can create a loopback adapter and give it private ip addressing and share the internet with the local area connection?
Thank you.
10-31-2012 12:36 AM
So if i understand the whole thing, you have only one public IP which is 200.0.0.1.
Which OS is your server running on ? If windows, you can :
I usually do that to connect some routers to my real home network when using a WIFI connection.
10-31-2012 02:20 AM
Yes only one public ip was provided.
OS is windows server 2008 r2
I forgot to mention that i am using Hyper-V and i already share my local area connection with the virtual network adapter of Hyper-V.
What i planned was to use gns in a virtual machine created on HYPER-V. but unfortunately Hyper-v doesn't allow promiscuous mode (http://social.technet.microsoft.com/Forums/en-US/winserverhyperv/thread/7c13df00-ed10-494c-b275-d004a89c0470) so i am unable to forward the traffic from (gns3 installed in a virtual machine that was created in Hyper-v) gns3 to the outside world.
I know that vmware supports this mode (promiscuous) on vsphere but unfortunately this dedicated server come preinstalled with windows server 2008 r2, and they don't support esxi, so i am in a "dead-end".
Is there any way that i can share both HYPER-V and loopback network adapters to the local area connection?
Do you have any other suggestions?
11-01-2012 02:21 AM
I might suggest that you create the loopback interface in your VM and share the "virtual" local area connection of the VM with the loopback.
In this topology the real connection will be shared to all your VM and inside a VM with GNS3 you re-share the connection.
11-04-2012 11:54 PM
Thanks maxime that solved my problem!
I can now ping the internet from inside gns.
However i am still having a problem with dns resolving. I' ve set ip name-server [ip address of the dns] but when i try to ping i receive the message "Unrecognized host or address....".
Am i missing something?
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide