Home > Networking Tips > > Protocols, Lesson 9: Subnet routing and communications
Networking Tips:
EMAIL THIS
 TIPS & NEWSLETTERS TOPICS 


Protocols, Lesson 9: Subnet routing and communications


Firewall.cx
10.10.2004
Rating: -4.45- (out of 5)


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


We have analyzed subnetting and understood how it works, but haven't yet dealt with the "communication" side of things. This will be analyzed here. It's an easy and very interesting page, so sit back and read through it comfortably.

Communication between subnets

After reading all the previous pages about subnetting, let me ask you the following:

Do you think computers that are on the same physical network but configured to be on separate subnets are able to communicate?

The answer is "no". Why? Simply because you must keep in mind that we are talking about the communication between two different networks!

Looking at our example of the class C network on the previous page, the fact is that one computer is part of the network 192.168.0.0 and the other one part of network 192.168.0.32, and these are two different networks. In our example, from the moment we modified the default subnet mask from 255.255.255.0 to 255.255.255.224, we split that one network to 8 smaller ones.

Let's try it

And because we just have to prove it, we are going to try it on my home network. In the worst case I'll have to spend all night trying to figure out what went wrong, but it will be worth it!

Without complicating things, here is a diagram of my home network. (I've excluded any computers we are not going to be using, in order to save space.)

[IMAGE]

That's the network we have to play with. I have put on the diagram the results of a few simple pings from each host and, as you can see, they all came out nice: PASS.

In order to proceed to phase two of our experiment, I modified the subnet mask of my workstation to 192.168.0.35 / 255.255.255.224 , my Slackware Linux Firewall to 192.168.0.1 / 255.255.255.224 (internal Network Interface Card) and my NetWare 6 server to 192.168.0.10 / 255.255.255.224 as shown in the diagram below:

[IMAGE]

As you can see, the results for my workstation ...


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   



RELATED CONTENT
Network Administration
Why is access denied to my Active Directory (AD) users and computers?
What network loss testing tools/methods calculate dropped packets from a PC?
Network user management
Do I have to disable DHCP on my router to create a DHCP server?
What preventative maintenance procedures for network devices exist?
Top 10 reasons why computers do not have network access to each other
Troubleshooting -- 'Network Know-How' Chapter 17
How server virtualization improves efficiency in a client-server model
Understand Windows tracert output to troubleshoot network connectivity
Why would a computer show drive letters for discs that don't exist?
Network Administration Research

IP Networking
What is the definition of ATM (Asynchronous Transfer Mode)?
Do I have to disable DHCP on my router to create a DHCP server?
Windows Server 2008 IP routing configuration: Static and dynamic RIPv2
What is IP?
Connect your LAN to the Internet using static or dynamic NAT
Using tracert and TTL to troubleshoot network connectivity problems
Test your TCP/IP protocol stack to troubleshoot network connectivity
IP addressing and subnetting explained
Checking IP configuration to troubleshoot Windows network connectivity
Does IPv6 abandon TCP/IP fragmentation?

RELATED GLOSSARY TERMS
Terms from Whatis.com − the technology online dictionary
availability  (SearchNetworking.com)
carrier detect  (SearchNetworking.com)
fiber jumper  (SearchNetworking.com)
layer 2  (SearchNetworking.com)
MAE  (SearchNetworking.com)
Network layer  (SearchNetworking.com)
networking  (SearchNetworking.com)
OSI  (SearchNetworking.com)
patch cord  (SearchNetworking.com)
staggered quadrature phase-shift keying  (SearchNetworking.com)

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary


were devastating -- alone and totally unaware that the other two servers are still there. When my workstation tries to ping the Linux Firewall, it will get no reply, because its gateway is a host which belongs to another network, something that we knew would never work.

We have concluded that there cannot be any sort of communication between the computers of network 1 and network 2. How can two hosts in two different subnets talk to each other? That's what we are going to cover.

Building the bridge

There is a way to allow the communication between my workstation and my servers and the Internet. Actually, there are a few ways to achieve this and I'll show you a few , even though some might seem silly or impractical. We are not interested in the best solution at the moment, we just want to know the ways in which we can establish communication between the two subnets.

Considering that subnets are smaller networks, you would remember that we use routers to achieve communications between two networks. This example of my home network is no exception to this rule.

We need a router which will route packets from one network to the other. Let's have a look at the different ways we can solve this problem:

Method 1: Using a server with two network cards
Our first option is to use one of the servers, or a new Server which has at least two network cards installed. By connecting each network card to one of our networks and configuring the network cards so that each one belongs to one subnet/network we can route packets between them:

[IMAGE]

The above diagram shows pretty much everything that's needed. The second network card has been installed and it's been assigned an IP address that falls within our network 1 range and therefore can communicate with my workstation. On the other hand the NetWare server now acts as a gateway for network 1, so my workstation is reconfigured to use it as its gateway. Any packets from network 1 to network 2 or the Internet will pass through the NetWare server

Method 2: Binding 2 IP addresses to the same network card
This method is possibly the best and easiest way around our problem. We use the same network card on the NetWare server and bind another IP address to it.

This second IP address will obviously fall within the network 1 IP range so that my workstation can communicate with the server:

[IMAGE]

As noted on the diagram, the only problem we might encounter is the need for the operating system of the server to support this type of configuration, but most modern operating systems would comply.

Once configured, the server takes care of any routing between the two networks.

Method 3: Installing a router
The third method is to install a router in the network.

This might seem a bit far fetched but remember that we are looking at all possible ways to establish communications between our networks! If this was a large network, then a router could possibly be the ideal solution, but given the size of my network, well... let's just say it would be a silly idea :)

[IMAGE]

My workstation in this setup would forward all packets to its gateway, which is the router's interface and is connected to network 1 and it will be able to see all other servers and access the Internet. It's a similar setup to Method 1 but instead of a server we have a dedicated router. Oh, and by the way, if we would end up using such a configuration in real life.. the hub which both of the router's interfaces connects to would be replaced by some type of WAN link.

That completes our discussion on Subnet routing and communication.

Return to the introduction or continue to Lesson 10.


[IMAGE]
Click over to Firewall.cx for more articles like this one. You don't have to register or jump through any hoops. All you do is get the networking information you want. Copyright 2004 Firewall.cx.

Rate this Tip
To rate tips, you must be a member of SearchNetworking.com.
Register now to start rating these tips. Log in if you are already a member.




DISCLAIMER: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.



Networking Solutions for Business

Alcatel-Lucent Network Business Communications Solutions

About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Site Map




All Rights Reserved, Copyright 2000 - 2009, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts