[NBLUG/talk] Networking newbie

Dean A. Roman droman at romansys.com
Tue Jan 10 09:37:33 PST 2006


Looks like your subnet definition is incorrect...

Try using:

subnet _*10.0.0.0*_ netmask 255.255.255.0 {
        range 10.0.0.150 10.0.0.200;
}


The subnet number and the subnet mask need to match.  The mask describes 
what portion of the IP number should be used for the network portion and 
the host portion.  When you specify a subnet your talking about the 
entire section of network that your systems will connect to.
As an example, you can think of it as an area code...the subnet mask 
tells dhcpd what portion of your phone number is your area code.

You specified 10.0.0.12 for the network(which would require a 
255.255.255.255 mask and is a network of 1 computer), then you specified 
a 255.255.255.0 subnet mask).
Your dhcpd server machine(10.0.0.12) should be configured with a static 
IP address.
Your range is fine, it can be anything within the allowable subnet range 
that you want it to be.

Not that anybody uses class for describing IP ranges anymore, not since 
classless routing caught on, but here is a small example:
   192.168.10.0/255.255.255.0  (class C, 256 IP subnet, minus the 
network number and broadcast number)
   192.168.0.0/255.255.0.0  (class B, 65536 IP subnet, minus the network 
number and broadcast number)

If you had gone with something easier to configure(that does it for 
you), then you never would have learned about subnets :-)   ...

I hope that help...Thanks,
    ---Dean.




A'fish'ionado wrote:

>Hello,
>
>The idea behind having the connection routed through one box was to
>only have to configure a firewall at one place. I'd rather not have to
>go through and install firewalls on the rest of the family's Win98
>boxen. :-P
>
>I would *love* to go with Sonic.net, but the $30/month (after the
>first six months) is more than my parents are going to pay, and since
>I'm not paying for anything right now (no job... anybody wanna hire an
>intern to code this summer?), I don't get to make that decision.
>
>Now, to see if I have any idea what I'm doing, I grabbed a Netgear hub
>from the Computer Recycling Center, and tried to network two Debian
>boxen together. I didn't find a DHCP server installed by default
>(natch, it's Debian, so it's not plug-n-play), so I fired up Aptitude
>and grabbed the dhcp3 client and daemon.
>
>I Googled for instructions, and got part way to a working system. :-)
>ifconfig -a showed, among other things:
>
>eth0      Link encap:Ethernet  HWaddr 00:50:8D:53:57:B3
>          inet addr:10.0.0.12  Bcast:10.255.255.255  Mask:255.255.255.0
>          inet6 addr: fe80::250:8dff:fe53:57b3/64 Scope:Link
>          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
>          TX packets:5 errors:0 dropped:0 overruns:0 carrier:0
>          collisions:0 txqueuelen:1000
>          RX bytes:0 (0.0 b)  TX bytes:378 (378.0 b)
>          Interrupt:201 Base address:0xc000
>
>So, this went into /etc/dhcp3/dhcpd.conf:
>
>subnet 10.0.0.12 netmask 255.255.255.000 {
>        range 10.0.0.150 10.0.0.200;
>}
>
>(I get a syntax error without the three zeroes at the end of
>255.255.255.000; I also need to check some more and see if the range I
>specified is really sane.) /etc/init.d/dhcp3-server start crashes;
>/var/log/syslog says:
>
>Jan 10 00:46:27 localhost dhcpd: /etc/dhcp3/dhcpd.conf line 41: subnet
>10.0.0.12 netmask 255.0.0.0: bad subnet number/mask combination.
>Jan 10 00:46:27 localhost dhcpd: subnet 10.0.0.12 netmask 255.0.0.000
>Jan 10 00:46:27 localhost dhcpd:                                  ^
>Jan 10 00:46:27 localhost dhcpd: Configuration file errors encountered
>-- exiting
>
>Okay... I found some articles that "explain netmasks", but they don't
>really go beyond explaining boolean math and binary numbers. :-P I
>already knew that. I want to know why this number/mask combination is
>"bad"!
>
>So, anybody want to point me in the right direction? Would DHCP 2 have
>been easier to set up? Should I have just done the sane thing and
>tried SuSE or Ubuntu? :-) (I have Slackware, too, but I would be
>surprised if *it's* easier to configure... )
>
>Speaking of Slackware, I finally figured out why Slackware has such a
>reputation as being hard: The package management system freaking
>DOESN'T SUPPORT DEPENDENCIES! Sorry, that's not for me. :-P I'd
>*never* survive without dependencies...
>
>William
>
>_______________________________________________
>talk mailing list
>talk at nblug.org
>http://nblug.org/cgi-bin/mailman/listinfo/talk
>
>
>  
>

-- 
Dean A. Roman
President
Roman Computer Systems
Office: 707-237-6798
Fax   : 707-237-2649
E-mail: droman at romansys.com
Web   : http://www.romansys.com


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://nblug.org/pipermail/talk/attachments/20060110/0fbde700/attachment.html


More information about the talk mailing list