You are not logged in.

#1 2008-05-24 19:43:50

Gauvenator
Member
Registered: 2008-04-03
Posts: 172

how to find subnet and netmask?

Question in the title.  I need to know to setup my dhcpd server...

Last edited by Gauvenator (2008-05-24 19:44:03)

Offline

#2 2008-05-24 20:07:20

skymt
Member
Registered: 2006-11-27
Posts: 443

Re: how to find subnet and netmask?

The long answer involves a lot of math.

The short answer is to pick one of these two networks reserved for private use:

* Subnet: 192.168.0.0, netmask = 255.255.0.0, example IP: 192.168.1.42
* Subnet: 10.0.0.0, netmask = 255.0.0.0, example IP: 10.2.5.99

I use and recommend the second, simply because it's easier to type. smile

[Edit: fixed brain-fart. No offense taken, tomk!]

Last edited by skymt (2008-05-26 15:05:30)

Offline

#3 2008-05-24 20:31:45

Gauvenator
Member
Registered: 2008-04-03
Posts: 172

Re: how to find subnet and netmask?

skymt wrote:

The long answer involves a lot of math.

The short answer is to pick one of these two networks reserved for private use:

* Subnet: 192.168.0.0, netmask = 0.0.255.255, example IP: 192.168.1.42
* Subnet: 10.0.0.0, netmask = 0.255.255.255, example IP: 10.2.5.99

I use and recommend the second, simply because it's easier to type. smile

I tried the 2nd and I get this error when starting dhcpd:

/etc/dhcpd.conf line 3: subnet 10.0.0.0 netmask 0.255.255.255: bad subnet number/mask combination.
subnet 10.0.0.0 netmask 0.255.255.255 
                                  ^
Configuration file errors encountered -- exiting

Sure you didn't mean 255.255.255.0?

Last edited by Gauvenator (2008-05-24 20:36:01)

Offline

#4 2008-05-24 20:43:35

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: how to find subnet and netmask?

skymt - no offense, but your masks are the wrong way around.

Gavenator, try subnet 10.0.0.0 netmask 255.0.0.0, or better still netmask 255.255.255.0 (I recommend this one, because I'm guessing you're unlikely to have 1677214 individual hosts on your network tongue )

Offline

#5 2008-05-24 20:44:05

hacosta
Member
From: Mexico
Registered: 2006-10-22
Posts: 423

Re: how to find subnet and netmask?

no, he probably meant 255.0.0.0
**edit, tomk beat me to it

Last edited by hacosta (2008-05-24 20:44:31)

Offline

#6 2008-05-24 20:52:48

Gauvenator
Member
Registered: 2008-04-03
Posts: 172

Re: how to find subnet and netmask?

tomk wrote:

skymt - no offense, but your masks are the wrong way around.

Gavenator, try subnet 10.0.0.0 netmask 255.0.0.0, or better still netmask 255.255.255.0 (I recommend this one, because I'm guessing you're unlikely to have 1677214 individual hosts on your network tongue )

thx that worked better. big_smile

but now I'm like OH NOES!!11 again because apparently I need a subnet declaration for wlan0. hmm

setting up for thin clients is taking alot of work lol

Offline

#7 2008-05-26 10:30:23

WiLLiE
Member
From: Sweden
Registered: 2005-02-27
Posts: 135

Re: how to find subnet and netmask?

Why not put your new DHCP-server to use??
Gateway: 10.0.0.0
DNS: 10.0.0.0

If you want to do it manually, just increase the subnet.
So if you have 10.0.0.0 for your dns server, you could use 10.0.0.1 etc. Same netmask.

Offline

Board footer

Powered by FluxBB