Interfaces using the same internal virtual switch in Hyper-V don't ping - virtualization

I have Windows Server 2008 and Windows 7 on virtual machines (HyperV). Win7 has 2 internal interfaces (Local Area Connection 4 and 5), the same situation is on Server 2008.
All interfaces are using one, the same internal virtual switch.
I thought that they are all in the same subnet now and should ping each other, but the only machines that can communicate are interface 5 (Win7) with interface 4 from Server.
How can I connect them all? Do I understand this interfaces and virtual switches properly?
When I do ping command I get: Reply from ...Server IP adress.. Destination host unreachable.
Virtual switch has static IP adress 192.168.1.1, when I set default Gateway on my interfaces I get error: warning- Multiple default gateways are intended to provide redundancy to a single networ. They will not function properly when the gateways are on two seperate, disjoint networks.

Your internal interfaces are suppose to have one configured for the current network your on and the other interface can be bridged to have the virtual network established. One interface will have the same Local Area network as the machine your using to run the virtual machines which allows your virtual machines to use the network. Also make sure you name your interfaces to keep them distinguished from each other, for example "NAT" and the other "Internalnet" hope this helps.

Related

How to know which interface is connected to particular machine?

I have a server with a lot of interfaces, and only one interface is assigned IP address, this interface is kept for management.
but other interfaces are connected to the other server.
I want to know which interface is actually connected to the outside server.
Here, I tried to ping to the machine IP with particular interface ping -I eth1 x.x.x.x.
But not able to ping with the interface even though I know this is connected to the server.
All the packet is only going via the management eth0.
Is there a better way to find out which interface is connected to a particular machine?
I know the machine IP address
I am using ubuntu 18.04

Configure same VLAN on cisco router for two ports

I have to complete a part of a virtual network assignment.
The tasks sounds like "The VLan1 of the Sw3 should be assigned the second possible address of the subnet and fa0/1 of the R2 should be assigned the first possible address"
The fa0/1 interface address was assigned successfully.
The problem is Sw3 is recognized as Router so I am not sure how I should configure vlans, I think it should be something with the encapsulation dot1q
If I try to assign the same ip for the e0/0.1 and e0/1.1 interfaces of the Sw3 I get the exception about overlapping ip's.
The subnet is 172.16.3.0/24 and I should be able to ping the Linux server with the ip 172.16.3.254 from both Sw3 and R2
Boot image for the Sw3 is l3-advipservices-m-15.4-2T.bin
Closing the question and moving it to networkengineering stackexchange

How to create a virtual network interface on a remote machine bridge to an interface on a local machine?

I have a local Linux machine (L), with a network interface (eth0) connected to (currently) only one device (D).
L/eth0 only has an ipv6 link local address.
D also only has an ipv6 link local address.
Client software on L discovers D's link local address by sending a custom multicast packet over eth0. The response contain the device link local address as well as some configuration information. From there it communicates with the device using various UDP or TCP port.
My goal is to be able to use the device from a remote machine (R). The remote machine being most likely a Linux docker container running on some host - although it could be a native macOS or other.
That means running both the discovery protocol and communicate with the device. I definitely cannot modify software on the device, and cannot modify most of the client software running on the local Linux or remote machine (Limited modification could possibly be requested)
My idea was to somehow create a virtual interface on the remote machine, that would remotely be bridged to the the local machine, so that the multicast discovery works from the remote, and so that I can just connect to D link local address from the remote.
I'm not sure which tool(s) I should be using.
I'm googling various things about VPN and tunnel, TUN/TAP interfaces, bridges, VETH, VLAN, etc... but I'm having trouble connecting the dots here... I have no budget for this, so I'm looking for open source tools, or just something I can cobble up together with common tools.
Thanks

Virtualization aware switches

According to http://www.cisco.com/en/US/solutions/collateral/ns340/ns517/ns224/ns892/ns894/white_paper_c11-525307.html
Each virtual machine is given a dedicated network interface card. My question is, how do a server containing about 10 virtual machines, ever support 10 NIC's ?
Those NICs are probably virtual. Packets from them are routed to the physical NIC(s) and the other way around. It's pretty much the same thing as you get in modern WiFi routers: at home you only have one Ethernet port from your Internet Service Provider, it's in the modem. You connect your router to it, but your router may have 2+ Ethernet ports to which you can connect multiple PCs.
They can be physical too and either be directly accessible to VMs or indirectly.

How does communication occur in java through TCP sockets on the same machine

I have two servers, written in Java, that communicate through sockets and TCP. The servers are both on the same Linux machine. If the servers were on different machines then data would have to go through network adapters and network cables, but since the servers are on the same machine how does the OS actually move data efficiently form one server to the other.
Generally, the messages will be sent over the loopback interface:
In TCP/IP a loopback device is a virtual network interface implemented in software only and not connected to any hardware, but which is fully integrated into the computer system's internal network infrastructure. Any traffic that a computer program sends to the loopback interface is immediately received on the same interface.
However, you can manage to configure your situation so that, for example, the server is referred to via an external IP address so that messages actually go out over the network before being routed back to the same machine.
If two programs are using TCP/IP to communicate on the same machine, they are probably connected through the loopback interface