LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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-01-2009, 03:39 PM   #1
qwbillings
LQ Newbie
 
Registered: Jul 2009
Posts: 1

Rep: Reputation: 0
Multiple NICs, different subnets, wrong default gateway being set


Hi,

I have a very wierd issue happening on a XEN DomU FC8 server. The issue is this:

I have eth0 set to DHCP. I have the DCHPD server offering up a router option setting and have verified via tcpdump capture that it is giving out this information correctly. I then have eth1 set to be static on a completely different subnet (without a gateway statement). When I do a service network start/restart, what happens is that the default gateway gets set to the IP address of eth1 and not the router received from DHCP.

When I place a GATEWAY statement in /etc/sysconfig/network-scripts/ifcfg-eth1 (the static interface) and set it to the gateway handed out by DHCP, it all works just fine and the default gateway gets set correctly.

So, it looks like the eth1 interface is stomping on eth0 and the DHCP information being passed to it.

I have two questions; 1) Why is this happening and 2) what can I do to fix it right? Setting the gateway in ifcfg-eth1 for the other interface seems hacky and wrong.

Thanks in advance for any help you have to offer.

Wade
 
Old 07-02-2009, 09:23 AM   #2
nowonmai
Member
 
Registered: Jun 2003
Posts: 481

Rep: Reputation: 48
Can you provide the contents of...
/etc/sysconfig/networking/devices/*
/etc/sysconfig/networking/profiles/default/*
 
  


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
How do I set up access to multiple subnets on IPsec Connection AIM Systems Linux - Networking 0 03-16-2009 03:39 PM
multiple default routes for dual nics alfman Linux - Networking 1 05-26-2006 09:26 AM
How to set default gateway Harlin Linux - Networking 2 02-28-2006 03:17 AM
How can I tell what my default gateway is currently set as? abefroman Linux - Networking 6 09-10-2005 12:15 PM
DHCP server with multiple nics and subnets hawkpaul Linux - Networking 6 12-20-2001 07:32 AM

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

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