Free Republic
Browse · Search
General/Chat
Topics · Post Article

To: djf
It looked like you had the helm, so I was thinkin' you had this fingered out. It seems that you're getting confused with the host machine network ID and the VM. I don't know why you decided to mess around with class A addressing, although you can use it for LAN network IDs. You really shoudl stick with the default class C address/subnet schema until you truly get how subnetting works. Then you can go with CIDR and whatever network ID class floats your boat.

If you use a network mask of 255.255.255.0, then a total of 254 host ID's are addressable on any arbitrary network using the last octet. A subnet utilizes the mathematical bitwise operator AND. For the default private class C addressing scheme, any network ID that is returned after the subnet mask bitwise AND operator 255.255.255 that equals 192.168.0 is on the same network; any OTHER network ID will be a different network and will require a router to handle the packets addressed to it.

For example, 192.168.1 is on a different network than 192.168.0. If the subnet mask implemented is 255.255.255.0, then 254 hosts can exist on each of 254 seperate networks. A packet addressed to 192.168.1.10 from any host on network 192.168.0 gets sent by the router (192.168.0.1) to the router handling that network, i.e. 192.168.1.1. 192.168.0.1 knows to do that, because 192.168.1.10 is not in his domain.

If I utlize subnet mask 255.255.255.248, then I have 6 hosts avaialable on each of 8190 networks. I can use class A addressing of 10.10.10 if I'd like, but the last octet is tricky because its sharing network ID & host ID simultaneously. 248 translates to 11111000. And so any combination of 1 or 0 for the first 5 bits are available for network ID, while only the last three bits are avaialable for host ID.

28 bits translates to 256 combinations. However, 0 (all bits in the octet off) is reserved for the network address, and 255 (all bits in the octet on) is reserved for the broadcast address; two network IDs for each network are unuseable.

Your VM host machine has network ID of 192.168.0.70. That is the real network ID for the network adapter (NIC). The VM itself is configured with a virtual network adapter having a network address of 192.168.0.100. The VM should be able to ping itself, 127.0.0.1 (or 0.0.0.0), as the local loopback address. It should also be able to see 192.168.0.70 without any issues.

Any other host on the network, including the router, e.g., 192.168.0.1, should be able to see 192.168.0.70. However, NOBODY else is going to know what 192.168.0.100 is; as far as they're concerned it doesn't exist. Depending on how you configure the VM, will depend on the network resources available to 192.168.0.100.

When you use "host-only networking" on the VM, a network connection between the virtual machine and the host computer, using a virtual Ethernet adapter that is visible to the host operating system. This approach can be useful if you need to set up an isolated virtual network.

If you use host-only networking, your virtual machine and the host virtual adapter are connected to a private TCP/IP network. Addresses on this network are provided by the VMware DHCP server.

If you want to connect to the Internet or other TCP/IP network using the host computer’s dial-up networking or broadband connection and you are not able to give your virtual machine an IP address on the external network, NAT is often the easiest way to give your virtual machine access to that network. However your virtual machine will not have its own IP address on the external network when implementing NAT on the VM. Instead, a separate private network is set up on the host computer. Your virtual machine gets an address on that network from the VMware virtual DHCP server. The VMware NAT device passes network data between one or more virtual machines and the external network. It identifies incoming data packets intended for each virtual machine and sends them to the correct destination.

Bridged networking is often the easiest way to give your virtual machine access to the network when your host computer is on an Ethernet network. On a Windows host, you can use bridged networking to connect to either a wired or a wireless network. On a Linux host, you can use bridged networking to connect to a wired network.

If you use bridged networking, your virtual machine needs to have its own identity on the network. For example, on a TCP/IP network, the virtual machine needs its own IP address. Your network administrator can tell you whether IP addresses are available for your virtual machine and what networking settings you should use in the guest operating system. Generally, your guest operating system can acquire an IP address and other network details automatically from a DHCP server. You might need to set the IP address and other details manually in the guest operating system.

Using bridged networking enables the virtual machine to be a full participant in the network. It has access to other machines on the network and can be contacted by other machines on the network as if it were a physical computer on the network.

If the host computer is set up to boot multiple operating systems and you run one or more of them in virtual machines, you need to configure each operating system with a unique network address. People who boot multiple operating systems often assign all systems the same address, since they assume only one operating system will run at a time. If you use one or more of the operating systems in a virtual machine, this assumption is no longer true.

Changing the Networking Configuration in a VM

41 posted on 01/25/2010 8:59:53 AM PST by raygun
[ Post Reply | Private Reply | To 40 | View Replies ]


To: raygun

Thanks.
A comprehensive and informative reply.

I think part of my issue may be hampered by the fact I am using win2K.

By default, win2k doesn’t do any of the software routing stuff. I went in and REGEDIT’d it so that IPEnableRouting is turned on.

But there is another part, one of the system services a routing snapin of sorts, that I can’t find a clue out about how to actually USE it, I turned it on using Admin Tools, but can’t find any way how to tweak the settings once it’s started.

My idea has always been:

Machine A is 192.168.0.70 and runs VM 192.168.0.100
Machine B is 192.168.0.66 and can ping 192.168.0.70 quite ok.
Making NO CHANGES, I cannot ping 192.168.0.100 from machine B.

If I do this on B:

Route Add 192.168.0.100 mask 255.255.255.0 192.168.0.70

then does that not mean if I do a PING from machine B to 192.168.0.100, he knows enough to send it to 192.168.0.70

What does 192.168.0.70 do with it? I am assuming he at least looks at it and says, hey, this is for somebody else, not me... does he trash it without routing turned on? I added 192.168.0.100 to the routing table on 192.168.0.70 but it still didn’t get there, and I can only assume it’s because machine A doesn’t have all the router snapin stuff set up to serve as a router. Leave it to Microsoft to put in like 12 options that seem to possibly conflict with each other or override...

Anyways, thanks, if you have any ideas about what I just described, lemme know. I searched the internet far and wide and still couldn’t find out how to use that dm snapin thingie!


42 posted on 01/25/2010 9:41:40 AM PST by djf (The one thing we know is how much we don't know!)
[ Post Reply | Private Reply | To 41 | View Replies ]

Free Republic
Browse · Search
General/Chat
Topics · Post Article


FreeRepublic, LLC, PO BOX 9771, FRESNO, CA 93794
FreeRepublic.com is powered by software copyright 2000-2008 John Robinson