Bridging two networks

fumsli
Posts: 10
Joined: Fri Apr 27, 2012 3:04 am

Bridging two networks

Postby fumsli » Fri Apr 27, 2012 3:17 am

Hi folks!

I have the following setup in my home network:

Code: Select all

client{1-x}----router----amahi_box----client0
I have two network interfaces on my box and want to forward packets between the router and client 0. Essentially, there should be no difference in network behavior concerning the clients as compared to my old setup:

Code: Select all

client{1-x}----router--------client0
Being a beginner where linux is concerned I'd like to get help in doing this. So far I've found these options:

IP forwarding
Setting interfaces as a bridge

So what are the differences between these approaches? Which one would you recommend to me (and why)?

User avatar
sgtfoo
Posts: 419
Joined: Sun Jul 18, 2010 8:27 pm

Re: Bridging two networks

Postby sgtfoo » Fri Apr 27, 2012 8:29 am

Why can't all the machines connect to your router?

Could you perhaps explain what you're trying to achieve?
SgtFoo
HDA: VM inside oVirt FX-8300 95w (2 cores for HDA), 32GB RAM (2GB for HDA)
My PC: FX-8300, 16GB RAM, 3x 1TB HDDs, Radeon HD6970 2GB video; Win10 Pro x64
Other: PC, Asus 1215n (LXLE), Debian openZFS server (3x(2x2tb) mirrors)
Modem&Network: Thomson DCM475; Asus RT-AC66U; HP 1800-24G switch

fumsli
Posts: 10
Joined: Fri Apr 27, 2012 3:04 am

Re: Bridging two networks

Postby fumsli » Fri Apr 27, 2012 11:39 am

Could you perhaps explain what you're trying to achieve?
I want to:
  • - access the box from the indicated client with as much bandwidth as i can get (my router only supports 100 mbit and deals with several other clients)
    - be able to point a remote at it
    - use the box as a sound-server (which requires me to connect it to my sound system)
Do you have any hints as to how I might solve the previously described problem or insight into the differences of the posted methods?

User avatar
sgtfoo
Posts: 419
Joined: Sun Jul 18, 2010 8:27 pm

Re: Bridging two networks

Postby sgtfoo » Fri Apr 27, 2012 1:12 pm

I may be wrong but...

If you have 2 nics (or a dual-port nic card) you can bridge them and then the router can see the further client that sits connected only to your HDA.

I'll get back on this later.

fumsli
Posts: 10
Joined: Fri Apr 27, 2012 3:04 am

Re: Bridging two networks

Postby fumsli » Fri Apr 27, 2012 2:38 pm

I'll get back on this later.
Nevermind. There is a helpful guide on the wiki. I got it to work with the directions given there.

I have, however, another problem: the amahi deamon/watchdog. Since the information I gave at the time of download isn't valid anymore I always get my changes to the network files (ifcfg-eth0 and resolv.conf) overwritten.
Now I guess I get to reinstall the whole thing since there seems to be no way to either change IP and gateway address or protect selected files against this 'unwanted' intrusion.

Well, anyway this gives me a system I can experiment with so I guess it's not all bad.

fumsli
Posts: 10
Joined: Fri Apr 27, 2012 3:04 am

Re: Bridging two networks

Postby fumsli » Sat Apr 28, 2012 4:26 am

Now I guess I get to reinstall the whole thing since there seems to be no way to either change IP and gateway address or protect selected files against this 'unwanted' intrusion.
One can change the gateway and the dns servers using:

Code: Select all

hda-change-gw
and

Code: Select all

hda-change-dns
The wiki has it all (once you know what to look for).


Now if I only knew how to change the 'self-address' amahi uses:

Code: Select all

hda-settings

User avatar
ciscoh
Posts: 158
Joined: Thu Mar 10, 2011 1:53 pm

Re: Bridging two networks

Postby ciscoh » Thu May 17, 2012 11:04 pm

bridging those interfaces may not accomplish what you list above.

seems like your bridging an interface running at 100MB with one at 1000MB?

when you bridge interfaces, they will only communicate at the lowest speed of the bridged interfaces.

they may appear to be connected at the desired speed but the flow control gets combined and the faster interface will be throttled.

Who is online

Users browsing this forum: No registered users and 1 guest