Unix Technical Forum

Is it possible to forward broadcast packets between different subnets without using brdge ?!

This is a discussion on Is it possible to forward broadcast packets between different subnets without using brdge ?! within the Linux Operating System forums, part of the Unix Operating Systems category; --> Thanks !...


Go Back   Unix Technical Forum > Unix Operating Systems > Linux Operating System

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-18-2008, 10:14 AM
SatSpy
 
Posts: n/a
Default Is it possible to forward broadcast packets between different subnets without using brdge ?!

Thanks !


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-18-2008, 10:14 AM
Andre Kostur
 
Posts: n/a
Default Re: Is it possible to forward broadcast packets between different subnets without using brdge ?!

"SatSpy" <vkwireless@hi.t-com.hr> wrote in news:dmt1do$co2$1@ss405.t-
com.hr:

> Thanks !
>
>
>


Why would you want to? What's the actual problem you're trying to solve?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 01-18-2008, 10:14 AM
SatSpy
 
Posts: n/a
Default Re: Is it possible to forward broadcast packets between different subnets without using brdge ?!

Netbios, games, etc....

For example , if I create game on 192.168.1.x subnet, I want that game to be
visible in ingame lan browser on the other subnets too ( 192.168.2.x, etc ).
That's the case when game does not have option to connect to IP address
directly ( Battlefield2 for example in offline mode ).

Thanks !


"Andre Kostur" <nntpspam@kostur.net> wrote in message
news:Xns97227E2356FE8nntpspamkosturnet@207.35.177. 134...
> "SatSpy" <vkwireless@hi.t-com.hr> wrote in news:dmt1do$co2$1@ss405.t-
> com.hr:
>
>> Thanks !
>>
>>
>>

>
> Why would you want to? What's the actual problem you're trying to solve?



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 01-18-2008, 10:14 AM
Peter T. Breuer
 
Posts: n/a
Default Re: Is it possible to forward broadcast packets between different subnets without using brdge ?!

SatSpy <vkwireless@hi.t-com.hr> wrote:
> Netbios, games, etc....


> For example , if I create game on 192.168.1.x subnet, I want that game to be
> visible in ingame lan browser on the other subnets too ( 192.168.2.x, etc ).
> That's the case when game does not have option to connect to IP address
> directly ( Battlefield2 for example in offline mode ).


Err .. and what stops you bridging those two subnets? Are you saying
that the game does not route? That it does some kind of broadcast?
Well, change the subnet broadcast mask ...

Peter
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 01-18-2008, 10:15 AM
Alan Adams
 
Posts: n/a
Default Re: Is it possible to forward broadcast packets between different subnets without using brdge ?!

In message <dmvqfp$46k$1@ss405.t-com.hr>
"SatSpy" <vkwireless@hi.t-com.hr> wrote:

> Netbios, games, etc....
>
> For example , if I create game on 192.168.1.x subnet, I want that game to be
> visible in ingame lan browser on the other subnets too ( 192.168.2.x, etc ).
> That's the case when game does not have option to connect to IP address
> directly ( Battlefield2 for example in offline mode ).


If you have control over the subnets, make them into one.

192.168.1.0 and 192.168.2.0 are only different networks if the subnet mask
is 255.255.0.0.

If you make the mask 255.255.255.0 they become part of one network. The
broadcasts them pass between all systems.

