LinuxQuestions.org
Help answer threads with 0 replies.
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 05-04-2005, 10:32 PM   #1
emetib
Member
 
Registered: Feb 2003
Posts: 484

Rep: Reputation: 33
dhcp server problems, w/ local only app


this is a deb system. so that's the terminology that i'll be using.

what i'm looking at doing is setting up my laptop to act as a dhcp3-server, for one install of a base system. the system that i'm installing to is a soekris box, and will need to use tftpd.

the basic how to that i found on the soekris mailing list, for setting this up, tells me to make sure that my dhcpd server is running properly. so i've been stuck for the last couple of hours trying to figure it out.

the laptop has eth0 (dhcpd server), and ath0 (wireless). i'm testing it out on the workstation's extra nic.

if i put a gateway in the /etc/network/interfaces for eth0, then i get network unreachable when i try and bring up the interface. if i don't have that, then i can bring it up. so i don't have it.
when i do an ifconfig, eth0 is UP BROADCAST MULTICAST, yet no RUNNING.
i don't need this to get to the outside, yet i'm getting nothing for an acknowledgement, DHCPACK, on the workstation.

i don't want to have to set up the dhcp on my server for something that will only be used once, maybe twice at most.

any ideas?
cheers.
 
Old 05-04-2005, 11:12 PM   #2
mjsurette
Member
 
Registered: May 2005
Distribution: spiral, fedora
Posts: 65

Rep: Reputation: 18
I've never set up tftpd, but I have set up a few dhcpd servers. One hint... your eth0 needs to have a static IP if it's going to be a dhcpd server. Gateway should be immaterial.

hth

Mike
 
Old 05-05-2005, 09:23 PM   #3
emetib
Member
 
Registered: Feb 2003
Posts: 484

Original Poster
Rep: Reputation: 33
my nic is set up with a static.

this is the config, /etc/dhcp3/dhcp.conf-
subnet 10.5.5.0 netmask 255.255.255.224 {
range 10.5.5.2 10.5.5.5;
}

the authoritative is set, so i don't have to play with that.

this is the ifconfig-
eth0 Link encap:Ethernet HWaddr 00:10:A4:84:B4:F4
inet addr:10.5.5.1 Bcast:10.5.5.31 Mask:255.255.255.224
inet6 addr: fe80::210:a4ff:fe84:b4f4/64 Scope:Link
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:17 errors:17 dropped:0 overruns:0 carrier:17
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:1350 (1.3 KiB)

and the results of trying to ping the wireless card in the same system.
ping -I eth0 192.168.1.100
PING 192.168.1.100 (192.168.1.100) from 10.5.5.1 eth0: 56(84) bytes of data.
From 10.5.5.1 icmp_seq=1 Destination Host Unreachable
From 10.5.5.1 icmp_seq=2 Destination Host Unreachable
From 10.5.5.1 icmp_seq=3 Destination Host Unreachable

--- 192.168.1.100 ping statistics ---
5 packets transmitted, 0 received, +3 errors, 100% packet loss, time 4004ms
, pipe 3

the results of the wireless trying to ping eth0
ping -I ath0 10.5.5.1
PING 10.5.5.1 (10.5.5.1) from 192.168.1.100 ath0: 56(84) bytes of data.

--- 10.5.5.1 ping statistics ---
7 packets transmitted, 0 received, 100% packet loss, time 5998ms

and since i have set up dhcp servers before also, yet they all had another way out with a similar class c number. this is why it is such a stumper to me.

other thoughts?
cheers.
 
Old 05-05-2005, 10:31 PM   #4
emetib
Member
 
Registered: Feb 2003
Posts: 484

Original Poster
Rep: Reputation: 33
ok, so new problem

May 5 21:25:36 styx dhclient: DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 16
May 5 21:25:52 styx dhclient: DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 7
May 5 21:25:59 styx dhclient: No DHCPOFFERS received.
May 5 21:25:59 styx dhclient: No working leases in persistent database - sleeping.

May 5 21:25:33 localhost dhcpd: DHCPDISCOVER from 00:11:2f:24:fb:c4 via eth0
May 5 21:25:33 localhost dhcpd: DHCPOFFER on 190.5.5.30 to 00:11:2f:24:fb:c4 via eth0
May 5 21:25:49 localhost dhcpd: DHCPDISCOVER from 00:11:2f:24:fb:c4 via eth0
May 5 21:25:49 localhost dhcpd: DHCPOFFER on 190.5.5.30 to 00:11:2f:24:fb:c4 via eth0

so the dhcp server is listening to the discovers, yet no offer is being accepted.
this is really messing me up.

any other thoughts?
cheers.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Problem with an external DHCP server giving address on my local department network atl02wrx Linux - Networking 2 07-12-2005 06:50 AM
Problems concerning DHCP-server on my Debian 3.0r2 server spaceuser Linux - Networking 9 10-17-2004 01:30 PM
local web server behind dhcp router j4b Linux - Networking 10 08-09-2004 11:21 PM
XP Pro Build 2600/sp1 v.1105 DHCP Client to Redhat 8.0 DHCP Server - Problems atomant Linux - Networking 5 06-28-2003 12:24 PM
Local DHCP Server Setup ddepuemd Linux - Newbie 1 05-16-2002 06:46 PM

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

All times are GMT -5. The time now is 09:49 AM.

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