Hi there,
on a Linux Redhat 7.3 system, I have to network cards installed. The first is (eth0) is connected to the internet via a static IP address, and I would like to make the second one (eth1) available to other computers using a DHCP server, so that they can access the internet via a router.The other computers are Windows computers.
I basically followed the protocol available on
http://www.tldp.org/HOWTO/DHCP/x369.html, that is:
introduced 255.255.255.255 all-ones in /etc/hosts
and then copied the sample dhcpd.conf file in /usr/share/doc/dhcp-3.0pl1/dhcpd.conf.sample over to /etc/dhcpd.conf, however I did not do any modifications on it.
Following this, I started the server: /usr/sbin/dhcpd eth1
and included the same command in the startup file /etc/rc.local to make it available during next boot up.
Now the Windows machine has been setup for DHCP, and it gets an IP address assigned, however I cannot connect to the internet. A lease file has been created on the Linux machine in /var/lib/dhcp/dhcpd.leases, which reads the following:
more /var/lib/dhcp/dhcpd.leases
# All times in this file are in UTC (GMT), not your local timezone. This is
# not a bug, so please don't ask about it. There is no portable way to
# store leases in the local timezone, so please don't request this as a
# feature. If this is inconvenient or confusing to you, we sincerely
# apologize. Seriously, though - don't ask.
# The format of this file is documented in the dhcpd.leases(5) manual page.
# This lease file was written by isc-dhcp-V3.0pl1
lease 192.168.0.255 {
starts 4 2006/03/02 17:19:45;
ends 4 2006/03/02 23:19:45;
tstp 4 2006/03/02 23:19:45;
binding state active;
next binding state free;
hardware ethernet 00:0f:1f:c5:09:3a;
uid "\001\000\017\037\305\011:";
client-hostname "BP-CUFF";
I Windows, I get the following entry in the Network connections --> Support tab:
Address type: Assigned by DHCP
IP Address: 192.168.0.255
Subnet Mask: 255.255.255.0
Default Gateway: 192.168.0.1
What am I doing wrong? May there some adaptations to be done in the /etc/dhcpd.conf file, which I have not done?
Thank you very much in advance for any help solving the problem.
PS: Here is the /etc/dhcpd.conf file:
ddns-update-style interim;
ignore client-updates;
subnet 192.168.0.0 netmask 255.255.255.0 {
# --- default gateway
option routers 192.168.0.1;
option subnet-mask 255.255.255.0;
option nis-domain "domain.org";
option domain-name "domain.org";
option domain-name-servers 192.168.1.1;
option time-offset -18000; # Eastern Standard Time
# option ntp-servers 192.168.1.1;
# option netbios-name-servers 192.168.1.1;
# --- Selects point-to-point node (default is hybrid). Don't change this unless
# -- you understand Netbios very well
# option netbios-node-type 2;
range dynamic-bootp 192.168.0.128 192.168.0.255;
default-lease-time 21600;
max-lease-time 43200;
# we want the nameserver to appear at a fixed address
host ns {
next-server marvin.redhat.com;
hardware ethernet 12:34:56:78:AB:CD;
fixed-address 207.175.42.254;
}
}