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;
}
}
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

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!