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 08-18-2009, 08:53 AM   #1
benjalien
Member
 
Registered: Aug 2003
Location: Belgium
Distribution: Debian (i686/ppc/amd64)
Posts: 86

Rep: Reputation: 15
DHCP: Two subnets and some machines on both


Hi everyone,

I have two separate subnets (192.168.2.0/24 and 192.168.8.1/24) and I would like my DHCP to give some machines (including mine) a 192.168.2.X address using a 255.255.0.0 subnet so I can access both, but not everyone should!

My gues was to do something like

host Benja{
hardware ethernet XXXXXX;
fixed-address 192.168.2.22;
fixed-netmask 255.255.0.0;
}

but it doesn't work...

Any idea?

Thanks!
 
Old 08-18-2009, 12:02 PM   #2
Person_1873
Member
 
Registered: Sep 2007
Location: Australia
Distribution: Gentoo / Debian / Rasbian / Proxmox
Posts: 519

Rep: Reputation: 44
is your DHCP server an embedded device such as a router or is it a dedicated machine?
 
Old 08-18-2009, 04:23 PM   #3
benjalien
Member
 
Registered: Aug 2003
Location: Belgium
Distribution: Debian (i686/ppc/amd64)
Posts: 86

Original Poster
Rep: Reputation: 15
Oups, indeed I forgot to mention that I'm usung the classic Debian DHCP server
 
Old 08-19-2009, 06:31 AM   #4
Person_1873
Member
 
Registered: Sep 2007
Location: Australia
Distribution: Gentoo / Debian / Rasbian / Proxmox
Posts: 519

Rep: Reputation: 44
in that case i am unfamiliar with it sorry for the hastle
 
Old 08-21-2009, 03:15 AM   #5
benjalien
Member
 
Registered: Aug 2003
Location: Belgium
Distribution: Debian (i686/ppc/amd64)
Posts: 86

Original Poster
Rep: Reputation: 15
Solved!

Ok, I've got it (from a friend of mine)

host benja{
hardware ethernet 00:1e:37:XX:XX:XX;
fixed-address benja.localdomain;
option subnet-mask 255.255.0.0;
}
 
  


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 subnets klnasveschuk Linux - Networking 2 11-17-2007 11:04 PM
DHCP on multiple subnets PcHammer Linux - Networking 2 10-11-2007 04:01 AM
DHCP for 2 subnets omlex Linux - Networking 11 03-04-2007 06:41 PM
Machines on different subnets / static IPs natv Linux - Networking 4 02-04-2007 02:34 PM
2 x Subnets 2 x DHCP Authority? vaworx Linux - Networking 0 07-17-2006 05:24 AM

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

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