View previous topic :: View next topic |
Author |
Message |
darkphader Veteran
Joined: 09 May 2002 Posts: 1225 Location: Motown
|
Posted: Tue Jul 12, 2005 6:51 pm Post subject: 2 IP addresses on same subnet? plus a DHCPd question |
|
|
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 |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54821 Location: 56N 3W
|
Posted: Tue Jul 12, 2005 7:26 pm Post subject: |
|
|
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 |
|
|
r00tzz Apprentice
Joined: 09 Apr 2004 Posts: 203 Location: Sao Paulo, Brasil
|
Posted: Tue Jul 12, 2005 8:12 pm Post subject: |
|
|
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 |
|
|
|