[+] dhcp3-server - konfiguracja dla interfejsu

Masz problemy z siecią bądź internetem? Zapytaj tu
Awatar użytkownika
LordRuthwen
Moderator
Posty: 2341
Rejestracja: 18 września 2009, 21:45
Lokalizacja: klikash?

[+] dhcp3-server - konfiguracja dla interfejsu

Post autor: LordRuthwen »

Witam.
Mam problem z konfiguracją serwera DHCP w sieci.
/etc/dhcp/dhcpd.conf

Kod: Zaznacz cały

ddns-update-style none;
default-lease-time 600;
max-lease-time 7200;
authoritative;
log-facility local7;
shared-network Test {
subnet 192.168.3.0 netmask 255.255.255.0 {
    ignore client-updates;
    option ip-forwarding false;
    option routers 192.168.3.1;
    option subnet-mask 255.255.255.0;
    option domain-name-servers 8.8.8.8, 8.8.4.4;
    option time-offset -5;
    default-lease-time 300;
    max-lease-time 600;
}
}
/etc/default/isc-dhcp-server

Kod: Zaznacz cały

INTERFACES="eth3.3"

Kod: Zaznacz cały

ip addr sh dev eth3.3
7: eth3.3@eth3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP
    link/ether 00:30:48:xx:xx:xx brd ff:ff:ff:ff:ff:ff
    inet 85.xx.xxx.x/22 brd 85.xx.xxx.xxx scope global eth3.3
    inet 85.xx.xxx.x/24 scope global eth3.3
    inet 80.xx.xxx.xx/27 scope global eth3.3
    inet 192.168.3.1/24 scope global eth3.3
    inet6 fe80::230:xxxx:xxxx:xxxx/64 scope link
       valid_lft forever preferred_lft forever
I ni w ząb nie rozumiem o co mu chodzi. Zapewne to jakiś banał, proszę o pomoc :)

Wynik w logach:

Kod: Zaznacz cały

Apr 17 17:07:55 R4 dhcpd: Internet Systems Consortium DHCP Server 4.1.1-P1
Apr 17 17:07:55 R4 dhcpd: Copyright 2004-2010 Internet Systems Consortium.
Apr 17 17:07:55 R4 dhcpd: All rights reserved.
Apr 17 17:07:55 R4 dhcpd: For info, please visit https://www.isc.org/software/dhcp/
Apr 17 17:07:55 R4 dhcpd: Internet Systems Consortium DHCP Server 4.1.1-P1
Apr 17 17:07:55 R4 dhcpd: Copyright 2004-2010 Internet Systems Consortium.
Apr 17 17:07:55 R4 dhcpd: All rights reserved.
Apr 17 17:07:55 R4 dhcpd: For info, please visit https://www.isc.org/software/dhcp/
Apr 17 17:07:55 R4 dhcpd: Wrote 0 leases to leases file.
Apr 17 17:07:55 R4 dhcpd:
Apr 17 17:07:55 R4 dhcpd: No subnet declaration for eth3.3 (85.xx.xxx.x).
Apr 17 17:07:55 R4 dhcpd: ** Ignoring requests on eth3.3.  If this is not what
Apr 17 17:07:55 R4 dhcpd:    you want, please write a subnet declaration
Apr 17 17:07:55 R4 dhcpd:    in your dhcpd.conf file for the network segment
Apr 17 17:07:55 R4 dhcpd:    to which interface eth3.3 is attached. **
Apr 17 17:07:55 R4 dhcpd:
Apr 17 17:07:55 R4 dhcpd:
Apr 17 17:07:55 R4 dhcpd: Not configured to listen on any interfaces!
woitek.d
Posty: 23
Rejestracja: 08 sierpnia 2010, 14:49

Post autor: woitek.d »

wydaje mi się że interfejs eth3.3 powinien być w sieci 192.168.3.0 i wtedy bedzie działać.
mariaczi
Member
Posty: 1343
Rejestracja: 08 lutego 2008, 12:58
Lokalizacja: localhost@śląskie

Post autor: mariaczi »

Na interfejsie eth3.3 masz podniesioną jeszcze inną adresację oprócz skonfigurowanej. Tak jak dhcp "napisał" w logach masz tam adresację 85.xx.xxx.x/24 oraz 85.xx.xxx.x/22, jak również i 80.xx.xxx.xx/27. Musisz wszystkie te adresacje skonfigurować w shared-network.
Awatar użytkownika
LordRuthwen
Moderator
Posty: 2341
Rejestracja: 18 września 2009, 21:45
Lokalizacja: klikash?

Post autor: LordRuthwen »

Muszę?
Tamte adresacje są statyczne, ja ich nie chcę przez DHCP przydzielać.
mariaczi
Member
Posty: 1343
Rejestracja: 08 lutego 2008, 12:58
Lokalizacja: localhost@śląskie

Post autor: mariaczi »

LordRuthwen pisze:Muszę?
:)
Zdejmij z interfejsu nie skonfigurowane adresacje i zobacz czy dhcp wstanie.
Potem podnieś dodatkowo kolejną adresację (nie konfigurując jej w dhcp) i znów zerknij czy dhcp wstaje.
Skoro to są statyczne IP to w konfiguracji dhcp nie podawaj zakresu, który ma być rozdawany to i nie rozda.
Awatar użytkownika
LordRuthwen
Moderator
Posty: 2341
Rejestracja: 18 września 2009, 21:45
Lokalizacja: klikash?

Post autor: LordRuthwen »

Dziękuję.
Faktycznie wystarczyło dodać do konfiguracji deklaracje sieci w formie:

Kod: Zaznacz cały

subnet xxx.xxx.xxx.xxx netmask yyy.yyy.yyy.yyy {}
Mówiłem, że banał :)
ODPOWIEDZ