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 07-22-2003, 07:56 AM   #1
155092376
LQ Newbie
 
Registered: Jun 2003
Posts: 7

Rep: Reputation: 0
how to ignore the routing table


Hello,

I know a bit about programming sockets in c in Linux. Now I've got two NICs:
eth0 with 192.168.1.100 and
eth1 with 192.168.1.101 .

I want to send two datagrams to an internetlocation. One datagram over eth0 and the other over eth1. But they always go over eth0 because the default gateway is set like this. ( route add default gw 192.168.0.1 eth0) .

I tried to do it the way a DHCP-client send its packets, but then the other site won't recognize my packets as UDP/IP anymore.

Do you think it is possible without reprogramming the kernel?
I think the kernel controls the contents of the ethernet header.

I hope you can help me.

Marco de Wit
 
Old 07-22-2003, 08:24 AM   #2
jharris
Senior Member
 
Registered: May 2001
Location: Bristol, UK
Distribution: Slackware, Fedora, RHES
Posts: 2,243

Rep: Reputation: 47
Where are you sending the packets? This is what will decide the route they take. As eth0 and eth1 are both on the same subnet why do you want to use a specific interface?

cheers

Jamie...
 
Old 07-22-2003, 08:59 AM   #3
155092376
LQ Newbie
 
Registered: Jun 2003
Posts: 7

Original Poster
Rep: Reputation: 0
Well, the real situation is a bit more complex, it's about ESS transition :
I've got two wireless NIC's and when one is busy sending (VoIP) the other should find a better AP and connect to that ESS (ESS of eth0 can be different than that of eth1), and then the VoIP should also go over that other NIC, but the routing table in Linux takes two seconds to have effect. So after I do route add default gw 192.168.0.1 eth1 , it takes two seconds before the VoIP packets go over eth1.

That's why I want to bypass the routing table.

Marco
 
Old 07-22-2003, 09:04 AM   #4
jharris
Senior Member
 
Registered: May 2001
Location: Bristol, UK
Distribution: Slackware, Fedora, RHES
Posts: 2,243

Rep: Reputation: 47
Sounds to me like you want to look into some of the QoS and advanced routing stuff. You can load balance the links or route packets on their type/mark/anything you want really.

http://www.tldp.org/HOWTO/Adv-Routing-HOWTO/index.html

HTH

Jamie...
 
Old 07-22-2003, 09:35 AM   #5
155092376
LQ Newbie
 
Registered: Jun 2003
Posts: 7

Original Poster
Rep: Reputation: 0
No, I just want to walk downtown and call someone over WLAN. And when I walk away my other NIC should pick up a better connection (To another AP with probably a different ESSID.) And when this new connection is made the Voice traffic should go over it at once. I don't want to wait 2 seconds before the routing table has its effect.

Marco
 
  


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
routing table arvind kumar Linux - Networking 2 06-08-2005 11:59 PM
Help with a Routing Table maginotjr Linux - Networking 4 06-06-2005 09:49 AM
Change the routing table gubak Linux - Networking 1 07-19-2004 05:11 AM
routing table quiestion John Micheal Linux - Networking 3 04-15-2004 09:23 AM
routing table upr8830 Linux - Networking 6 06-18-2003 03:04 AM

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

All times are GMT -5. The time now is 11:54 PM.

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