Guest OS acting as NAT, in Virtual PC
ASP Developer Network - Brought to you by Steve Radich and BitShop, Inc. - http://www.bitshop.com

Menu

ASPDeveloper.Net / VirtualServerFAQ.COM

Make sure you go to our home page for:

* Virtual Server 2005 FAQ
* ASP.Net 2.0 Information
* ASP.Net 2.0 Streaming Tutorials
* ASP.Net 2.0 HTML based Tutorials

Made possible by Business Internet Technology Shop (BitShop)



View :  Show duplicate posts
Virtual PC

Recent Virtual PC posts

Virtual PC SP1 Installer wants to REMOVE not install!
Snapshots?
Solaris 10 on VPC?
A How To Guide?
Really safe testing in Virtual Machine ?
Virtualization Technology Conference 2008 Philadelphia
ard
Install Virtual Machine Additions unavailable (greyed out)
Is it convenient to upgrade to SP1 when I use VPC to keep alive an old OS/2 installation?
Using Same VHD on Different Hosts
Size of Console
How to remove Virtual PC/CE Emulator 4.0 driver?
The startup disk could not be written to
VPC2007 Network Issue
New Knoppix & Ubuntu install problem
USB-Device in Virtual PC 2007
Virtual PC 2007 SP1, Vista Ultimate x64 SP1
Mini newsgroup FAQ for the week of 5/18/2008
Ubuntu install Issues
MS Virtual PC 2007 SP1 install "Saved State" question
Add Solution

Latest Topics

Table Of Contents


Post Reply |  This is Spam! | Mark as Spam

Guest OS acting as NAT

Source: microsoft.public.virtualpc
Sent: 05/23/2008
From: The Dark Free Soul <(email address - cut out)>
Message:

Hi guys!

I want to virtualize a linux box on virtual pc. Host os is Windows
2003 server and I managed to install GNU/Linux CentOS 5.1 on it. Host
os is connected to a class B lan where 172.16.0.1 is the gateway and
in the same LAN there are also DNSs.
I configured Virtual PC to offer 2 network cards to the guest os:
shared network (NAT) and Gigabit card connected.
On linux i get eth0 and eth1. If I automatically acquire an IP
address, on eth0 I get 192.168.131.65 from a DHCP server running on
192.168.131.255 but DHCP server does not specify any default gateway.
On eth1 I can set any address i like (I used 172.16.1.12).
As first attempt I set guest os to use as default gateway 172.16.0.1
and LAN DNSs as DNS. Guest os could surf the internet! (note: in all
this eth0 is not used so maybe I don't really need ip 192.168.131.65)

After this I set guest os to manage 4 class C LANs, and my guest os is
supposed to act a gateway for the LANs (I'm not using VLANs so
everything is going on the same network interface. I just declared 4
aliases on the same eth1 network interface in order to have a total of
5 IPs: 172.16.1.12/16, 192.168.10.1/24, 192.168.11.1/24,
192.168.12.1/24 and 192.168.13.1/24).
Clients connected to these LANs can work great, they can reach the
guest os and every host in the respective LAN but they can't reach
internet or LAN 172.16.0.0/16. This is a BIG problem for me!
I investigated why it's not working since the guest os is configured
to act as NAT for class C LANs clients.
I monitored the traffic going in and out from the guest os and I
discovered this:
- when clients from class C sent a request addressed to the outside
internet the request arrives to the guest os
- guest os forward it to class B DNSs
- DNSs reply to guest os ip 172.16.1.12
- guest os does NOT forward back the answer coming from DNSs to the
class C clients so they never get an answer and connections go in
timeout

At first it may sounds like a guest os bad configuration but it's not.
Same os is installed stand alone (not virtualized) with very same
configuration works great.
I tryed to use 192.168.13.255 as default gateway instead of 172.16.0.1
but with no result... (and also guest os could not reach internet
anymore).

I really hope You can help me, I'm sure I'm missing something...
Many thanks in advance to anyone for your time.

A



Post Reply |  This is Spam! | Mark as Spam

Related Messages


Post Reply |  This is Spam! | Mark as Spam


Table Of Contents



Other groups

 
Virtual PC (Mac)(3483) Virtual PC(11619) Virtual PC (French)(410)
Virtual Server 2005(5000)
Search
in:
Our Sponsors
Virtual Server 2005 Info Here!
http://www.aspdeveloper.net
Virtual Server 2005 Info Here!
http://www.aspdeveloper.net
Virtual Server 2005 Info Here!
http://www.aspdeveloper.net
Virtual Server 2005 Info Here!
http://www.aspdeveloper.net
Virtual Server 2005 Info Here!
http://www.aspdeveloper.net
rss Wiki rss Blogs rss Articles rss Image galleries rss File galleries rss Forums rss Maps rss Directories
ASP Developer Network (since 1996) - Brought to you by Steve Radich and BitShop, Inc. - http://www.bitshop.com
Copyright © 1997-2005 by BitShop, Inc. All Rights Reserved.
No content may be reproduced in any form without written permission from BitShop, Inc.
We will be honored to assist with reproduction rights on our material if you contact us.
We also can provide print articles for your magazine, private training seminars at your site, and conference presentations.

Thank you for visiting. Please bookmark our site if you found it useful!
If you wish to make a donation it will help further the development of these free resources: