How to connect your Virtual Machine Inside GNS3 and Connect to the Internet in Windows
How to connect your Virtual Machine Inside GNS3 and Connect to the Internet in Windows
Video Transcription:
By Mark Jacob
Cisco CCNA and CompTIA Network + Instructor
Complete Series:
Part 1 – Connect Your GNS3 Environment to VM VirtualBox
Part 2 – Connect GNS3 to a Valid External Host in Windows 8
Part 3 – Connect your Virtual Machine in GNS3 to the Internet using Windows 8
I want to show you a continuation of a topic I’ve already been talking about previously where I showed you how to connect a virtual machine such as Oracle’s VM VirtualBox solution, inside GNS3 so that you can have an actual client How to Connect Your GNS3 Environment to VirtualBox in Windows 8. Then I showed you how to connect a real address, external to GNS3 client How to Connect GNS3 to a Valid External Host in Windows 8, in fact out here in the real world with us, into your GNS3 environment.
I want to combine those two into one final event.
Now, a lot of it’s already been preconfigured because I was doing it while I was showing you the previous videos, but let me walk through what we have here.
If I bring up my instance of GNS3.
I’ll show you I’ve already launched it.
If you recall from my previous comments the fact that if you’re doing this from scratch, you want your VM VirtualBox to not be running because GNS3 will launch it for you when you click “go.” Anyway, that’s my virtual box.
I also did the configuration of the cloud.
Let’s take a look. If I right‑click on this guy and go to “configure”.
I named it “real computer” so that I’d know it was the real computer.
You’ll notice instead of picking or selecting the loop‑back interface, which I did in a previous video, I selected one that’s just called “Ethernet,” which turns out to be the real network card of the physical workstation on which I’m connected.
That’s a little bit different and I had also mentioned that you could be looking up Google and trying to figure out why this doesn’t work with Windows 8. I did not anything saying to do it this way, so I thought I’d show it to you.
Here we go.
Inside my cloud device, I’ve selected the actual Ethernet. In other words, the wired interface connection on my physical workstation.
Then on the exterior, or outside, because you’ll notice from my title here, I have NAT running as well,
I configured NAT on this router with fast Ethernet‑01 as the outside interface.
The address that’s on this is an address that would physically exist inside, because I’m inside my company, it has to exist on my company’s network.
This 10.1.xx address needs to be reachable.
Next I’ll check that I have a connection to my router. It looks like I do.
Since it’s already configured, I did the NAT already. I also have configured a default route telling my router how to get out of here. You’ll notice my static route 0.0.0.0/0 , default route that sends everything you don’t know outside FastEthernet0/1
To test this I want to know first of all can my router get out.
You’ll notice here’s my router.
I want to know can it get out here to the actual Internet.
Let’s check it. I’m going to ping, a real address of 8.8.8.8.
Success, my router, which doesn’t really exist, can get there. Pretty cool.
Now, if I look back at my scenario. I have this Workstation that is an Oracle VM VirtualBox so this one is not real, it’s virtual.
This one is the physical workstation that this is all running on.
It is real. I can even check that if I bring up a command prompt.
Let me go ahead and launch one. My real machine, if I ping 8.8.8.8, it also can get out to the Internet.
A little side note, and this was the other “Gotcha” that was hampering my efforts to make this work, was if you’re on a Windows 8 box and if you think you’ve done everything right and still can’t get to your real host, take a look at your routing table inside Windows, route print -4 (I’m using “-4” because I don’t want to look at all the IPV6 stuff.
Anyway, I’ve got to scroll back up. What I care about is my quad‑zero route 0.0.00.
I found that when I first tried this, and it was refusing to work, although I have VM Workstation and other things going on, I had multiple quad‑zero routes and it was interfering. In other words it was preventing this scenario in GNS3 to work.
Check your routing table inside your Windows box if you’re still having trouble getting it to connect.
Another caveat, as I mentioned previously, was make sure you check your Windows Firewall How to Connect Your GNS3 Environment to VirtualBox in Windows 8 because Windows Firewall can block some of this stuff.
Anyway, our goal was that I wanted to take a machine that doesn’t exist, which is plugged into a router that doesn’t exist, and make it connect to the Internet, which does exist.
Let’s see if we can do it now.
I’ll bring over my VM VirtualBox connection.
And go to a command prompt and check by pining 8.8.8.8
I’m getting replies. This is pretty cool.
In fact, if you look at my little icon down there, that looks the nice, pretty icon that it’s supposed to be.
Let’s try this ping “Google.com”
I’m pinging. It was able to resolve the address, and I might lose some. Maybe Google’s busy right now, got better things to do than to talk to me. Nevertheless, I reached it.
I can even click Internet Explorer go out to the Internet.
I have a virtual machine connected inside GNS3 which is able to browse the actual… this is not cached web pages. This really is working, and you too can do it.
If you have any questions, please feel free to contact me. I have my blogs at www.interfacett.com/blogs/?p=. Give it a shot, see if you can make it work, and I hope you found it informative.
Mark Jacob
Cisco and CompTIA Network + Instructor – Interface Technical Training
Phoenix, AZ
Complete Series:
Part 1 – Connect Your GNS3 Environment to VM VirtualBox
Part 2 – Connect GNS3 to a Valid External Host in Windows 8
Part 3 – Connect your Virtual Machine in GNS3 to the Internet using Windows 8
You May Also Like
A Simple Introduction to Cisco CML2
0 3703 0Mark Jacob, Cisco Instructor, presents an introduction to Cisco Modeling Labs 2.0 or CML2.0, an upgrade to Cisco’s VIRL Personal Edition. Mark demonstrates Terminal Emulator access to console, as well as console access from within the CML2.0 product. Hello, I’m Mark Jacob, a Cisco Instructor and Network Instructor at Interface Technical Training. I’ve been using … Continue reading A Simple Introduction to Cisco CML2
Configuring Windows Mobility Center and How to Turn it On and Off
1 1412 1Video transcription Steve Fullmer: In our Windows training courses, we often share information about the Windows 8.1 Mobility Center. Mobility Center was introduced for mobile and laptop devices in Windows 7. It’s present and somewhat enhanced in Windows 8. Since we don’t have mobile devices in our classrooms, I decided to take a little bit … Continue reading Configuring Windows Mobility Center and How to Turn it On and Off
How to create a Cisco IOS Banner – Login and MOTD Message of the Day
0 4242 4In this video, Cisco CCNA instructor Mark Jacob shows how to create a Login and Message of the Day (MOTD) banners in Cisco IOS. The Banner is an interesting feature of the Cisco IOS. You could probably get by without it, but in a commercial environment you want to have it.
See what people are saying...