LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices



Reply
 
Search this Thread
Old 04-29-2006, 05:40 PM   #1
teamh
LQ Newbie
 
Registered: Feb 2006
Distribution: Debian
Posts: 6

Rep: Reputation: 0
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
 
Old 04-29-2006, 05:45 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,415

Rep: Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968
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.
 
Old 04-29-2006, 05:52 PM   #3
teamh
LQ Newbie
 
Registered: Feb 2006
Distribution: Debian
Posts: 6

Original Poster
Rep: Reputation: 0
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
 
Old 04-29-2006, 09:04 PM   #4
teamh
LQ Newbie
 
Registered: Feb 2006
Distribution: Debian
Posts: 6

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

Dan
 
Old 04-30-2006, 03:25 AM   #5
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,415

Rep: Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968
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.
 
Old 04-30-2006, 06:49 AM   #6
teamh
LQ Newbie
 
Registered: Feb 2006
Distribution: Debian
Posts: 6

Original Poster
Rep: Reputation: 0
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
basic LAN routing captain_b Linux - Networking 1 11-18-2005 11:46 AM
poptop and routing to the LAN muxman Linux - Networking 4 10-14-2004 06:11 PM
Routing LAN -> WAN -> LAN with unhelpful router synx13 Linux - Networking 2 06-14-2004 03:35 PM
linux routing on lan bruj3w Linux - Networking 8 03-11-2004 02:21 PM
lan to lan routing Tonza22 Linux - Networking 10 01-25-2003 03:51 AM


All times are GMT -5. The time now is 11:51 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration