Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 09-25-2015, 04:11 AM   #1
LQ Newbie
Registered: Sep 2015
Posts: 1

Rep: Reputation: Disabled
Linux DHCP for multiple subnet

vlan10---->firewall----->linux dhcp server

I have two vlan(vlan10 and vlan20), and I would like to use Linux DHCP server to centralize IP address designation.

In fortigate firewall i use dhcp relay for client get dhcp ip,

in linux dhcp server i use [host] section to limit client get static ip and allow known hosts to get dymanic ip.
#### config start

subnet netmask {
option subnet-mask;
option broadcast-address;
option domain-name-servers,;
option routers;
allow unknown-clients;

subnet netmask {
option subnet-mask;
option broadcast-address;
option domain-name-servers,;
option routers;
deny unknown-clients;

host host1 { hardware ethernet 11:11:11:11:11:11; fixed-address; }

host host2 { hardware ethernet 22:22:22:22:22:22; fixed-address; }

host host3 { hardware ethernet 33:33:33:33:33:33; fixed-address; }

host host4 { hardware ethernet 44:44:44:44:44:44; }
#### config end #########

in this configuration, all clients can get ip from vlan10 or vlan20...

but i want host4 can get dynamic ip in vlan20 only.

when host4 connect to vlan10, host4 cannot get any ip address from

dhcp server...

how to modify the configuration...thanks a lot...


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
DHCP - Creating multiple subnet pools for different hosts fantasygoat Linux - Networking 2 08-04-2010 04:38 PM
How to config DHCP for multiple subnet applebees Linux - Networking 4 06-29-2010 08:11 PM
DHCP problems using multiple external NICs on same subnet Leffster Linux - Networking 2 11-18-2008 11:46 AM
DHCP - Multiple range in 1 subnet??? - Debian Sarge 3.1, DHCP3.0 kenwoodgt Linux - Networking 1 01-24-2008 03:23 PM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:09 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration