issue when using bridge connection - networking

I have a windows 10 host machine connected to internet through wifi. . I have installed vmware workstation in it.
I have created a linux virt machine and set a static ip address and used a bridged connection.
Each time I start the vmware machine intenet connection on all pc of the office is dropped. It is not an ip confict problem because other pc get range of ip from 192.168.1.100 to 200. The host and vmware machine have 192.168.1.12 and 192.168.1.23.
Everything is ok when I use NAT.
May sb help me please? Thanks in advance

Well, if you want a static ip you need to set it on the machine (here a VM) and the router/dhcp server so that it knows this machine doesn't need an ip and which ip it has...

Related

Failed to ping vm ip address from another device (android phone) under same network

i have network issue from using vm.
This is ifconfig info of vm ubuntu 16.04.
This is ipconfig info of my host machine.
And this is the network settings of vm.
I able to ping vm ip addr from host machine.
I able to ping phone ip addr from vm.
I unable to ping vm ip addr from phone under same network.
Im bad in networking. Any of you have good clue can help me solve this issue?
Appreciate your help & Thanks in advance.
NAT has four different types, and it always works as a firewall. That is why we need UDP traversal and hole-punch sometime. If you want other devices like host and phone build a connection to vm, you need firstly connect from vm to thoses deivces to build a "hole" as a path.

I can't assign an IP address to vmware VM from DHCP pool

In GNS3, I have configured the DHCP pool on the router R1, and I have a vmware VM (Ubuntu 16.04), another router R2 and VPCs are connected to R1. The R2 and VPC can get their IP address without a problem, however, the vmwareVM can't receive the IP address.
Note that:
the station is configured as host-only
the connect a host virtual adapter to this network is checked
the VMware Workstation DHCP Server is turned OFF
No configuration on my local PC Network Connections (DHCP)
Once I type the command dhclient eth0 to get the IP address from dhcp, it freezes and returns nothing and no IP address is assigned.
I want to know what is the problem that causes that issue and how to solve it.
Thank you.
My mistake was in the configuration of my VMware network adapter (VMnet2) in my network adapter in my host.
so in order to get the IP address from the DHCP router: I did the following steps:
Create a virtual network (VMnet2) in the virtual network editor
of VMware.
I checked the "Host-only" option
I checked the
"connect a host virtual adapter to this network" option
Uncheck the "use local DHCP service to distribute IP address to VMs".
Do not change the default configuration of the VMnet from your
network connexion options.
I hope that will help someone has the same issue as me

dnsmasq resolve DNS queries normally

I'm new to dnsmasq and networking isn't my strong point, hopefully i'm missing something simple.
I have a Ubuntu laptop running dnsmasq. The laptop's WiFi is connected to the Internet, the laptop's ethernet is connected to a LAN.
Plugging my machine into the LAN I am assigned an IP address by the laptop. Accessing www.google.com on my machine gets picked up the laptop and i'm served the laptops Apache page, which is my desired result. The problem is I can't access any other website, Destination Host Unreachable.
I'd like the laptop running dnsmasq to allow my machine to resolve DNS queries normally and only be restricted when accessing www.google.com.
My dnsmasq.conf is the default except:
address=/www.google.com/192.168.0.1
interface=eth0
dhcp-range=192.168.0.50,192.168.0.150,12h
I've a feeling it might be related to the IP settings on each network?
The WiFi has a static IP 192.168.1.55 taking to the router at 192.168.1.1 and the DNS server at 192.168.1.10.
The ethernet is configured manually with an IP 192.168.0.1 setting the router as the WiFi IP 192.168.1.55 and the same for the DNS server 192.168.1.55.
Thanks in advance for any help.
Pete
After a lot of fiddling, this was related to iptables and not dnsmasq.

Connect to VM running on the same computer without LAN

I have a windows 2003 VM running on my windows xp machine.
The machine name of the VM is itdom.domain.com
The windows xp host machine is disconnected from the LAN.
I want to be able to connect to the VM from the host and vice versa using there computer names. For example the URL http://itlab.domain:7080/domainsm must be accessible from the host computer.
Is there any configuration that I can do on any of the machine to do this.
Just because you have no physical network connection doesn't stop you setting up networking on the host and guest machines. One way of doing this is to add an IP address to the host machine's physical network port and create a bridged network on that port so that the guest can also see it.
You don't say which VM technology you are using, but in many of them you can setup an internal network between the host and guest. All you need to do then is edit each hosts file to add a hostname for the IP address of the other machine. You may also need to configure firewalls to allow access between the two.
No doubt there are also other ways to achieve this.

How to access loopback adapter from another PC on my LAN

I have installed MS Loop-back adapter and have given it a static IP: 10.10.10.9
my laptop is configured as 10.10.10.30 , and my gateway is 10.10.10.1
i can ping the loop-back NIC from my laptop, but not from any other machine on the LAN. i am trying to beat the 65k port limitation by seeing if i can have virtual IP addresses on one machine and each can then give me 65k ports
thanks.
By very definition, you CANNOT talk to a loopback adapter from any other machine but your own.
If on Linux, you could bridge it to a physical adapter, such as eth0, but why would you want to do that?
Take a look here for setting up IP alias on Windows (disclaimer - I don't own any windows machines, so can't really verify this).
You can ping your Loopback interface from LAN by installing Remote and Routing Access role on the server. After installing the R&S role on the server , configure LAN routing feature. It will start pinging from LAN. I have done this practically in my environment.

Resources