LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 01-17-2011, 01:17 AM   #1
divyashree
Senior Member
 
Registered: Apr 2007
Location: Bangalore, India
Distribution: RHEL,SuSE,CentOS,Fedora,Ubuntu
Posts: 1,386

Rep: Reputation: 135Reputation: 135
multi wan


I am using CentOS 5, I have 2 wan connected to my PC. I want to know how the kernel takes decision to use which interface ?
 
Old 01-17-2011, 02:42 AM   #2
Willy Gommel
LQ Newbie
 
Registered: Nov 2007
Posts: 28

Rep: Reputation: 1
multi-wan

As to incoming traffic: I believe that, by default, it responds according to which wan connection is delivering the signal.

As to outgoing traffic: I believe that you have one of your two WAN connections set up as a default for use by your own initiation.

Good luck!
 
Old 01-17-2011, 04:47 AM   #3
jimbo1954
Member
 
Registered: Oct 2006
Location: High Wycombe, Bucks, UK.
Distribution: Debian and Fedora Core in equal measure
Posts: 264

Rep: Reputation: 33
It's all controlled by the Routing table, very much like a normal router. The table will hold three kinds of routes:
1. Static Routes, that the operator has configured to tell the PC specific routing information. This includes default routes, which are special types of Static routes, which tell the kernel something like "If you can't find a better place to send this traffic, send it out of interface X";

2. Connected routes, which are the directly connected networks. Obviously if a packet is destined for address a.b.c.d/24 and network a.b.c.0/24 is connected on interface Eth0, then that packet will be sent out of that interface;

3. Dynamic Routes. These are less common, because you must be running something like Quagga, a routing process which communicates with routers in the network and adds routes to the routing table according to information gathered.

Have a look at http://linux.die.net/man/8/route for the "Route" command, and this page:http://www.cyberciti.biz/faq/what-is-a-routing-table/ gives even more details.

Hope this helps!
 
  


Reply



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
multi wan loadbalancing in squid usmanmaniskp Linux - Server 1 09-24-2010 05:19 AM
multi wan ip nat router box wareagle Linux - Security 4 03-04-2010 05:27 PM
linux multi wan (separate inbound and outbound) wartelz Linux - Networking 1 01-11-2007 12:40 AM
root issues on multi lan/wan set up rblampain Linux - Security 2 05-26-2006 04:21 AM
open source multi-WAN router lothario Linux - Networking 3 11-24-2005 05:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:39 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
Open Source Consulting | Domain Registration