Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Servers & Networking
FedoraForum Search

Forgot Password? Join Us!

Servers & Networking Discuss any Fedora server problems and Networking issues such as dhcp, IP numbers, wlan, modems, etc.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 26th March 2009, 10:19 PM
dryicerx Offline
Registered User
 
Join Date: Apr 2005
Posts: 34
Two Network Interfaces, How to setup Default gw Route?

So I have two network Interfaces

eth0 - NAT behind a router
eth1 - Public IP


When ever I restart the machine, both interfaces pull a IP, but the it randomly chooses eth0 or eth1 to have the gateway. I want the gateway to be eth0 always.

Code:
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
172.17.106.64   0.0.0.0         255.255.255.192 U     0      0        0 eth1
192.168.1.0     0.0.0.0         255.255.255.0   U     0      0        0 eth0
169.254.0.0     0.0.0.0         255.255.0.0     U     1002   0        0 eth1
169.254.0.0     0.0.0.0         255.255.0.0     U     1003   0        0 eth0
0.0.0.0         172.17.106.65   0.0.0.0         UG    0      0        0 eth1
So as of now, when ever it starts like this, I manually do this

Code:
route del default eth1
route add default gw 192.168.1.1 eth0

Is there some file or setting I can modify in Fedora10 that will always choose 192.168.1.1 on eth0 as the default gateway?
Reply With Quote
  #2  
Old 26th March 2009, 10:47 PM
marko's Avatar
marko Offline
Registered User
 
Join Date: Jun 2004
Location: Laurel, MD USA
Posts: 5,448
You can run system-config-network and there's a tab that will allow you to bind each interface to the MAC address of the particular cards.

Or you can go in the ifcfg-ethX files for each and edit the HWADDR= fields to do the same thing.
Reply With Quote
  #3  
Old 26th March 2009, 10:49 PM
dryicerx Offline
Registered User
 
Join Date: Apr 2005
Posts: 34
Quote:
Originally Posted by marko View Post
You can run system-config-network and there's a tab that will allow you to bind each interface to the MAC address of the particular cards.

Or you can go in the ifcfg-ethX files for each and edit the HWADDR= fields to do the same thing.
I think you misunderstood, I am not having any problem related to the mac address of the interfaces...
Reply With Quote
Reply

Tags
default, interfaces, network, route, setup

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to setup eth0 as default network connection? tonytiger Servers & Networking 1 7th May 2006 10:19 PM
Default route problem with network applet and dhcp dave843 Servers & Networking 2 24th March 2005 12:40 AM


Current GMT-time: 16:54 (Monday, 20-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat