Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

Subnet question

Hi All,

Just a quick question.

Say I had a subnet of 192.168.100.0/24 with a gateway of 192.168.100.1, but then a requirement comes along to subnet the 192.168.100.0/24 network, into four subnets.

    

     192.168.100.0/24---------------------192.168.100.1--------192.168.200.1----------------192.168.200.0/24

So, I would steal two bits from the host portion and define my four networks are:

1) 192.168.100.0

2) 192.168.100.64

3) 192.168.100.128

4) 192.168.100.192

Broadcasts

1) 192.168.100.63

2) 192.168.100.127

3) 192.168.100.191

4) 192.168.100.255

My hosts would be

1) 192.168.100.1-192.168.100.62

2) 192.168.100.65-192.168.100.126

3) 192.168.100.129-192.168.100.190

4) 192.168.100.193-192.168.100.254

To route the traffic (using a router on a stick concept, and vlan interfaces), would I have to choose an address from the list of host addresses to be the gateway for each of the subnets? i.e.

1) 192.168.100.1

2) 192.168.100.65

3) 192.168.100.129

4) 192.168.100.193

I am pretty sure this is correct, but just want to confirm?

Subnet 1)

Network Address: 192.168.100.0

Range of Addresses: 192.168.100.2 - 192.168.100.62

Gateway: 192.168.100.1

Broadcast: 192.168.100.63

Subnet 2)

Network Address: 192.168.100.64

Range of Addresses: 192.168.100.66 - 192.168.100.126

Gateway: 192.168.100.65

Broadcast: 192.168.100.127

Subnet 3)

Network Address: 192.168.100.127

Range of Addresses: 192.168.100.130 - 192.168.100.190

Gateway: 192.168.100.129

Broadcast: 192.168.100.191

Subnet 4)

Network Address: 192.168.100.191

Range of Addresses: 192.168.100.194 - 192.168.100.254

Gateway: 192.168.100.193

Broadcast: 192.168.100.255

Does this look correct?

3 REPLIES

Re: Subnet question

Hi All,

Just a quick question.

Say I had a subnet of 192.168.100.0/24 with a gateway of 192.168.100.1, but then a requirement comes along to subnet the 192.168.100.0/24 network, into four subnets.

     192.168.100.0/24---------------------192.168.100.1--------192.168.200.1----------------192.168.200.0/24

So, I would steal two bits from the host portion and define my four networks are:

1) 192.168.100.0

2) 192.168.100.64

3) 192.168.100.128

4) 192.168.100.192

Broadcasts

1) 192.168.100.63

2) 192.168.100.127

3) 192.168.100.191

4) 192.168.100.255

My hosts would be

1) 192.168.100.1-192.168.100.62

2) 192.168.100.65-192.168.100.126

3) 192.168.100.129-192.168.100.190

4) 192.168.100.193-192.168.100.254

To route the traffic (using a router on a stick concept, and vlan interfaces), would I have to choose an address from the list of host addresses to be the gatew

Hi,

Yes you are right as each subnet will act as separet segment so you need to configure sub interface for each subnet like below sample example:-


interface fastethernet0
   no ip address
interface FastEthernet 0.20
   ip address 20.20.20.1 255.255.255.0
   encapsulation isl 20
interface FastEthernet 0.40
   ip address 40.40.40.1 255.255.255.0
   encapsulation isl 40

Hope to help !!

Ganesh.H

Remember to rate the helpful post

New Member

Re: Subnet question

Hello Darren,

                      You have subnetted it absolutely right. Since the gateway is also a "device" it will have to get it's ip address from the available subnet. As Ganesh has pointed out, create a subnet interface defining the subnet and feed it with an ip address.

Also, I would prefer to use dot1q more than ISL now ( dot1q provides less overhead and header size compared to ISL). Also, dot1q being an open standard provides for interoperability with other vendors.

One more thing to remember is that the DHCP pool that you will create for your machine should NOT include the gateway address as well.

-/ Kiran Cherian

New Member

Re: Subnet question

Hi Darren,

I would also prefer an dot1q encapsulation, but my questoin is, do you use the Cisco router as the DHCP or have you a W2K3 or Linux??

If you have an external server, configure IP Helper on the Subinterfaces and everything should work.

Regards Martin

3228
Views
20
Helpful
3
Replies
CreatePlease login to create content