LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Lan Routing Same Network (https://www.linuxquestions.org/questions/linux-networking-3/lan-routing-same-network-440109/)

teamh 04-29-2006 04:40 PM

Lan Routing Same Network
 
Hi Guys,

I have a medium sized lan comprising of windows and linux servers. I have a fair bit of knowledge regarding linux networking etc.

I want to setup a linux server between one part of my lan and another. Basically i want to route traffic from eth0/eth1 and eth1/eth0 and also be able to setup some type of http bandwidth limiting rules etc.

I have looked around on google for information, it seems that this can be done but its hard to find a place where i can learn what i need to in order to do this successfully.

I have a spare box with two network cards in it and it is running debian 3.1, the network is setup with eth1 10.0.0.200 and eth0 10.0.0.201.

I'm really looking for some people just to advise me on the best way to do this and thier thoughts if possible.

Many thanks
Dan

acid_kewpie 04-29-2006 04:45 PM

if these two nics are on the same subnet then there is no routing taking place. you would be doing nothing more than turning the machine into a bridge (2 port switch)... check lartc.org for details of bridging configuration.

teamh 04-29-2006 04:52 PM

Hi,

Thanks for your quick reply. Ah right, i had looked at bridging and from what your saying sounds familiar. I have an idea, if i put say eth0 as 10.0.0.200 and eth1 as 10.10.10.200 and enable ipv4 forwarding is there a chance that may work. I basically need to take traffic from one part of the network to another i just need to find out what the best way of doing that is. Also would you need to update anything in the route table if i did anything above. In my opinion its better to ask than struggle with it although learning is an important part of it all.

Thank you

Dan

teamh 04-29-2006 08:04 PM

I'm going to do some further learning :study: of this etc and get it working. Although if anyone has anything to add it will be appreciated.

Dan

acid_kewpie 04-30-2006 02:25 AM

not something i'm that familiar with but the way i understand it is that you would use the "birdge" module to combine both eth0 and eth1 into a single br0. This can then hold an ip address if you wish, but you would not be using that address as a gateway to reach fromone side to another as there is still only one subnet involved and no routing taking place. i don't not think you would evenuse ip forwarding.

teamh 04-30-2006 05:49 AM

Hi,

I have actually set a bridge up before but i rebooted the box from some reason, i'll try that again. These are the options for me i think:

1. Bridge the connections and some how get some traffic shaping on that for certain traffic. I'm going to set the bridge back up and test it again.

2. Or set the ip and subnet on the other side of my lan to a different one that i have for say the other interface and route between them two and use some sort of traffic shaping on that.

I'm still playing about with this all, i really need to limit incoming traffic and outgoing because of high bandwidth usage. I'm going to google and play about with this :).

Anyhow its all a good learning curve, thanks.

Dan


All times are GMT -5. The time now is 04:13 PM.