Page 1 of 2 12 LastLast
Results 1 to 10 of 20

Thread: Remote Server Accessability Issue

Hybrid View

  1. #1
    Join Date
    Sep 2017
    Beans
    64

    Remote Server Accessability Issue

    I'm working on a remote administration tool and need to test against a remote server. So I installed a server on another Ubuntu machine, but I can't seem to access it. This is my setup:

    Development machine: inet 192.168.1.82 netmask 255.255.255.0 broadcast 192.168.1.255
    Development server (inside VMWare on my development machine): 192.168.94.2

    So, I can access the development server from the development machine just fine.

    Remote machine: inet 192.168.1.86 netmask 255.255.255.0 broadcast 192.168.1.255
    Remote server (inside VMWare on the remote machine): 192.168.221.2

    I can access the remote server from the remote machine just fine.

    I need to be able to access the remote server from the development machine. These two machines right next to each other connected through the same switch. I thought ufw would have solved my problem, but didn't (or I was doing it wrong). I now suspect it has something to do with how I have VMWare networking properties set, but don't know enough to solve the problem.

    Can someone help this networking dummy solve the problem??

  2. #2
    Join Date
    Mar 2009
    Beans
    1,982

    Re: Networking dummy needs help

    In your VMware settings, is your network type bridged? If not, make it be bridged. Otherwise you will need to configure VMware to route the packets, which is less easy.

  3. #3
    Join Date
    Sep 2017
    Beans
    64

    Re: Networking dummy needs help

    There are 4 network adapters:
    Network Adapter Custom (/dev/vmnet1) <-- I think VMWare sets this up this way
    Network Adapter 2 Bridged (Automatic)
    Radio "Bridged: Connected directly to the physical network" is selected
    Chexk box "Replicate physical network connection state is *not* selected
    Network Adapter 3 Host-only
    Network Adapter 4 Host-only

  4. #4
    Join Date
    Feb 2008
    Location
    Texas
    Beans
    29,809
    Distro
    Ubuntu 20.04 Focal Fossa

    Re: Networking dummy needs help

    Moved to Virtualisation .

  5. #5
    Join Date
    Mar 2009
    Beans
    1,982

    Re: Networking dummy needs help

    You need to use an IP address which is assigned to the bridged network. Your client machine doesn't know anything about your host-only networks. Not sure what vmnet1 is set up as. So go with network adapter 2

    You should be using an ip address on the same subnet as your client if you're using a traditional bridged network.

  6. #6
    Join Date
    Sep 2017
    Beans
    64

    Re: Networking dummy needs help

    OK.. So when I'm inside the server inside the VM, I'm seeing 4 network interfaces named eth0, eth1, eth2 and eth3. I suspect network adapter 2 is eth1.
    At this point, I'm not exactly sure what to do. Do I set the IP of the server to 192.168.1.87?

  7. #7
    Join Date
    Mar 2009
    Beans
    1,982

    Re: Networking dummy needs help

    You seem to be a novice at VMware and virtualization as well as a novice at networking. Sorry if that's not true, but in the interest of clarity I'm going to talk like you have no idea what I'm saying.

    VMware supplies these types of networks:
    1. Bridged. The VM appears to be a computer on your real network. It is assigned an IP address from your regular DHCP server.
    2. Host-only. The host and the guest are the only systems on this network. Your VM can reach your host, and your host can reach the VM.
    3. NAT. This works the same way your home router does, meaning your vm gets an address on a private network which is NOT the same as your real network. 192.168.94 instead of 192.168.1 in your case. The VM can use this to get to the Internet or to a server or printer on your local network, but nothing can get into your VM unless there is a port forwarding inside of VMware (a virtual router) or if it's from one VM to another VM.


    Under normal circumstances there should be a DHCP server to automatically assign addresses for all three of these scenarios. So you shouldn't need to assign an address. Given that one of your VMs is a server you may want to give it a static address, but first let's get things talking the way we expect.

    Personally I would shut down your VM, and then delete all its network interfaces and start over.

    For the sake of this experiment you really only need one network adapter for your VM, and that should be bridged. You should for the moment leave it to its default, which would be to get an address automatically from DHCP.

    On your VM, what type of operating system does it say? 64-bit Linux Ubuntu? This should be set as closely to accurate as you can make it. The reason is that VMware changes how its software talks to the VM based on what you choose here.

    So, assuming you have an accurate item selected in the VMware control panel for operating system, here's what you do:
    1. Shut down the vm.
    2. Edit the settings
    3. Delete all 4 network adapters.
    4. Create a new network adapter.
      1. Choose the defaults for what brand/type of device.
      2. Make sure it's bridged.

    5. Save settings.
    6. Start the VM.
    7. Login to the VM through the vmware console
    8. Get your ip address.
    9. Ping your workstation from the VM
    10. From your workstation, ping your VM.
    11. From your VM, ping 8.8.8.8 or www.google.com, or any other public IP which responds to ping.


    If all that works, you're done.

  8. #8
    Join Date
    Sep 2017
    Beans
    64

    Re: Networking dummy needs help

    You seem to be a novice at VMware and virtualization as well as a novice at networking.
    100% correct!

    I'm going to talk like you have no idea what I'm saying.
    Thank you!

    The host of the VM is 64 Bit Linux
    The OS of the server is an IBM DataPower appliance

    The DataPower appliance does need ethernet interfaces (unless it is a Linux, Azure, or Docker variant of the appliance).
    These things only seem to work if at least one ethernet interface is correctly configured, because that's how the appliance receives traffic.

    It might also be important to know it is running inside VMWare Workstation 14.

    If I use the custom interface to the /dev/vmnet1 that was created on both my dev machine and this other server machine, at least I can access the appliance locally (on the VM's host only).

    I did as you suggested. But it is not working. In fact, inside the server, it is saying the ethernet interface now no longer exists (even though I can see in the VMWare window at least it thinks one does)! That is, if I can't configure the eth0 (or any other), it simply won't work other than accessing directly on the command line.

    So I shut it down, deleted them all again. When recreating the adapters, the "Custom" option isn't even there (which is what it seemed to default to when I imported the image into VMWare) so I can't even restore it back to the way it was, which may mean this server appliance is now pushing up daisies (as far as my needs go). What's worse is when I even try to ping, it logs me out like slamming a door in my face.

    I could always delete the entire VM and re-import it, but I'd be back to no access outside of the host.

  9. #9
    Join Date
    Mar 2009
    Beans
    1,982

    Re: Networking dummy needs help

    Full disclosure here, I have never messed with an "IBM DataPower Gateway." I have a pdf opened and am trying to figure this out as I go. I do NOT miss IBM's RedBook documentation scheme. Nothing has changed evidently in the 20 years since I worked there.

    According to the documentation, there is no support shown for VMware workstation. That may or may not be a problem.

    It looks like you downloaded an appliance specifically for VMware, so some questions go away.

    Network interfaces:
    • At no time will your system be running without a network interface. It would be the virtual equivalent of powering down your box, taking out all the network cards and putting a single, new, known-to-be-good card in, and then powering back up.
    • Just because you don't have a host-only network defined does not mean your host can't communicate with the VM. Any network that both the host and the VM have access to can be used to communicate in a normal fashion between host and VM.
    • Your host has a regular network connection on your real network.
    • If your VM has a regular network connection on your real network (by using a bridged network in VMware) then your host and VM can communicate, and any other computer on your network can get to the VM too.
    • If you have a host-only NIC on the vm, then that network can be used for private communication between the host and the VM.
    • If you have a NAT NIC on the vm, then you can communicate with the host OR any other VM which shares that virtual network, but real systems on your real network can't reach them through that network, nor can VMs which are on another host.


    The NAT and host-only network card types can be a brain bender for a VM newbie. If you make everything be a bridge until you figure things out -- especially since you have two hosts -- then you will just see the VMs as computers on your network. You don't have to worry about routing or the security inherent in the other networking types which may be causing your lack of communication.

    That said, if you don't want to delete the network cards from your VM, then you can figure out how to determine the IP address of interface 2 and use that.

    Personally with managing VMs, it's not uncommon to have the guest network connection be borked up, and the easiest solution is to delete the NIC and add it again. Then it starts with defaults.

    If someone else would chime in with VMware experience it might provide reassurance.

  10. #10
    Join Date
    Mar 2009
    Beans
    1,982

    Re: Networking dummy needs help

    The beauty of VMs is that you can always start with a fresh copy of the image and do it again. If your image insists on that custom interface being there then it may be true that deleting it trashed your image. If that's the case then I'm sorry.

    If you do go that route (restoring from the original VM image), then make sure that the custom vmnet1 interface is left untouched, and then add a bridged network for interface 2. Just leave it at the default settings, and it should get an address so it appears to be a peer of the host.

    There may be some sort of firewall on your appliance too, which would prevent network traffic outside the host. I don't see anything about that in the PDF.

    My wife is calling, so I gotta go. Good luck. If you still have questions tomorrow I'll try to answer them.

Page 1 of 2 12 LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •