Solved

Subnetting

Posted on 2003-11-20
3
898 Views
Last Modified: 2008-02-26
Hi I am really confusing in subnetting as more and more i go through books.
My basic question is when subnetting is done( i know bit). It is basically splitting the main net work.say
192.168.2.0
subnet mask 255.255.255.192
This will give 4 subnets
 (192.168.2.0, 192.168.2.64,192.168.128 and 192.168.2.192.)
Lets say these network id's and host  will be assigned by DHCP.
Now my question is how many NIC i need and where those will be hooked up. Does it need four NIC or just one (for 192.168.2.0, because we are just splitting this).
How it works in real environment. or it is done through L2 switches. Is subnetting works at Layer 2 or layer 3. Whole lot of confusion, in theory it look quite good. How a host is connected throuh, is it splited through Hub/swiches. Layer 2 0r Layer 3 switches.where the NIC is from where ip address is coming.

Some simple diagrame showing NIC (important) and subnet will be appreciated.
regards and thanks

jatsw
0
Comment
Question by:jatsw
  • 2
3 Comments
 
LVL 7

Accepted Solution

by:
NicBrey earned 125 total points
ID: 9786098
Hi
IP addressing is Layer 3, so is subnetting.

There is more than one way to do this.
The best way to do this, is with a layer 3 switch. Then you need only one NIC in your server. the switch is more expensive, but performance will be better.

Create 4 VLANs on the switch and configure the routing between them. A VLAN for each subnet.
The DHCP server can be in any one of the subnets with a static address for that subnet.
Configure the 4 DHCP scopes on the server - one scope for each subnet.

Depending on the type of switch you use, the implimentation might differ slightly.  In the Cisco world, you add the
"ip helpder-address <ip address of server>" command on each of the VLAN interfaces. Without this, your layer 3 device that handles the routing between the subnets will not forward the DHCP requests to the server.

Will look something like this...

Subnet 1
(with DHCP server)--------------\
                                              \    
Subnet 2 -------------------------\  \
                                                Layer 3 switch
Subnet 3 -------------------------/     /
                                                 /
Subnet 4 --------------------------/

0
 
LVL 3

Expert Comment

by:bartt
ID: 9816794
Hi Jatsw

What NicBrey is suggesting is good. You need tot create 4 VLAN's and connect them up to a layer 3 switch. Because of the nature of DHCP (broadcast to get the IP-info) it is needed to make clear to the VLAN which is at Layer2 where the DHCP server is.

Yes Subnetting is a layer 3 thing. If you look into the OSI model for IP, IP is layer 3 related. Layer 2 is just the MAC-address.

+----------------------------+
|    Application layer        |
+----------------------------+
|   Session layer              |
+----------------------------+
|    Network layer            |  => IP related
+----------------------------+
|   Datalink layer              | => everything related to the MAC
+----------------------------+
|   Physical layer              |
+----------------------------+

If their is no need for the VLAN's to interconnect I would be surprised that there are layer 2 switches which are able to set up a kind of IP-helper address.

If you like that your devices also can have contact Inter-Vlan you have to set some routing in the switch. I don't know how you do at the Cisco boxes (I hate them, not stable) but with an Extreme Networks switch it is just an <<Enable ipforwarding vlan vlanid>>
0
 
LVL 7

Expert Comment

by:NicBrey
ID: 9816870
Hi Bartt,
Guess the choice of different hardware vendors is a matter of personal preference.     I am a Cisco man...    :)

>If their is no need for the VLAN's to interconnect I would be surprised that there are layer 2 switches which are able to set up a kind of IP-helper address.

Layer 2 devices split collision domains. Layer 3 devices split broadcast domains. You do therefore not require a command on a layer 2 switch to forward DHCP requests to the server. Broadcasts gets forwarded out all switch ports. It is only needed when the DHCP server is on a different subnet, seperated by a layer 3 device.

Nic
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Cisco ACS TACACS server - adding a secondary 2 63
Destination host unreachable 12 69
Classlful vs Classless subneting 18 62
EIGRP STUB 19 42
While it is possible to put two routes in place with the secondary having a higher metric, this may not always work. In the event of a failure that does not bring down the physical interface on the router the primary route is not removed. There is a…
Quality of Service (QoS) options are nearly endless when it comes to networks today. This article is merely one example of how it can be handled in a hub-n-spoke design using a 3-tier configuration.
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now