Merci pour votre réponse.
Je viens juste de trouver cette info qui pourra servir a d’autre si besoin :
http://www.linuxquestions.org/questions/linux-networking-3/dhcp-with-multiple-nic-357102/
[quote]As far as I know you cannot bind the same network address to 2 nics, you would have to have to different network id’s for it to function correctly:
192.168.1.0
and:
192.168.2.0
You need to edit the /etc/dhcpd.conf file, redhat may be in a different place, I use slackware for my setup. A simple configuration would look like this:
ddns-update-style interim;
shared-network domain {
option routers 192.168.1.1; # —> this is static ip-address of eth0
option subnet-mask 255.255.255.0;
option broadcast-address 192.168.1.255;
option domain-name “domain”; # Can be domain or workgroup name
option domain-name-servers 192.168.1.1;
default-lease-time 86400;
max-lease-time 604800;
subnet 192.168.1.0 netmask 255.255.255.0 {
range 192.168.1.10 192.168.1.55;
}
}
ddns-update-style interim;
shared-network domain {
option routers 192.168.2.1; # —> this is static ip-address of eth1
option subnet-mask 255.255.255.0;
option broadcast-address 192.168.2.255;
option domain-name “domain”; # Can be domain or workgroup name
option domain-name-servers 192.168.2.1;
default-lease-time 86400;
max-lease-time 604800;
subnet 192.168.2.0 netmask 255.255.255.0 {
range 192.168.2.60 192.168.2.90;
}
}
Although I have never tried 2 different cards with a dhcp server before[/quote]
Mais on peut aussi faire ainsi avec des adresses de broadcast différentes:
[quote]it is to some extent possible…
2 options from what i know:
-
you can either bridge, and have 1 pool for both segments,
-
you can devide 192.168.1.x into 2 different subnets (which will do the job even better) example:
eth0:
address 192.168.1.1/25
network 192.168.1.0
broadcast 192.168.1.127
eth1:
address 192.168.1.129/25
network 192.168.1.128
broadcast 192.168.1.255
for the dhcp server you need to note the /25 sunet mask, which in the dhcp config file will look like 255.255.255.128
and the network address of the subnets is
for eth0: 192.168.1.0
for eth1: 192.168.1.128
enjoy
[/quote]