LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 09-24-2005, 03:52 PM   #1
ocgltd
Member
 
Registered: Sep 2005
Location: Canada
Distribution: Fedora 12 i386
Posts: 57

Rep: Reputation: 16
YUM using wrong NIC


I have a Fedora Core 4 box with dual NIC's, running a phone system. One NIC (eth1) on the internet, one (eth0) on the LAN (which accesses the internet via a different firewall).

I have setup IPtables so that only one protocol can get out eth1, used for the phone system. All other traffic is supposed to go out eth0 (including YUM updates).

My dmesg shows that YUM is always trying eth1 - which is blocked. How do I force YUM and other apps to use eth0? In case this is route related, here is my info (eth0 = NIC A):

[root@pbx etc]# netstat -nr
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
172.31.254.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
172.31.253.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth1
0.0.0.0 172.31.253.1 0.0.0.0 UG 0 0 0 eth1
[

Any ideas? How do I change the route/path used for all traffic EXCEPT my phone traffic?
 
Old 09-25-2005, 01:11 PM   #2
dexteroo
Member
 
Registered: Sep 2003
Location: Nigeria
Distribution: CentOS 4.3
Posts: 37

Rep: Reputation: 15
The basic problem is that your default gateway is through eth1. If you want only your phone to go through eth1, then you should setup a few static routes to define the destinations which it would be accessing and then change your default gateway to eth0.

I hope this helps, though the important thing is everything should go through eth0 EXCEPT your phone, which should go through eth1, so just make the routing match those rules and u should be fine.
 
Old 09-25-2005, 04:01 PM   #3
ocgltd
Member
 
Registered: Sep 2005
Location: Canada
Distribution: Fedora 12 i386
Posts: 57

Original Poster
Rep: Reputation: 16
That sounds workable! Now...how? (I haven't created/deleted routes before)

Thanks
 
Old 09-27-2005, 06:58 PM   #4
dexteroo
Member
 
Registered: Sep 2003
Location: Nigeria
Distribution: CentOS 4.3
Posts: 37

Rep: Reputation: 15
You could start by removing the default gateway from eth1 and only putting the one on eth0. Then you probably should read the man page for the route command. That should put you on the right path. However u should also know the IPs of all the machines your phone communicates with.
 
  


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
Gentoo and my NIC: What's wrong? paco36 Linux - Hardware 1 06-28-2005 12:42 AM
Yum Errors in parsing, whats wrong here (yum.conf pasted) thejokker Linux - Newbie 1 06-15-2004 02:28 AM
second nic card wrong IRQ? ldp Linux - Networking 2 04-15-2004 05:19 AM
What's wrong with my yum.conf? bxb32001 Fedora 2 11-11-2003 09:41 AM
2 NIC and traffic on the wrong interface Minuteman Linux - Networking 4 09-27-2003 04:18 AM

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

All times are GMT -5. The time now is 06:43 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