LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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-01-2013, 07:32 AM   #1
orsty9001
Member
 
Registered: Mar 2008
Distribution: Slackware, Mint, Raspbian
Posts: 94

Rep: Reputation: 1
dhcpd across two adapters trouble.


I've got two adapters on two different subnets. The adapter assigned 192.168.1.1 works fine. The other adapter assigned 192.168.10.1 works prefect accept dhcpd won't serve ip addresses over it for some reason. I've tried to open ports 67:68 thinking iptables was blocking it but that didn't work. If I set the ipaddress of the machine that's connecting everything works fine. Also I can ping everything from anywhere on the network. I'm thinking either something is blocking dhcp or dhcpd isn't configured right. Below is a copy of my dhcpd.conf.

Code:
# dhcpd.conf
#
# Configuration file for ISC dhcpd (see 'man dhcpd.conf')
#
#



ddns-update-style none;
authoritative;
log-facility local7;

subnet 192.168.1.0 netmask 255.255.255.0 {
 option routers 192.168.1.1;
 option subnet-mask 255.255.255.0;
 option broadcast-address 192.168.1.255;
 option domain-name-servers 4.2.2.1, 8.8.8.8;
 option domain-name "xxxxxx.xxx";
 default-lease-time 600;
 max-lease-time 7200;
 range 192.168.1.5 192.168.1.254;
}

subnet 192.168.10.0 netmask 255.255.255.0 {
 option routers 192.168.10.1;
 option subnet-mask 255.255.255.0;
 option broadcast-address 192.168.10.255;
 option domain-name-servers 8.8.8.8, 4.2.2.1;
 option domain-name "xxxxxx.xxx";
 default-lease-time 600;
 max-lease-time 7200;
 range 192.168.10.100 192.168.10.254;
}

Last edited by orsty9001; 03-01-2013 at 09:13 AM.
 
Old 03-01-2013, 09:29 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
what is logged to /var/log/messages when you restart the service?

does netstat show it listening on port 67?

what does running "tcpdump -i <interface> -nev port 67" show when you make a request?
 
Old 03-01-2013, 09:34 AM   #3
orsty9001
Member
 
Registered: Mar 2008
Distribution: Slackware, Mint, Raspbian
Posts: 94

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by acid_kewpie View Post
what is logged to /var/log/messages when you restart the service?

does netstat show it listening on port 67?

what does running "tcpdump -i <interface> -nev port 67" show when you make a request?
This is what it displays.

Quote:
10:31:06.283805 6c:62:6d:19:64:c0 > ff:ff:ff:ff:ff:ff, ethertype IPv4 (0x0800), length 342: (tos 0x10, ttl 128, id 0, offset 0, flags [none], proto UDP (17), length 328)
0.0.0.0.68 > 255.255.255.255.67: BOOTP/DHCP, Request from 6c:62:6d:19:64:c0, length 300, xid 0xecfa8749, secs 33, Flags [none]
Client-Ethernet-Address 6c:62:6d:19:64:c0
Vendor-rfc1048 Extensions
Magic Cookie 0x63825363
DHCP-Message Option 53, length 1: Discover
Hostname Option 12, length 12: "netbook-55843"
Parameter-Request Option 55, length 17:
Subnet-Mask, BR, Time-Zone, Default-Gateway
Domain-Name, Domain-Name-Server, Option 119, Hostname
Netbios-Name-Server, Netbios-Scope, MTU, Classless-Static-Route
NTP, Classless-Static-Route, Classless-Static-Route-Microsoft, Option 252
NTP
/var/log/messages

Quote:
Mar 1 10:43:53 devbox dhcpd: Wrote 14 leases to leases file.
Mar 1 10:43:53 devbox dhcpd: Listening on LPF/wlan0/90:f6:52:e5:78:0a/192.168.10.0/24
Mar 1 10:43:53 devbox dhcpd: Sending on LPF/wlan0/90:f6:52:e5:78:0a/192.168.10.0/24
Mar 1 10:43:53 devbox dhcpd: Listening on LPF/eth1/00:04:4b:05:71:77/192.168.1.0/24
Mar 1 10:43:53 devbox dhcpd: Sending on LPF/eth1/00:04:4b:05:71:77/192.168.1.0/24
Mar 1 10:43:53 devbox dhcpd: Sending on Socket/fallback/fallback-net

Last edited by orsty9001; 03-01-2013 at 09:46 AM.
 
Old 03-01-2013, 01:13 PM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
Hmm, so there is no reply packet at all in tcpdump? it's apparently happily listening. What is your iptables ruleset looking like? "iptables -vnL"
 
Old 03-01-2013, 01:24 PM   #5
orsty9001
Member
 
Registered: Mar 2008
Distribution: Slackware, Mint, Raspbian
Posts: 94

Original Poster
Rep: Reputation: 1
Here it is.
 
Old 03-02-2013, 06:33 PM   #6
orsty9001
Member
 
Registered: Mar 2008
Distribution: Slackware, Mint, Raspbian
Posts: 94

Original Poster
Rep: Reputation: 1
It just solved itself. I have no idea what I did or what was done to fix the problem. It just started working while I was looking at something else.
 
  


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
Trouble setting up LAN, dhcpd doesn't start. Mr-Bisquit Linux - Networking 6 10-24-2009 02:18 AM
DHCPD not installed in the default library, gives me trouble namicron Linux - Software 2 05-22-2009 05:45 AM
How to re-invoke dhcpd after changes were made to dhcpd.conf file. Azazwa Linux - Newbie 3 03-30-2009 04:44 AM
DHCPD startup failure, mdk 9.2, dhcpd v3.0.1rc11 fuzzyworm Linux - Networking 1 02-14-2004 03:58 AM

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

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