Networking Forums

Networking Forums > Computer Networking > Linux Networking > need help with bridging

Reply
Thread Tools Display Modes

need help with bridging

 
 
Madhur Ahuja
Guest
Posts: n/a

 
      10-02-2004, 09:47 AM

Hello

I have a 3(2-2) computer network with this setup:

PC1 PC2 PC3
NIC 1 NIC1 NIC1
192.168.0.1 192.168.0.2 192.168.1.1
NIC2
192.168.1.2

I want to establish communication between PC1 and PC3.
In Windows XP I can do it through *bridging*.

But how to do it in Linux? I think I need to add
some route in PC2.

I dont want to buy an extra router.

--
Madhur Ahuja [madhur<underscore>ahuja<at>yahoo<dot>com]

Homepage
http://madhur.netfirms.com






 
Reply With Quote
 
 
 
 
Bernhard Kastner
Guest
Posts: n/a

 
      10-02-2004, 11:23 AM
Madhur Ahuja schrieb:
> Hello
>
> I have a 3(2-2) computer network with this setup:
>
> PC1 PC2 PC3
> NIC 1 NIC1 NIC1
> 192.168.0.1 192.168.0.2 192.168.1.1
> NIC2
> 192.168.1.2
>
> I want to establish communication between PC1 and PC3.
> In Windows XP I can do it through *bridging*.
>
> But how to do it in Linux? I think I need to add
> some route in PC2.
>


If the network is *secure* and you can trust in your clients, just set
PC2 as default-Gateway and /proc/sys/net/IPv4/ip_forward to 1.
Everything will be forwarded.
An alternate method would be setting up the iptables, but this would be
much more work

 
Reply With Quote
 
Tauno Voipio
Guest
Posts: n/a

 
      10-08-2004, 10:00 AM
Madhur Ahuja wrote:
> Hello
>
> I have a 3(2-2) computer network with this setup:
>
> PC1 PC2 PC3
> NIC 1 NIC1 NIC1
> 192.168.0.1 192.168.0.2 192.168.1.1
> NIC2
> 192.168.1.2
>
> I want to establish communication between PC1 and PC3.
> In Windows XP I can do it through *bridging*.
>
> But how to do it in Linux? I think I need to add
> some route in PC2.
>
> I dont want to buy an extra router.
>
> --
> Madhur Ahuja [madhur<underscore>ahuja<at>yahoo<dot>com]
>
> Homepage
> http://madhur.netfirms.com
>


Assuming thet there are no connections to the outside Internet:

You need to enable IP forwarding in PC2:

echo "1" > /proc/sys/net/ipv4/ip_forward

The hosts PC1 and PC3 need to know how to reach the
far end subnet:

In PC1:

route add -net 192.168.1.0/24 gw 192.168.0.2

In PC3:

route add -net 192.168.0.0/24 gw 192.168.1.2

HTH

Tauno Voipio
tauno voipio (at) iki fi


 
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
Bridging Adair Witner Wireless Internet 1 09-04-2006 05:34 PM
MN-700 Bridging Vladimir Zaychik Broadband Hardware 1 08-18-2004 12:10 AM
Fix for bridging with tg3 on 2.4.20 tylernt Linux Networking 0 04-12-2004 05:32 PM
Bridging MN - 500 Luis Broadband Hardware 2 02-20-2004 11:49 PM
Bridging Greg Milstead Broadband Hardware 2 02-10-2004 09:20 PM



1 2 3 4 5 6 7 8 9 10 11