LinuxQuestions.org
Review your favorite Linux distribution.
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 02-01-2016, 02:16 PM   #1
paziulek
Member
 
Registered: Mar 2009
Location: N.C.
Distribution: "gentoo|debian|arch"
Posts: 106

Rep: Reputation: 11
cannot get dhcpd to listen on a specific interface


Hi,

I have added a VLAN to my home "project", got a 5324 Dell switch configured, a client system is able to communicate with the outside world via the Debian router.
Now I am trying to get dhcpd to listen on eth3.222 ( 10.222.2.1 ), it starts with afaik proper parameters, but netstat still does not show the values I'd expect - it only listens on eth3:

Code:
tcp        0      0 10.0.0.1:647            0.0.0.0:*               LISTEN      23841/dhcpd
ps shows:
Code:
root     23841     1  0 Jan31 ?        00:00:02 /usr/sbin/dhcpd -q -cf /etc/dhcp/dhcpd.conf -pf /var/run/dhcpd.pid eth3 eth3.222
/etc/default/isc-dhcp-server: ( only one line active )
Code:
INTERFACES="eth3 eth3.222"
dhcpd.conf section that "should" be controlling the vlan network 10.222.2.0/24:
Code:
subnet 10.222.2.0 netmask 255.255.255.0 {
        #interface "eth3.222";
        option subnet-mask 255.255.255.0;
        option broadcast-address 10.222.2.255;
        option routers 10.222.2.1;
        option domain-name-servers x.x.x.x, x.x.x.x;
        allow unknown-clients;
        option domain-name "home222.local";
        pool {
               max-lease-time 600000;
               range 10.222.2.201 10.222.2.205;
        }
}
I commented out the "interface" line, to see if there is any difference... no change.
also, I had to wrap eth3.222 in double-quotes because dhcpd was failing to start. ( it does not like the (.) - it expects semicolon. )

active interfaces:
Code:
edge0       Link encap:Ethernet  HWaddr ha:00:ha:00:ha:ha
eth2        Link encap:Ethernet  HWaddr 00:1b:78:5c:ca:3e
eth3        Link encap:Ethernet  HWaddr 00:1b:78:5c:ca:3f
eth3.222    Link encap:Ethernet  HWaddr 00:1b:78:5c:ca:3f
lo          Link encap:Local Loopback
ppp0        Link encap:Point-to-Point Protocol
dhcpd : 4.3.1
system: 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt9-2

I cannot figure out what else could I miss.

Any suggestions are appreciated.


Mike

Last edited by paziulek; 02-01-2016 at 02:18 PM.
 
Old 02-01-2016, 06:35 PM   #2
paziulek
Member
 
Registered: Mar 2009
Location: N.C.
Distribution: "gentoo|debian|arch"
Posts: 106

Original Poster
Rep: Reputation: 11
I looked at this again - this is the failover port that the dhcpd is configured for - it does communicate with its peer... only on 10.0.0.1 interface. I am not sure what made me think and say "listen on", if these are tcp ports anyway... so called brain fart.

Code:
tcp        0      0 10.0.0.1:647            0.0.0.0:*               LISTEN      28094/dhcpd     
tcp        0      0 10.0.0.1:28539          10.0.0.111:647          ESTABLISHED 28094/dhcpd

everything seems to be configured fine, but the system is still not able to get an IP address on the vlan 222.. tcpdump will be my next step.
( sorry for polluting the board )
 
  


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
RedHat: dhcpd.conf - error: Not configured to listen on any interfaces! alinuxLQ Linux - Networking 8 11-05-2015 06:00 PM
VNC listen specific interface Shwick Linux - Server 5 12-07-2008 06:16 PM
Making dhcpd listen to unplugged NIC Steamrunner Linux - Networking 4 07-25-2005 04:53 AM
dhcpd - Not configured to listen on any interfaces. ritter Linux - Networking 1 07-05-2004 03:48 PM
Can SSH Telnet listen for specific IP? tikvah Linux - Security 2 01-19-2003 10:00 AM

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

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