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 06-25-2010, 04:31 PM   #1
systemlordanubis
Member
 
Registered: Jun 2010
Distribution: Debian, Ubuntu, Win
Posts: 143

Rep: Reputation: 16
DHCP offers not being limiting to specified vlan interface on debian.


Hi All,

I have configured dhcp3-server on my debian box and I'm wanting to offer dhcp on one of the vlan interfaces. The dhcp is functioning but when I test applying it to a different vlan, the original PC can still get an IP.

For example:
eth1 has vlan100 and vlan200. Our managed switch has the ports configured such the pc1 is on vlan100 and pc2 is on vlan2. This works fine and I can inter-route between vlans with static IPs.

Our dhcp config is currently set as:


ping-check true;
ddns-update-style none;
default-lease-time 21600;
max-lease-time 86400;
INTERFACES="vlan100";
authoritative;

subnet 192.168.0.0 netmask 255.255.255.0 {
range 192.168.0.1 192.168.0.250;
option domain-name-servers 192.168.0.254;
option routers 192.168.0.254;
option broadcast-address 192.168.0.255;
option subnet-mask 255.255.255.0;
}


I've researched this issue but can't find a definative answer?

Thanks
Anubis.
 
Old 06-26-2010, 12:48 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
well your config only has one subnet, are you running the same subnet on two vlan's?? I really hope not. As for what else is wrong, you can see that the INTERFACES line looks totally diffferent from the other lines doesn't it? It does not belong in that file at all, infact I'd have thought that it'd stop DHCPD loading at all as the symtax is totally illegal there. I assume it goes in /etc/sysconfig/dhpcd or similar, something that will be directly turned into a command line argument, not a config inside the program.
 
Old 06-27-2010, 01:12 AM   #3
systemlordanubis
Member
 
Registered: Jun 2010
Distribution: Debian, Ubuntu, Win
Posts: 143

Original Poster
Rep: Reputation: 16
Hi Chris,

Thanks for your reply.

I've now added the additional subnets for all of the applicable network interfaces and just by this it is now doing what it should be doing.

I found the 'INTERFACES' part in another forum thread and thought I'd try it. I too find it strange that it allowed the daemon to start properly and it didn't throw up any errors in the syslog. However I've now removed it anyway as it had (obviously) no effect.

Thanks again for your help.
Anubis.
 
  


Reply

Tags
debian, dhcp, vlan



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
Route non-vlan packet to a vlan interface mic.sed Linux - Networking 2 04-23-2010 02:39 AM
Failed to remove VLAN interface. kanth001 Linux - Networking 1 03-01-2010 03:01 AM
No DHCP Offers with Debian ehrenbrav Linux - Networking 9 08-20-2009 09:03 PM
Help in Vlan-Interface Paris Heng Linux - Networking 1 03-02-2009 05:20 PM
Using tcpdump on a sub-interface vlan mikeotieno Linux - Networking 3 09-24-2008 01:32 PM

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

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