LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 09-25-2015, 04:11 AM   #1
aflyfish
LQ Newbie
 
Registered: Sep 2015
Posts: 1

Rep: Reputation: Disabled
Linux DHCP for multiple subnet


http://ppt.cc/FED5G



vlan10---->firewall----->linux dhcp server
vlan20---------↑

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 192.168.10.0 netmask 255.255.255.0 {
option subnet-mask 255.255.255.0;
option broadcast-address 192.168.10.255;
option domain-name-servers 192.168.8.248,192.168.8.246;
option routers 192.168.10.1;
allow unknown-clients;
range 192.168.10.11 192.168.10.210;
}

subnet 192.168.20.0 netmask 255.255.255.0 {
option subnet-mask 255.255.255.0;
option broadcast-address 192.168.20.255;
option domain-name-servers 192.168.8.248,192.168.8.246;
option routers 192.168.20.1;
deny unknown-clients;
range 192.168.20.11 192.168.20.210;
}

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

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

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

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...
 
  


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
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

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

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