VMWARE networking question

Discussion in 'HOWTO-Related Questions' started by leejayd, May 4, 2013.

  1. leejayd

    leejayd New Member

    Hi,

    I'm following the tutorial : The Perfect Server - Ubuntu 13.04

    Before I go live on the web I want to get it running in a virtual box.

    I have a VM and options for NAT or Bridged networking.

    I'm running the VM on my laptop which is connected to my router using DHCP over wifi.

    I'm not sure which IP address I should assign to the static interface in the server. I can see there are 2 interfaces for VM in the host. VMNet1 / VMNet8 - I've tried the IP's for both of these but I still can't get online.

    Any help would be much appreciated.

    I've set my VM host to use NAT. I disabled DHCP in VM host and noted the IP address it was previously giving : 192.168.242.0

    I also noted the Gateway number being 192.168.242.2. subnet mask 255.255.255.0

    So I set the interfaces file in the server to :

    iface eth0 inet static
    address 192.168.242.0
    netmask 255.255.255.0
    network 192.168.0.0 (not sure what this is !)
    broadcast 192.168.242.255 (this was found in VM DHCP settings)
    gateway 192.168.242.2
    dns-nameservers 8.8.8.8 8.8.4.4

    I can ping the server from the host on IP 192.168.242.0 but I can't get online from the server nor ping the host.
     
    Last edited: May 4, 2013
: vmware

Share This Page