basstscho
03.07.13, 14:50
Hallo zusammen,
ich möchte auf meinem Server der mehrere Subnetze über virtuelle Netzwerkkarten bedient einen DHCP-Server aufsetzen der nur statische Adressen vergibt.
interfaces:
allow-hotplug eth0
iface eth0 inet static
address 10.248.198.60
netmask 255.255.255.0
broadcast 10.248.198.255
gateway 10.248.198.1
allow-hotplug eth1
iface eth1 inet static
address 192.168.0.1
netmask 255.255.255.0
auto eth1:1
iface eth1:1 inet static
address 192.168.2.1
netmask 255.255.255.0
auto eth1:2
iface eth1:2 inet static
address 192.168.44.10
netmask 255.255.255.0
auto eth1:3
iface eth1:3 inet static
address 192.168.5.1
netmask 255.255.255.0
dhcpd.conf:
option domain-name "search";
option domain-name-servers 192.168.5.1;
default-lease-time 600;
max-lease-time 7200;
subnet 192.168.5.0 netmask 255.255.255.0 {
}
host host1 {
hardware ethernet 00:11:CE:10:64:51;
fixed-address 192.168.5.200;
}
Beim Starten des dhcpd bekomme ich dann einen Fehler mit folgendem Hinweis in der syslog:
Jul 3 15:34:15 srv-lab-00 dhcpd: No subnet declaration for eth0 (10.248.198.60).
Jul 3 15:34:15 srv-lab-00 dhcpd: ** Ignoring requests on eth0. If this is not what
Jul 3 15:34:15 srv-lab-00 dhcpd: you want, please write a subnet declaration
Jul 3 15:34:15 srv-lab-00 dhcpd: in your dhcpd.conf file for the network segment
Jul 3 15:34:15 srv-lab-00 dhcpd: to which interface eth0 is attached. **
Jul 3 15:34:15 srv-lab-00 dhcpd:
Jul 3 15:34:15 srv-lab-00 dhcpd:
Jul 3 15:34:15 srv-lab-00 dhcpd: No subnet declaration for eth1 (192.168.0.1).
Jul 3 15:34:15 srv-lab-00 dhcpd: ** Ignoring requests on eth1. If this is not what
Jul 3 15:34:15 srv-lab-00 dhcpd: you want, please write a subnet declaration
Jul 3 15:34:15 srv-lab-00 dhcpd: in your dhcpd.conf file for the network segment
Jul 3 15:34:15 srv-lab-00 dhcpd: to which interface eth1 is attached. **
Wie bekomme ich den Server dazu auch auf die virtuellen Netzwerke zu lauschen?
Besten Dank für eure Hilfe,
Johannes
ich möchte auf meinem Server der mehrere Subnetze über virtuelle Netzwerkkarten bedient einen DHCP-Server aufsetzen der nur statische Adressen vergibt.
interfaces:
allow-hotplug eth0
iface eth0 inet static
address 10.248.198.60
netmask 255.255.255.0
broadcast 10.248.198.255
gateway 10.248.198.1
allow-hotplug eth1
iface eth1 inet static
address 192.168.0.1
netmask 255.255.255.0
auto eth1:1
iface eth1:1 inet static
address 192.168.2.1
netmask 255.255.255.0
auto eth1:2
iface eth1:2 inet static
address 192.168.44.10
netmask 255.255.255.0
auto eth1:3
iface eth1:3 inet static
address 192.168.5.1
netmask 255.255.255.0
dhcpd.conf:
option domain-name "search";
option domain-name-servers 192.168.5.1;
default-lease-time 600;
max-lease-time 7200;
subnet 192.168.5.0 netmask 255.255.255.0 {
}
host host1 {
hardware ethernet 00:11:CE:10:64:51;
fixed-address 192.168.5.200;
}
Beim Starten des dhcpd bekomme ich dann einen Fehler mit folgendem Hinweis in der syslog:
Jul 3 15:34:15 srv-lab-00 dhcpd: No subnet declaration for eth0 (10.248.198.60).
Jul 3 15:34:15 srv-lab-00 dhcpd: ** Ignoring requests on eth0. If this is not what
Jul 3 15:34:15 srv-lab-00 dhcpd: you want, please write a subnet declaration
Jul 3 15:34:15 srv-lab-00 dhcpd: in your dhcpd.conf file for the network segment
Jul 3 15:34:15 srv-lab-00 dhcpd: to which interface eth0 is attached. **
Jul 3 15:34:15 srv-lab-00 dhcpd:
Jul 3 15:34:15 srv-lab-00 dhcpd:
Jul 3 15:34:15 srv-lab-00 dhcpd: No subnet declaration for eth1 (192.168.0.1).
Jul 3 15:34:15 srv-lab-00 dhcpd: ** Ignoring requests on eth1. If this is not what
Jul 3 15:34:15 srv-lab-00 dhcpd: you want, please write a subnet declaration
Jul 3 15:34:15 srv-lab-00 dhcpd: in your dhcpd.conf file for the network segment
Jul 3 15:34:15 srv-lab-00 dhcpd: to which interface eth1 is attached. **
Wie bekomme ich den Server dazu auch auf die virtuellen Netzwerke zu lauschen?
Besten Dank für eure Hilfe,
Johannes