[+] dhcp: No subnet declaration for eth0
: 25 marca 2007, 21:34
moj /etc/default/dhcp
to
moj /etc/dhcpd.conf
po poleceniu ifconfig:
czy przy takich ustawieniach i celu:
serwer/router ma dwie eth0 (do ktorej podpiety będzie Internet) oraz eth1 do ktorej podpiety bedzie switch a do niego 3 kompy dla ktorych robie dhcp).
Jeżeli macie jakiekolwiek pomysły dlaczego ciągle dostaje bład i nie moge uruchomic dhcpd.conf to prosze napiszcie.
Treść błędu:
to
Kod: Zaznacz cały
# Defaults for dhcp initscript
# sourced by /etc/init.d/dhcp
# installed at /etc/default/dhcp by the maintainer scripts
#
# This is a POSIX shell fragment
#
# On what interfaces should the DHCP server (dhcpd) serve DHCP requests?
# Separate multiple interfaces with spaces, e.g. "eth0 eth1".
INTERFACES="eth1"
moj /etc/dhcpd.conf
Kod: Zaznacz cały
subnet 204.254.239.0 netmask 255.255.255.224 {
default-lease-time 3600 ;
option domain-name-servers 194.204.159.1 , 212.85.112.32 , 213.173.209.70 ;
option routers 204.254.239.1;
option subnet-mask 255.255.255.224;
host h-1
{
hardware ethernet 00:0E:2E:9E:32:55;
fixed-address 204.254.239.2;
}
host h-2
{
hardware ethernet 00:0E:2E:9E:32:07;
fixed-address 204.254.239.3;
}
host h-3
{
hardware ethernet 00:C0:9F:B5 :D F:D 1;
fixed-address 204.254.239.4;
}
eth0 Link encap:Ethernet HWaddr 00:0E:2E:9E:32:55
inet addr:192.168.1.226 Bcast:192.168.255.255 Mask:255.255.0.0
inet6 addr: fe80::20e:2eff:fe9e:3255/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:37482 errors:0 dropped:0 overruns:0 frame:0
TX packets:1212 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:2594517 (2.4 MiB) TX bytes:182123 (177.8 KiB)
Interrupt:10 Base address:0xc400
eth1 Link encap:Ethernet HWaddr 00:0E:2E:9E:32:07
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Interrupt:5 Base address:0xc800
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:8 errors:0 dropped:0 overruns:0 frame:0
TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:560 (560.0 b) TX bytes:560 (560.0 b)
sit0 Link encap:IPv6-in-IPv4
NOARP MTU:1480 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
czy przy takich ustawieniach i celu:
serwer/router ma dwie eth0 (do ktorej podpiety będzie Internet) oraz eth1 do ktorej podpiety bedzie switch a do niego 3 kompy dla ktorych robie dhcp).
Jeżeli macie jakiekolwiek pomysły dlaczego ciągle dostaje bład i nie moge uruchomic dhcpd.conf to prosze napiszcie.
Treść błędu:
rozumiem ze eth1 ma IP 0.0.0.0 czyli go wogole nie ma bo jest niepodpieta jeszcze. Ale co ja mam jeszcze dopisac do /etc/httpd.conf to nie wiem naprawde.........Mar 25 22:20:59 localhost dhcpd: No subnet declaration for eth1 (0.0.0.0).
Mar 25 22:20:59 localhost dhcpd: Please write a subnet declaration in your dhcpd.conf file for the
Mar 25 22:20:59 localhost dhcpd: network segment to which interface eth1 is attached.
Mar 25 22:20:59 localhost dhcpd: exiting.