Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
2 IP addresses on same subnet? plus a DHCPd question
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
darkphader
Veteran
Veteran


Joined: 09 May 2002
Posts: 1225
Location: Motown

PostPosted: Tue Jul 12, 2005 6:51 pm    Post subject: 2 IP addresses on same subnet? plus a DHCPd question Reply with quote

Are there any issues or problems associated with connecting both NIC's of a server to the same subnet but with different IP addresses?
Ex:
Code:
config_eth0=(
        "192.168.1.4/24 brd 192.168.1.255"
        )
config_eth1=(
        "192.168.1.5/24 brd 192.168.1.255"
        )
Is there some reason I should avoid such a configuration?

When I do this the DHCP server logs:
Code:
dhcpd: Multiple interfaces match the same subnet: eth0 eth1
dhcpd: Multiple interfaces match the same shared network: eth0 eth1
I think the message is mostly informational and if there really were two subnets being shared then the shared-network statement may be needed in dhcpd.conf but my guess is that in this case it is not. Can anyone shed some light on this?

Thanks much.

Chris
_________________
WYSIWYG - What You See Is What You Grep
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54821
Location: 56N 3W

PostPosted: Tue Jul 12, 2005 7:26 pm    Post subject: Reply with quote

darkphader,

If you do it the way you are trying, only one interface will ever be used.
Run route and look in your routing table to see why.

What you are trying to do is called channel bonding, which allows you to 'bond' several ethernet devices into one logical interface,
That way the load is shared over all the NICs. Often it just moves the bottleneck. Think about the sustainable data rates of the other devices (and a PCI bus is a device) in the data chain before you put a lot of effort into this.

Bonding is a kernel option.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
r00tzz
Apprentice
Apprentice


Joined: 09 Apr 2004
Posts: 203
Location: Sao Paulo, Brasil

PostPosted: Tue Jul 12, 2005 8:12 pm    Post subject: Reply with quote

I wrote a long time ago a mini-how to about this here.

Take a look there althoug I don't know it's still valid, stop using it one of my cards blow...

HTH
rootzz
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum