Quote:
Originally Posted by hrp2171
In my opinion, I would stop using the loopback adapter right away. Then setup your GuestOS to use shared networking with your HostOS or NAT through the HostOS network. I have not played much with VPC but if it's anything like VMWare, the GuestOS should grab an IP through DHCP provided by VPC. Don't forget to power off the GuestOS before making the changes to the virtual network card.
Keep posting any findings.
|
I haven't a clue what exactly you're talking about (I'm VERY new to all this). All I know is, shared networking (NAT) doesn't work either.
I can get onto the internet and apt-get the updates ok (I reinstalled the server on VPC with the shared networking (NAT) set as the adapter). It shows this for $ route -n:
Code:
Kernel IP Routing Table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.131.0 * 255.255.255.0 U 0 0 0 eth0
0.0.0.0 192.168.131.254 0.0.0.0 UG 0 0 0 eth0
ifconfig eth0 shows the Inet addr as 192.168.131.67, Bcast as 192.168.131.255, Mask as 255.255.255.0.
On the windows side, netstat does not show the guest OS's host name. And the routeing table in the host OS does not show the 192.168.131.* IP addresses.
I have my router set up to only accept connections on the Mac Accress list which I entered the mac addresses for the PC and my laptop adapaters. But I would think it would also allow connections from the Guest OS in VPC too. In fact, I entered the eth0 MAC address into the router and it shows it as inactive and not active when Ubuntu is running. So I don't know what is going on there.
http://192.168.131.67 (IP taken from the ifconfig eth0 command) in the Host OS's browser times out with no connection. I can't ping the 192.168.131.67 nor 192.168.131.0 addresses from the host OS (windows XP Pro) I CAN ping 192.168.131.67 from the guest OS (Ubuntu), though.
It's as if the Guest OS doesn't really exist as far as the Host OS is concerned. Like they can't connect or see each other.
/etc/hosts
127.0.0.1 localhost
127.0.0.1 cgi2
(plus some ipv6 stuff)
/etc/hostname
cgi2
/etc/network/interfaces
# The Loopback network interface
auto lo
iface lo inet loopback
#The primary network interface
auto eth0
iface eth0 inet dhcp
/etc/resolv.conf
(Shows two nameserver lines with my ISPs nameserver DNSs)
I'm totally stumped on how to get this to work. The two machines don't even know each other exists! But yet Ubuntu can access the internet.