Enviado em 03/11/2017 - 17:25h
Olá pessoal.
Preciso de uma ajuda, o seguinte, utilizávamos um servidor de firewall de rede, rodando debian 4, com squid, sarg, então o pessoal resolveu dar um upgrade na maquina e no sistema, instalando o CENTOS 7.
Até ai tudo bem, configurei as interfaces de rede, instalei o iptables, o problema esta no servidor dhcp, configurei mas o servidor não sobe, gera este erro:
● dhcpd.service - DHCPv4 Server Daemon
Loaded: loaded (/usr/lib/systemd/system/dhcpd.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Sex 2017-11-03 17:07:45 -02; 6s ago
Docs: man:dhcpd(8)
man:dhcpd.conf(5)
Main PID: 22024 (code=exited, status=1/FAILURE)
Nov 03 17:07:45 FIREOS.localdomain dhcpd[22024]: it work better with this distribution.
Nov 03 17:07:45 FIREOS.localdomain dhcpd[22024]:
Nov 03 17:07:45 FIREOS.localdomain dhcpd[22024]: Please report for this software via the Cen...e:
Nov 03 17:07:45 FIREOS.localdomain dhcpd[22024]: http://bugs.centos.org/
Nov 03 17:07:45 FIREOS.localdomain dhcpd[22024]:
Nov 03 17:07:45 FIREOS.localdomain dhcpd[22024]: exiting.
Nov 03 17:07:45 FIREOS.localdomain systemd[1]: dhcpd.service: main process exited, code=exit...RE
Nov 03 17:07:45 FIREOS.localdomain systemd[1]: Failed to start DHCPv4 Server Daemon.
Nov 03 17:07:45 FIREOS.localdomain systemd[1]: Unit dhcpd.service entered failed state.
Nov 03 17:07:45 FIREOS.localdomain systemd[1]: dhcpd.service failed.
configuração das interfaces:
2: enp2s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
link/ether 50:e5:49:xx:xx:xx brd ff:ff:ff:ff:ff:ff
inet 192.168.0.20/24 brd 192.168.0.255 scope global enp2s0
valid_lft forever preferred_lft forever
inet6 fe80::51d5:51a3:bacc:3a1d/64 scope link
valid_lft forever preferred_lft forever
3: enp3s0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast state DOWN qlen 1000
link/ether 1c:7e:e5:xx:xx:xx brd ff:ff:ff:ff:ff:ff
inet 192.168.2.2/24 brd 192.168.2.255 scope global enp3s0
valid_lft forever preferred_lft forever
inet6 fe80::bf7f:7890:7604:d522/64 scope link tentative
valid_lft forever preferred_lft forever
config do DHCP.conf:
# # Configuration file for ISC dhcpd (see 'man dhcpd.conf')
# #
authoritative;
#
option domain-name "FIREOS";
default-lease-time 600;
max-lease-time 7200;
#
subnet 192.168.10.0 netmask 255.255.255.0 {
range 192.168.10.1 192.168.10.200;
option routers 192.168.10.1;
option broadcast-address 192.168.10.255;
option domain-name-servers 8.8.8.8, 8.8.4.4;
}
#
# option domain-name "redelocal"; #Não configurei domínio, preciso ter essa linha?
option routers 192.168.1.1; #IP do roteador
# O IP da DHCP Server é 192.168.1.2
#
# No cliente está
auto enp3s0
allow-hotplug enp3s0
iface enp3s0 inet dhcp
~
Preciso de uma ajuda, o seguinte, utilizávamos um servidor de firewall de rede, rodando debian 4, com squid, sarg, então o pessoal resolveu dar um upgrade na maquina e no sistema, instalando o CENTOS 7.
Até ai tudo bem, configurei as interfaces de rede, instalei o iptables, o problema esta no servidor dhcp, configurei mas o servidor não sobe, gera este erro:
● dhcpd.service - DHCPv4 Server Daemon
Loaded: loaded (/usr/lib/systemd/system/dhcpd.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Sex 2017-11-03 17:07:45 -02; 6s ago
Docs: man:dhcpd(8)
man:dhcpd.conf(5)
Main PID: 22024 (code=exited, status=1/FAILURE)
Nov 03 17:07:45 FIREOS.localdomain dhcpd[22024]: it work better with this distribution.
Nov 03 17:07:45 FIREOS.localdomain dhcpd[22024]:
Nov 03 17:07:45 FIREOS.localdomain dhcpd[22024]: Please report for this software via the Cen...e:
Nov 03 17:07:45 FIREOS.localdomain dhcpd[22024]: http://bugs.centos.org/
Nov 03 17:07:45 FIREOS.localdomain dhcpd[22024]:
Nov 03 17:07:45 FIREOS.localdomain dhcpd[22024]: exiting.
Nov 03 17:07:45 FIREOS.localdomain systemd[1]: dhcpd.service: main process exited, code=exit...RE
Nov 03 17:07:45 FIREOS.localdomain systemd[1]: Failed to start DHCPv4 Server Daemon.
Nov 03 17:07:45 FIREOS.localdomain systemd[1]: Unit dhcpd.service entered failed state.
Nov 03 17:07:45 FIREOS.localdomain systemd[1]: dhcpd.service failed.
configuração das interfaces:
2: enp2s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
link/ether 50:e5:49:xx:xx:xx brd ff:ff:ff:ff:ff:ff
inet 192.168.0.20/24 brd 192.168.0.255 scope global enp2s0
valid_lft forever preferred_lft forever
inet6 fe80::51d5:51a3:bacc:3a1d/64 scope link
valid_lft forever preferred_lft forever
3: enp3s0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast state DOWN qlen 1000
link/ether 1c:7e:e5:xx:xx:xx brd ff:ff:ff:ff:ff:ff
inet 192.168.2.2/24 brd 192.168.2.255 scope global enp3s0
valid_lft forever preferred_lft forever
inet6 fe80::bf7f:7890:7604:d522/64 scope link tentative
valid_lft forever preferred_lft forever
config do DHCP.conf:
# # Configuration file for ISC dhcpd (see 'man dhcpd.conf')
# #
authoritative;
#
option domain-name "FIREOS";
default-lease-time 600;
max-lease-time 7200;
#
subnet 192.168.10.0 netmask 255.255.255.0 {
range 192.168.10.1 192.168.10.200;
option routers 192.168.10.1;
option broadcast-address 192.168.10.255;
option domain-name-servers 8.8.8.8, 8.8.4.4;
}
#
# option domain-name "redelocal"; #Não configurei domínio, preciso ter essa linha?
option routers 192.168.1.1; #IP do roteador
# O IP da DHCP Server é 192.168.1.2
#
# No cliente está
auto enp3s0
allow-hotplug enp3s0
iface enp3s0 inet dhcp
~