Part of Slepp's ProjectsPastebinTURLImagebinFilebin
Feedback -- English French German Japanese
Create Upload Newest Tools Donate

Advertising

Stuff
Saturday, November 3rd, 2007 at 11:56:03pm UTC 

  1. Ubuntu 7.10 Gutsy Gibbon
  2. eth0 is good (not the issue here) and its a static ip address
  3. eth1 has a static ip address.
  4.  
  5. eth0      Link encap:Ethernet  HWaddr 00:19:DB:A7:86:E4 
  6.           inet addr:192.168.1.100  Bcast:192.168.1.255  Mask:255.255.255.0
  7.           inet6 addr: fe80::219:dbff:fea7:86e4/64 Scope:Link
  8.           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
  9.           RX packets:680276 errors:0 dropped:0 overruns:0 frame:0
  10.           TX packets:673392 errors:0 dropped:0 overruns:0 carrier:0
  11.           collisions:0 txqueuelen:1000
  12.           RX bytes:576805832 (550.0 MB)  TX bytes:399660731 (381.1 MB)
  13.           Interrupt:20 Base address:0xa800
  14.  
  15. eth1      Link encap:Ethernet  HWaddr 00:04:5A:85:C1:56 
  16.           inet addr:10.0.0.1  Bcast:10.0.0.255  Mask:255.255.255.0
  17.           inet6 addr: fe80::204:5aff:fe85:c156/64 Scope:Link
  18.           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
  19.           RX packets:2419444 errors:3 dropped:0 overruns:0 frame:3
  20.           TX packets:2415178 errors:0 dropped:0 overruns:0 carrier:0
  21.           collisions:0 txqueuelen:1000
  22.           RX bytes:1782941750 (1.6 GB)  TX bytes:185408814 (176.8 MB)
  23.           Interrupt:19 Base address:0xc800
  24.  
  25.  
  26. [email protected]:~$ sudo /etc/init.d/dhcp3-server start
  27. dhcpd self-test failed. Please fix the config file.
  28. The error was:
  29. /etc/dhcp3/dhcpd.conf line 12: subnet 10.0.0.1 netmask 255.255.255.0: bad subnet number/mask combination.
  30. subnet 10.0.0.1 netmask 255.255.255.0
  31.                                     ^
  32. Configuration file errors encountered -- exiting
  33.  
  34. this is my /etc/dhcp3/dhcp.conf:
  35. # Don't set "authoritative" until everything else is correct in dhcpd.conf
  36. authoritative;  # Warning: this overrides other DHCP servers
  37. # Default options in Ubuntu:
  38. ddns-update-style none;
  39. default-lease-time 600;
  40. max-lease-time 7200;
  41. log-facility local7;
  42. # Subnet row defines server's network card. Also set in "/etc/default/dhcp3-server"
  43. # 'sudo /etc/init.d/dhcp3-server force-reload'
  44. # http://www.iki.fi/karvinen/ubuntu_dhcp.html
  45. # LTSP
  46. subnet 10.0.0.1 netmask 255.255.255.0 {
  47. range 10.0.0.10 10.0.0.20;
  48. default-lease-time 86400;
  49. max-lease-time 86400;
  50. option routers 192.168.0.0;
  51. option broadcast-address 10.0.0.255;
  52. option subnet-mask 255.255.255.0;
  53. }
  54.  
  55. I ran ipcalc to find out what its doing:
  56. [email protected]:~$ ipcalc 10.0.0.1 255.255.255.0
  57. Address:   10.0.0.1             00001010.00000000.00000000. 00000001
  58. Netmask:   255.255.255.0 = 24   11111111.11111111.11111111. 00000000
  59. Wildcard:  0.0.0.255            00000000.00000000.00000000. 11111111
  60. =>
  61. Network:   10.0.0.0/24          00001010.00000000.00000000. 00000000
  62. HostMin:   10.0.0.1             00001010.00000000.00000000. 00000001
  63. HostMax:   10.0.0.254           00001010.00000000.00000000. 11111110
  64. Broadcast: 10.0.0.255           00001010.00000000.00000000. 11111111
  65. Hosts/Net: 254                   Class A, Private Internet

advertising

Update the Post

Either update this post and resubmit it with changes, or make a new post.

You may also comment on this post.

update paste below
details of the post (optional)

Note: Only the paste content is required, though the following information can be useful to others.

Save name / title?

(space separated, optional)



Please note that information posted here will not expire by default. If you do not want it to expire, please set the expiry time above. If it is set to expire, web search engines will not be allowed to index it prior to it expiring. Items that are not marked to expire will be indexable by search engines. Be careful with your passwords. All illegal activities will be reported and any information will be handed over to the authorities, so be good.

comments powered by Disqus
worth-right
worth-right