Networking Forums

Networking Forums > Computer Networking > Linux Networking > Re: Complex subnet masks

Reply
Thread Tools Display Modes

Re: Complex subnet masks

 
 
jmh
Guest
Posts: n/a

 
      08-04-2003, 11:17 PM
I think you want to look up CIDR addressing.

jmh

Peter Mairhofer wrote:
> Hello,
>
> I have to configure two private networks.
>
> One "bigger" network which should have the netmask 255.255.0.0:
>
> 192.168.0.0/255.255.0.0
>
> My "private" network (Class C) 192.168.200.0/255.255.255.0
>
> My Linux gateway has two network cards and each card connects
> one network of the nets described.
>
> But soon I realized that something was wrong. After debugging with
> tcpdump and ping I found out that the problem must be the netmasks.
>
> When I send a ping from a Windows PC in 192.168.100.0 to a station
> in the 192.168.0.0 I always got a timeout. In tcpdump I could see that
> the request was reached and routed correctly by the linux gateway
> but there was no response, there was just an ARP request asking
> for the MAC address of the PC in the 192.168.100.0 network.
> This is logical, because the PC in 192.168.0.0/255.255.0.0 believes
> that the other PC is in the same subnet.
>
> After a lot of desperation I had the solution: Somewhere I read of
> complex subnet masks like 255.255.240.0. I tried it out and that
> part worked. But now other parts did not work.
> I now that the subnet mask tells the important bits of the address
> but somehow I didn't get it working - I can't find out what's the
> right subnet mask for each network. At the moment I have:
>
> 192.168.200.0/255.255.255.0
> 192.168.0.0/255.255.240.0
>
> I my new configuration, the net 192.168.0.0 should have the subnets
> 192.168.0.1(-192.168.0.255) up to 192.168.99.1(-192.168.99.255)
>
> My other network should just have the network 192.168.200.0/255.255.255.0.
>
> Everything bigger than xxx.xxx.99.xxx which is not xxx.xxx.200.xxx should
> be reserved, so the former network 192.168.0.0/16 should only be able to
> address 192.168.0.1 to 192.168.99.255 any more.
>
> What are the correct subnet masks?
>
> I hope you can understand my question and my problem and that you
> can help me.
>
> Thanks in advance,
>
> Peter
>
>
>


 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: Subnet Masks Edwin vMierlo Windows Networking 1 12-20-2006 01:31 PM
subnet masks bulk88@hotmail.com Linux Networking 1 03-08-2005 03:01 AM
Subnet masks Roshak Windows Networking 2 11-05-2004 07:55 PM
Re: Complex subnet masks Francois Labreque Linux Networking 0 08-05-2003 01:10 AM
Re: Complex subnet masks David Efflandt Linux Networking 0 08-04-2003 11:55 PM



1 2 3 4 5 6 7 8 9 10 11