LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 03-02-2006, 12:01 PM   #1
cap_ahab
LQ Newbie
 
Registered: Dec 2005
Posts: 15

Rep: Reputation: 0
Need help setting up 2nd NIC for DHCPd


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;
}
}
 
Old 03-02-2006, 06:13 PM   #2
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
Quote:
Originally Posted by cap_ahab
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
192.168.0.255 is the broadcast address for that subnet, so it shouldn't be used as a client IP... edit your address range in dhcpd.conf making sure that the range doesn't go higher than 192.168.0.254 (you'll need to restart the daemon for the change to kick-in)...

Last edited by win32sux; 03-02-2006 at 06:15 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
2nd NIC? Cornholio Slackware 3 04-25-2005 10:17 AM
dhcpd errors on non-dhcp NIC Gsee Linux - General 8 01-07-2005 05:05 PM
1st nic regular FTP, 2nd nic SSH Riselong Linux - Distributions 2 02-02-2004 05:13 PM
dhcpd.conf and 2nd NIC problem KowCiller Linux - Networking 4 07-05-2003 08:01 PM
dual nic and dhcpd blanny Linux - Networking 1 02-04-2003 05:36 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 09:53 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration