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

Skip to comments.

Subnet masks? In English? Anybody?
self

Posted on 01/24/2010 7:00:06 AM PST by djf

click here to read article


Navigation: use the links below to view more comments.
first previous 1-2021-4041-47 last
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]

To: djf
I don't understand why you're trying to do routing on the VM host; the VMWare server handles that (apart from the host O/S). The host O/S has nothing to do with that (other than providing driver level interface to the VM for virtual hardware that it's interfacing to).

The class C address 192.168.0 with subnet mask of 255.255.255.0 will yield 254 host ID's on that network ID; 0 and 256 are reserved for network & broadcast IP addressing. The host ID's run from 1 through 255; given that host ID 1 is reserved (by convention) for the gateway, 192.168.0.100 is a legit host ID on the network 192.168.0.0.

I don't know what, if anything, intrinsic Win2k IP routing capability has to do with anything here. You're trying to implement NAT with the ROUTE command (that's just not right). Fundamentally all IP addresses boil down to MAC addressing. It doesn't matter how the IP addresses are assigned to particular nodes, i.e., APIPA, DHCP or static. What matters is that the gateway is aware of the nodes that exist on the network its serving. In most cases VM hosts will support multiple vm’s; this is especially true when running VM's on a laptop (where each vm needs a unique IP address on any arbitrary LAN). Given that laptops are portable, it is very desirable that a vmware network setup should have several key features:

The means whereby the foregoing can be accomplished is via implementation of one of the following:
[source: VMware Server Virtual Network Architecture]

When a VM comes on-line, it needs to either obtain an IP address from somewhere, i.e., either static, or dynamically via APIPA or DHCP. DHCP can be either a dedicated server to that end, or a functionality of the router. Former case and latter case there is no negotiation; the IP is either declared by the node (static) or assigned to it (DHCP). In the case of APIPA there is negotiation between the gateway and the node until a unique network ID is established. It doesn't matter how the VM gets its unique IP address, but the VM must utilize one of the three aforementioned networking methods.

VMware Server networking 101

43 posted on 01/25/2010 3:51:18 PM PST by raygun
[ Post Reply | Private Reply | To 42 | View Replies]

To: raygun

Don’t take this the wrong way.

I ONLY want answers to my questions, as posed.

I DO NOT want to spend alot pf time debating what the “perfect network config” is, or the theory behind IP addressing or whatever.

I NEED TO KNOW how Windows handles a packet if it gets plunked on his lap but he realizes it’s not for him.

Thanks, but I am not trying to set up some network so perfect my name would go down in history for it, and me, myself, and I am the ONLY user.

djf


44 posted on 01/25/2010 4:34:22 PM PST by djf (The one thing we know is how much we don't know!)
[ Post Reply | Private Reply | To 43 | View Replies]

To: raygun

Also, put out of your mind that we are talking about VMWARE in any way. What I will say is it is a “virtual machine” type application that the host communicates with through TUN/TAP.

Everything between the host and the virtual machine works perfect, I can FTP, I can TELNET, I can PING, I can see all of the virtual machines TCPIP ports from the host.

But I cannot see the virtual machine from any other machine on the same network as the host.


45 posted on 01/25/2010 4:41:04 PM PST by djf (The one thing we know is how much we don't know!)
[ Post Reply | Private Reply | To 43 | View Replies]

To: djf
I ONLY want answers to my questions, as posed.

I NEED TO KNOW how Windows handles a packet if it gets plunked on his lap but he realizes it’s not for him.

Thanks, but I am not trying to set up some network so perfect my name would go down in history for it, and me, myself, and I am the ONLY user.


In answer to your question, what does windows do when a packet is not addressed to it? It simply drops the packet. If the node you are send to is not on your network, the packet eventually expires.

If you're the only user, why are you trying to complicate things by creating a second network? Keep everything on 192.168.0.x Most things appear to work, it's only the communication between your host adapter and the virtual application, whatever the hell that is, that isn't working.

Also, put out of your mind that we are talking about VMWARE in any way. What I will say is it is a “virtual machine” type application that the host communicates with through TUN/TAP.

Ok, so you want everyone to shoot in the dark troubleshooting YOUR mysterious "virtual machine" type application, and then you get all testy by telling us to "put it out of your minds". You might want to rethink that approach when asking for help.

Everything between the host and the virtual machine works perfect, I can FTP, I can TELNET, I can PING, I can see all of the virtual machines TCPIP ports from the host. But I cannot see the virtual machine from any other machine on the same network as the host.

You can pull your ethernet cable, and ping yourself all day long.

You may just be out of luck with that mysterious application on W2K. By virtue of you mentioning TUN/TAP almost as an afterthought, it sounds as though you need a bridge to gap the two adapters for Tunneling, and that doesn't work very nicely under Windows 2000.
46 posted on 01/25/2010 5:31:37 PM PST by Klutz Dohanger
[ Post Reply | Private Reply | To 44 | View Replies]

To: djf

For Win2K it sounds like you have to use Internet Connection Sharing(ICS). However, when you use ICS, the IP address of TAP will be forced to 192.168.0.1. If a router in a real network uses 192.168.0.1 as its Host ID, the network will be unuseable; instead configure the router to use 192.168.1.1 and specify 192.168.1.x for the network.

Then right-click on a real network adapter and select property. Select sharing and check to use ICS. Then push OK. The IP address of Tap adapter will now be set to 192.168.0.1


47 posted on 01/25/2010 8:03:10 PM PST by raygun
[ Post Reply | Private Reply | To 45 | View Replies]


Navigation: use the links below to view more comments.
first previous 1-2021-4041-47 last

Disclaimer: Opinions posted on Free Republic are those of the individual posters and do not necessarily represent the opinion of Free Republic or its management. All materials posted herein are protected by copyright law and the exemption for fair use of copyrighted works.

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