LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 04-22-2008, 10:58 AM   #1
ncsuapex
Member
 
Registered: Dec 2004
Location: Raleigh, NC
Distribution: CentOS 2.6.18-53.1.4.el5
Posts: 770

Rep: Reputation: 44
isolated network-can't get server to receive a IP via dhcp


I have 2 PCs that I am trying to get to connect on their own isolated network.

PC1: Centos 5. This is my DHCP server
PC2: FC2 this is the PC i am trying to obtain an IP via DHCP.


my dhcpd.conf on PC1 is

# Sample /etc/dhcpd.conf
# (add your comments here)
default-lease-time 600;
max-lease-time 7200;
option subnet-mask 255.255.255.0;
option broadcast-address 192.168.1.255;
option routers 192.168.1.254;
option domain-name-servers 192.168.1.1, 192.168.1.2;
option domain-name "mydomain.org";

subnet 192.168.1.0 netmask 255.255.255.0 {
range 192.168.1.10 192.168.1.100;
range 192.168.1.150 192.168.1.200;
}



The 2 PCs are connected to a 8port Nway switch.
I also tried connecting them to each other with just a cross-over cable.


On PC2 I run system-config-network, set it to DHCP
then run service network restart and it waits a few minutes then FAILS.


What am I doing wrong?

If I set PC2 to a static IP then the 2 PCs can talk to each other. But I need PC1 to be a DHCP server.

DHCPD service is running on PC1

Thanks


UPDATE:

The last line in PC2:/var/log/messages shows
localhost dhclient: No DHCPOFFERS received.


UPDATE2:
connected PC2 back to the main network and ran service network restart and it came back with a DHCP IP. So looks like PC1 is the problem...

Last edited by ncsuapex; 04-22-2008 at 11:58 AM. Reason: .
 
Old 04-22-2008, 01:06 PM   #2
Junior Hacker
Senior Member
 
Registered: Jan 2005
Location: North America
Distribution: Debian testing Mandriva Ubuntu
Posts: 2,687

Rep: Reputation: 61
Although I'm not sure if this will help. I have issues getting an IP on a certain network with Windows on a dual boot with Linux Debian laptop, Debian boots up fine with an IP address, not Windows. To get an IP in Windows, I reset the TCP/IP properties for the interface to not use DHCP and specify an address. Then I check the connection, usually it's good. Then I go back and re-set it to obtain it's address dynamically via DHCP, which it does even after a re-boot.
All the information you will require to specify your own address is in your post, such as the default gateway, subnet-mask, and the range of IP addresses to try, ex. (range 192.168.1.10 192.168.1.100), try 192.168.1.16, if that don't work because another computer uses that address, try something else in that range at random.
 
Old 04-22-2008, 02:48 PM   #3
ncsuapex
Member
 
Registered: Dec 2004
Location: Raleigh, NC
Distribution: CentOS 2.6.18-53.1.4.el5
Posts: 770

Original Poster
Rep: Reputation: 44
this is a windows free isolated network.



BTW.. got it working


changed the dhcpd.conf to this:


ddns-update-style interim;
ignore client-updates;

subnet 192.168.1.0 netmask 255.255.255.0 {

# --- default gateway
option routers 192.168.1.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.1.128 192.168.1.254;
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;
#}
}
 
  


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
network kickstart without dhcp server mancdaz Red Hat 9 01-28-2012 05:38 AM
Stop another dhcp server in network matrics Linux - Networking 1 02-14-2006 10:04 PM
Network Card can't get IP from DHCP server andypoon Linux - Networking 5 04-13-2005 04:13 PM
After an SSH connection with my Debian Server, My windows PC become isolated!!! jimesh Linux - Networking 2 09-08-2004 09:04 AM
Setting up a DHCP server w/ the server on a wireless network Ionexchange Linux - Wireless Networking 0 05-08-2004 10:56 AM

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

All times are GMT -5. The time now is 04:13 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