Hello,
I have a server with two network cards:
Code:
root@marte:/etc/dhcp3# cat /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
iface eth0 inet static
address 192.168.0.202
netmask 255.255.255.0
network 192.168.0.0
broadcast 192.168.0.255
dns-nameservers 127.0.0.1
auto eth1
iface eth1 inet static
address 10.0.0.3
netmask 255.0.0.0
network 10.0.0.0
broadcast 10.255.255.255
gateway 10.0.0.1
dns-nameservers 10.0.0.2
root@marte:/etc/dhcp3#
Both logical networks are at the same ethernet segment, i.e. same fisical network.
I want to configure a dhcp server in such a way that known clients get an 192.168.0.0/24 address via eth0 and unknown clients get 10.0.0.0/8 address via eth1. I have tried this straight on dhcpd.conf:
Code:
subnet 192.168.0.0 netmask 255.255.255.0 {
ignore unknown-clients;
host mic-052{
hardware ethernet 00:1e:c9:1b:xx:xx;
fixed-address 192.168.0.52;
}
... etc
}
subnet 10.0.0.0 netmask 255.255.255.0 {
... etc
}
It did not work, gave me the error:
Code:
May 27 13:01:06 marte dhcpd: DHCPREQUEST for 192.168.0.52 (192.168.0.202) from 00:1e:c9:1b:xx:xx via eth1: wrong network.
Is it doable? Can anybody help me?
Best regards,
Bookmarks