CentOS 7 DHCP.CONF

Issues related to configuring your network
Post Reply
loveLinux
Posts: 1
Joined: 2017/07/29 19:38:52

CentOS 7 DHCP.CONF

Post by loveLinux » 2017/07/29 19:41:40

Can you please let me where i missed semicolon ,i could not find it but it keep on saying /etc/dhcp/dhcpd.conf line 7: semicolon expected. option domain-name ��


authoritative;
default-lease-time 3600;
max-lease-time 7200;
subnet 192.168.2.0 netmask 255.255.255.0 {
option routers 192.168.2.1;
option subnet-mask 255.255.255.0;
option domain-name “Freewifi”;
option domain-name-servers 8.8.8.8;
range 192.168.2.2 192.168.2.40;
}

lightman47
Posts: 1521
Joined: 2014/05/21 20:16:00
Location: Central New York, USA

Re: CentOS 7 DHCP.CONF

Post by lightman47 » 2017/07/30 14:27:56

My uneducated guess would be that those quotation marks in line 7 are throwing for a loop.

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: CentOS 7 DHCP.CONF

Post by TrevorH » 2017/07/30 14:30:35

Or perhaps it's expecting a real domain name in there not just a name - e.g. "freewifi.local.";
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

servernetworkadmin
Posts: 1
Joined: 2017/08/04 05:52:45

Re: CentOS 7 DHCP.CONF

Post by servernetworkadmin » 2017/08/04 06:00:27

Hey,

Try to use option domain-name "Freewifi";
instead of option domain-name “Freewifi”;

I think there is some issue with inverted commas that are used for this line. use " this not “ this.
or try to print the same using your keyboard.

BR,

Post Reply