Networking Forums

Networking Forums > Computer Networking > Linux Networking > 2 IPs of same subnet and one gateway problem

Reply
Thread Tools Display Modes

2 IPs of same subnet and one gateway problem

 
 
G. Berg
Guest
Posts: n/a

 
      07-24-2003, 11:56 PM
Hello!

I have a problem with my Network Configuration in RedHat 9.0!

I have 2 NICs (in case one of them fails or the cabling is not okay...).
They have IPs like 123.123.123.1 AND 123.123.123.2, so they are in the
same subnet. The Gateway for both is 123.123.123.254.

Now I setup Redhat with just one of the cards and everything works fine.
Now I add the second card (BTW a 3COM 3c59x) and load the appropriate
driver. This works well. Now I create a
/etc/sysconfig/network-script/ifcfg-eth1
with nearly the same settings as ifcfg-eth0 (IP-addr. and interface
changed of course).

As soon as I restart the network, just ONE of the NICs is active. The
other one just is not there. The one NIC responds to both IPs.

Then I did it manually:
/etc/rc.d/init.d/network stop
(checked ifconfig... no network up, okay lets go on)

ifconfig eth0 123.123.123.1 up
ifconfig eth1 123.123.123.2 up
route add default gw 123.123.123.254

And: I get the same results as above. Just one NIC responds to both IPs.
Its not always the same. It seems to the NIC which is activeted first.

I crawled through several google search results and got to know that
there are known problems with two IPs in the same subnet. But most of
the articles are due to kernel 2.2.

So do you know what I am missing or where I am going wrong?

Thanks in advance

 
Reply With Quote
 
 
 
 
G. Berg
Guest
Posts: n/a

 
      07-25-2003, 01:52 PM
Steve Holdoway wrote:
> will bonding support help???
>


No, because I need the two different IPs.

GB

 
Reply With Quote
 
G. Berg
Guest
Posts: n/a

 
      07-25-2003, 05:53 PM
Performance issues.

 
Reply With Quote
 
W Cardwell
Guest
Posts: n/a

 
      07-26-2003, 04:25 PM
What you are seeing is normal routing behavior. Because standard routing is
based only on the destination and not on bandwidth or any other
considerations, as far as the route table is concerned the second NIC adds
no benefit and it will never be used. The Advanced Routing Howto
(http://lartc.org/howto/) has instructions on how to accomplish fancier
things with the route table, including load balancing over 2 NICs in the
same subnet. This will still not give you any slick auto-failover
capabilities, but it will allow you to make use of both NICs.

--

wcardwell at nc dot rr dot com


"G. Berg" <(E-Mail Removed)> wrote in message
news:bfrqq4$hpn5l$(E-Mail Removed)...
> Performance issues.
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
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
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
IP allocation gateway in subnet Danny Linux Networking 3 05-20-2009 04:04 PM
My Router does not accept a gateway ip that has a subnet address different from the laptop ip address keethyanandpr@gmail.com Wireless Internet 15 03-18-2007 04:03 PM
How to get default Gateway address, subnet address, DNS names using C/C++ Matrixinline Linux Networking 2 01-11-2007 04:32 AM
Quick Question - Default gateway on a different subnet vishal78@gmail.com Linux Networking 3 10-18-2005 03:34 PM
2 NICs, same subnet for a 'gateway' that won't block traffic from 'outside' NIC freat Linux Networking 4 03-01-2004 01:43 PM



1 2 3 4 5 6 7 8 9 10 11