LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 05-11-2004, 04:04 PM   #1
rtaft
Member
 
Registered: Aug 2003
Posts: 85

Rep: Reputation: 15
DHCPD and Bluetooth


I am trying to run a dhcp server over Bluetooth. Currently, I have a bluetooth adapter hooked up to a linux box with a hard coded IP of 192.168.3.1. The dhcpd.conf has:

subnet 192.168.3.0 netmask 255.255.255.0 {}

I have the exact same setup for WIFI on 192.168.2.1 and I can connect and get an IP from a Windows machine with WIFI enabled.

I have another Bluetooth adapter on another Windows machine, and have the TCP/IP options set for use DHCP...but I can never get an IP.

If I hard code the windows IP to 192.168.3.2, I can connect over the Bluetooth adapters (ping, http, ftp, etc).

Any ideas how I can get this up and running with DHCP?
 
Old 05-11-2004, 07:03 PM   #2
zaphodiv
Member
 
Registered: Oct 2003
Distribution: Slackware
Posts: 388

Rep: Reputation: 30
Do the logs show any dhcpd related messages?
Can you run a sniffer on the bluetooth interface?
 
Old 05-12-2004, 07:48 AM   #3
rtaft
Member
 
Registered: Aug 2003
Posts: 85

Original Poster
Rep: Reputation: 15
The logs say that it is listeneing to requests on the WIFI, but nothing is there related to the Bluetooth.
 
Old 05-12-2004, 07:54 AM   #4
rtaft
Member
 
Registered: Aug 2003
Posts: 85

Original Poster
Rep: Reputation: 15
/var/log/messages
May 12 08:46:57 SMED dhcpd: Internet Software Consortium DHCP Server V3.0.1rc13
May 12 08:46:57 SMED dhcpd: Copyright 1995-2003 Internet Software Consortium.
May 12 08:46:57 SMED dhcpd: All rights reserved.
May 12 08:46:57 SMED dhcpd: For info, please visit http://www.isc.org/products/DHCP
May 12 08:46:57 SMED dhcpd: Internet Software Consortium DHCP Server V3.0.1rc13
May 12 08:46:57 SMED dhcpd: Copyright 1995-2003 Internet Software Consortium.
May 12 08:46:57 SMED dhcpd: All rights reserved.
May 12 08:46:57 SMED dhcpd: For info, please visit http://www.isc.org/products/DHCP
May 12 08:46:57 SMED dhcpd: Internet Software Consortium DHCP Server V3.0.1rc13
May 12 08:46:57 SMED dhcpd: Copyright 1995-2003 Internet Software Consortium.
May 12 08:46:57 SMED dhcpd: All rights reserved.
May 12 08:46:57 SMED dhcpd: For info, please visit http://www.isc.org/products/DHCP
May 12 08:46:57 SMED dhcpd: Wrote 0 leases to leases file.
May 12 08:46:57 SMED dhcpd: Wrote 0 leases to leases file.
May 12 08:46:57 SMED dhcpd: Listening on LPF/wlan0/00:09:5b:40:bc:65/192.168.2.0/24
May 12 08:46:57 SMED dhcpd: Sending on LPF/wlan0/00:09:5b:40:bc:65/192.168.2.0/24
May 12 08:46:57 SMED dhcpd: Sending on Socket/fallback/fallback-net
May 12 08:46:57 SMED dhcpd:
May 12 08:46:57 SMED dhcpd: Listening on LPF/wlan0/00:09:5b:40:bc:65/192.168.2.0/24
May 12 08:46:57 SMED dhcpd: Sending on LPF/wlan0/00:09:5b:40:bc:65/192.168.2.0/24
May 12 08:46:57 SMED dhcpd: Sending on Socket/fallback/fallback-net
May 12 08:46:57 SMED dhcpd: dhcpd startup succeeded

ifconfig
bnep0 Link encap:Ethernet HWaddr 00:0F:3D:0B:FB3
inet addr:192.168.3.1 Bcast:192.168.3.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:118 errors:0 dropped:0 overruns:0 frame:0
TX packets:54 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:21285 (20.7 Kb) TX bytes:7974 (7.7 Kb)

eth0 Link encap:Ethernet HWaddr 00:50:BF:38:81:61
inet addr:172.19.3.137 Bcast:172.19.3.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:3379 errors:0 dropped:0 overruns:0 frame:0
TX packets:295 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:355690 (347.3 Kb) TX bytes:28896 (28.2 Kb)
Interrupt:11 Base address:0x4000

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:21443 errors:0 dropped:0 overruns:0 frame:0
TX packets:21443 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1463768 (1.3 Mb) TX bytes:1463768 (1.3 Mb)

wlan0 Link encap:Ethernet HWaddr 00:09:5B:40:BC:65
inet addr:192.168.2.1 Bcast:192.168.2.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:55 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:0 (0.0 b) TX bytes:11269 (11.0 Kb)
Interrupt:11 Memory:c8892000-c8893000

/etc/dhcpd/dhcpd.conf
# dhcpd.conf
#
# Sample configuration file for ISC dhcpd
#

# option definitions common to all supported networks...
option domain-name "SMED";
#option domain-name-servers ns1.example.org, ns2.example.org;
ddns-update-style none;
default-lease-time 600;
max-lease-time 7200;

# If this DHCP server is the official DHCP server for the local
# network, the authoritative directive should be uncommented.
#authoritative;

# Use this to send dhcp log messages to a different log file (you also
# have to hack syslog.conf to complete the redirection).
log-facility local7;

# No service will be given on this subnet, but declaring it helps the
# DHCP server to understand the network topology.

subnet 192.168.0.0 netmask 255.255.255.0 {
}

#subnet 192.168.1.0 netmask 255.255.255.0 {
#}

# This is a very basic subnet declaration.

subnet 192.168.2.0 netmask 255.255.255.0 {

}

subnet 192.168.3.0 netmask 255.255.255.0 {

}

Last edited by rtaft; 05-12-2004 at 08:01 AM.
 
Old 05-12-2004, 08:55 AM   #5
rtaft
Member
 
Registered: Aug 2003
Posts: 85

Original Poster
Rep: Reputation: 15
OK, I figured part of it out. I didn't have bnep0 in /etc/init.d/dhcpd. Now I get this message:

May 12 09:46:50 SMED dhcpd: DHCPDISCOVER from 00:0f:3d:0b:fe:43 via bnep0: network 192.168.3.0/24: no free leases
 
Old 05-12-2004, 09:12 AM   #6
rtaft
Member
 
Registered: Aug 2003
Posts: 85

Original Poster
Rep: Reputation: 15
I got it!
I never specified a range, which is why i was getting the lease error.
 
  


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
dhcpd subnet declaration problems in dhcpd.conf vcrispo Linux - Networking 6 07-15-2005 10:32 AM
DHCPD startup failure, mdk 9.2, dhcpd v3.0.1rc11 fuzzyworm Linux - Networking 1 02-14-2004 03:58 AM
DHCPD help!! phishman3579 Slackware 3 06-02-2003 10:28 AM
dhcpd campbellop Linux - Networking 2 06-20-2002 03:14 AM
dhcpd.master or dhcpd.conf rickg Linux - Networking 0 04-11-2002 03:34 PM

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

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