You do have to alter the mask on every connected interface. (Or if you know
exactly what you are doing, it is possible to use different masks in
different places, but debugging problems gets VERY interesting. For example
some routing protocols ca cope, some can't.)

>
> Thanks !
>
>
> "Andre Kostur" <nntpspam@kostur.net> wrote in message
> news:Xns97227E2356FE8nntpspamkosturnet@207.35.177. 134...
> > "SatSpy" <vkwireless@hi.t-com.hr> wrote in news:dmt1do$co2$1@ss405.t-
> > com.hr:
> >
> >> Thanks !
> >>
> >>
> >>

> >
> > Why would you want to? What's the actual problem you're trying to solve?

>
>


--
Alan Adams
alan.adams@orchard-way.freeserve.co.uk
http://www.nckc.org.uk/
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 01-18-2008, 10:15 AM
Andre Kostur
 
Posts: n/a
Default Re: Is it possible to forward broadcast packets between different subnets without using brdge ?!

Alan Adams <alan.adams@orchard-way.freeserve.co.uk> wrote in
news:e6ac32d44d.Alan.Adams@orchard-way.freeserve.co.uk:

> In message <dmvqfp$46k$1@ss405.t-com.hr>
> "SatSpy" <vkwireless@hi.t-com.hr> wrote:
>
>> Netbios, games, etc....
>>
>> For example , if I create game on 192.168.1.x subnet, I want that
>> game to be visible in ingame lan browser on the other subnets too (
>> 192.168.2.x, etc ). That's the case when game does not have option to
>> connect to IP address directly ( Battlefield2 for example in offline
>> mode ).

>
> If you have control over the subnets, make them into one.
>
> 192.168.1.0 and 192.168.2.0 are only different networks if the subnet
> mask is 255.255.0.0.


Uh, don't you mean 255.255.255.0?

> If you make the mask 255.255.255.0 they become part of one network.
> The broadcasts them pass between all systems.


Er... 255.255.0.0 .... I think you got them reversed...

> You do have to alter the mask on every connected interface. (Or if you
> know exactly what you are doing, it is possible to use different masks
> in different places, but debugging problems gets VERY interesting. For
> example some routing protocols ca cope, some can't.)


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 01-18-2008, 10:15 AM
HASM
 
Posts: n/a
Default Re: Is it possible to forward broadcast packets between differentsubnets without using brdge ?!

Andre Kostur <nntpspam@kostur.net> writes:

>> 192.168.1.0 and 192.168.2.0 are only different networks if the subnet
>> mask is 255.255.0.0.

>
> Uh, don't you mean 255.255.255.0?


I think he did mean 255.255.255.0

>
>> If you make the mask 255.255.255.0 they become part of one network.
>> The broadcasts them pass between all systems.

>
> Er... 255.255.0.0 .... I think you got them reversed...


That would work, but isn't 255.255.252.0 enough to bridge x.x.2.0 and
x.x.1.0?

-- HASM
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 01-18-2008, 10:15 AM
Andre Kostur
 
Posts: n/a
Default Re: Is it possible to forward broadcast packets between different subnets without using brdge ?!

HASM <not_really@comcast.net> wrote in news:m3hd9oh0px.fsf@127.0.0.1:

> Andre Kostur <nntpspam@kostur.net> writes:
>>> If you make the mask 255.255.255.0 they become part of one network.
>>> The broadcasts them pass between all systems.

>>
>> Er... 255.255.0.0 .... I think you got them reversed...

>
> That would work, but isn't 255.255.252.0 enough to bridge x.x.2.0 and
> x.x.1.0?


Yep... I just didn't want to get into the complexity of CIDR subnet
masks... figured it would be easier to stick to class C vs. class B
addressing.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 01-18-2008, 10:16 AM
Alan Adams
 
Posts: n/a
Default Re: Is it possible to forward broadcast packets between different subnets without using brdge ?!

In message <m3hd9oh0px.fsf@127.0.0.1>
HASM <not_really@comcast.net> wrote:

> Andre Kostur <nntpspam@kostur.net> writes:
>
> >> 192.168.1.0 and 192.168.2.0 are only different networks if the subnet
> >> mask is 255.255.0.0.

> >
> > Uh, don't you mean 255.255.255.0?

>
> I think he did mean 255.255.255.0


So I did.

>
> >
> >> If you make the mask 255.255.255.0 they become part of one network.
> >> The broadcasts them pass between all systems.

> >
> > Er... 255.255.0.0 .... I think you got them reversed...

>
> That would work, but isn't 255.255.252.0 enough to bridge x.x.2.0 and
> x.x.1.0?


It is, for the same reason I got it wrong above.

I can only be sure I've got netmasks right if I write them and the addresses
down in binary, and I didn't take the time.

The requirement is that all the bits of the addresses which are different
must be on the host part of the address, which is where the netmask has
0's. In that case, when all the network bits match, the networks are the
same, i.e. one network.

192 168 1 x
11000000 10110000 00000001 xxxxxxxx

192 168 2 x
11000000 10110000 00000010 xxxxxxxx

255 255 252 0
11111111 11111111 11111100 00000000

This shows that the third byte of 252 is enough. The resulting network has
1022 legal addresses - 192.168.3.255 is the broadcast address, and
192.168.0.0 is the network number, both reserved.

Let's hope I got it right this time!

Alan

--
Alan Adams
alan.adams@orchard-way.freeserve.co.uk
http://www.nckc.org.uk/
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 12:54 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com