Hello, I connected the network 192.168.1.0 with 192.168.2.0 over the internet trough a GRE-Tunnel. I don''t know if I set up all things right: The client-pcs in both networks have a subnet mask of 255.255.255.0 and 192.168.2.x''s default gateway is the server wich has started the tunnel. The 192.168.1.x''s default gateway is 192.168.1.250 wich routes traffic destinated to 192.168.2.0/24 to 192.168.1.36 (the server wich has started the tunnel in the other network). I think the routing is ok. For example I can ping 192.168.1.86 from 192.168.2.21 and the other way round, too. But I want to enable all lan features - the window boxes should find the window boxes in the other network in their "network neighborhood". What do I have to do, to implement this "feature"? Is this even possible? Thanks in advance! With best regards Martin Klewitz _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
Martin Klewitz wrote:> > I think the routing is ok. For example I can ping 192.168.1.86 from > 192.168.2.21 and the other way round, too. > But I want to enable all lan features - the window boxes should find the > window boxes in the other network in their "network neighborhood". > What do I have to do, to implement this "feature"? > Is this even possible? >You''re half-way there - you just need to change your subnets, and use bridging. You need to bridge your lan interfaces to the gre interface on both ends, and then you also need both networks the same. Then all PCs at both ends should think they''re on the same network, and broadcast packets will go everywhere. -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Damion de Soto - Software Engineer email: damion@snapgear.com SnapGear --- ph: +61 7 3435 2809 | Custom Embedded Solutions fax: +61 7 3891 3630 | and Security Appliances web: http://www.snapgear.com ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
Hello,> You need to bridge your lan interfaces to the gre interface on both ends, > and then you also need both networks the same. > Then all PCs at both ends should think they''re on the same network, > and broadcast packets will go everywhere.Could you tell me how I can bridge the networks? I don''t want to (I actually can''t) reboot the gateway on 192.168.1.0, because a 2Mbit is routed trough this box and there are connections alive that can''t be interrupted (without that it costs some money :( ) So a recompile of the kernel isn''t possible :( Thanks in advance! With best regards Martin Klewitz _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
> So a recompile of the kernel isn''t possible :(I forgot to say, the kernel wich I can''t recompile is 2.4.20-4GB (SuSE). The kernel on the second networks router could be recompiled if necessary - it is 2.4.21 I compiled myself. Mit freundlichen Grüßen / With best regards Martin Klewitz _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
Martin Klewitz [gamigo AG] wrote:> > Could you tell me how I can bridge the networks?There''s some bridge howtos, and stuff in the kernel doco: http://www.tldp.org/HOWTO/HOWTO-INDEX/networking.html#NETBRIDGE linux/Documentation/networking/bridge.txt> So a recompile of the kernel isn''t possible :(If it supports modules, you can just build and insert the bridge.o module. Otherwise, well... you won''t be able to build a bridge. good luck. -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Damion de Soto - Software Engineer email: damion@snapgear.com SnapGear --- ph: +61 7 3435 2809 | Custom Embedded Solutions fax: +61 7 3891 3630 | and Security Appliances web: http://www.snapgear.com ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
Hello Damion,> There''s some bridge howtos, and stuff in the kernel doco: > http://www.tldp.org/HOWTO/HOWTO-INDEX/networking.html#NETBRIDGE > linux/Documentation/networking/bridge.txtThe problem is, that bridge-utils don''t work with a gre tunnel: router:~ # brctl addbr br0 router:~ # brctl addif br0 eth1 router:~ # brctl addif br0 gre0 br_add_interface: Invalid argument Is there any possibility to make bridge-utils work with a gre-tunnel? Or are there any other bridging-methods? Thanks in advance! With best regards Martin Klewitz _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
Hello, Use vtund - vtun.sourceforge.net, it''s quite more flexible than gre tunnels, and works fine with bridge-utils, too. You can use it to transport not only IP, but other layer 3 protocols as well, it has compression and encryption. On Thu, 24 Jul 2003 16:32:57 +0200 "Martin Klewitz" <martin@gamigo.de> wrote: : Hello Damion, : : > There''s some bridge howtos, and stuff in the kernel doco: : > http://www.tldp.org/HOWTO/HOWTO-INDEX/networking.html#NETBRIDGE : > linux/Documentation/networking/bridge.txt : The problem is, that bridge-utils don''t work with a gre tunnel: : router:~ # brctl addbr br0 : router:~ # brctl addif br0 eth1 : router:~ # brctl addif br0 gre0 : br_add_interface: Invalid argument : : Is there any possibility to make bridge-utils work with a gre-tunnel? : Or are there any other bridging-methods? -- ________________________________________________________________________ So long, and thanks for all the fish! Nickola
Martin Klewitz wrote:> router:~ # brctl addif br0 gre0 > br_add_interface: Invalid argument > > Is there any possibility to make bridge-utils work with a gre-tunnel? > Or are there any other bridging-methods?Oops, I forgot. We patched the bridge module to allow it to use gre tunnels for IP eth bridging. If you want to try this path, let me know and i''ll get you the patches, otherwise you may want to try the vtund approach, which may be easier. -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Damion de Soto - Software Engineer email: damion@snapgear.com SnapGear --- ph: +61 7 3435 2809 | Custom Embedded Solutions fax: +61 7 3891 3630 | and Security Appliances web: http://www.snapgear.com ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/