[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [K12OSN] LTSP server with 3 NICs?



Hello,

2008/12/20 "Terrell Prudé Jr." <microman cmosnetworks com>:
> I see one thing right away, in /etc/hosts.
>
> 1.)  You do need an entry for 192.168.0.254.

I have added this line to the top set as the last line and pointed it
to server.ltsp

> 2.)  You also need another entry for 192.168.4.254.

I have also added this line to the second set as the last line and
pointed it to server.ltsp

> Now, as for dhcpd startup failing, can you take a look at /var/log/messages
> and see what error messages you're getting when you try to start dhcpd?  I'm
> not seeing anything in your config that stands out as "bad".

I tried to start dhcpd as root with: service dhcpd start

/var/log/messages reported the following:

Dec 20 01:49:27 server dhcpd: /etc/dhcpd-k12ltsp.conf line 57: option
definitions may not be scoped.
Dec 20 01:49:27 server dhcpd:    option option-128 code
Dec 20 01:49:27 server dhcpd:                 ^
Dec 20 01:49:27 server dhcpd: /etc/dhcpd-k12ltsp.conf line 58: option
definitions may not be scoped.
Dec 20 01:49:27 server dhcpd:    option option-129 code
Dec 20 01:49:27 server dhcpd:                 ^
Dec 20 01:49:27 server dhcpd: /etc/dhcpd-k12ltsp.conf line 59: option
definitions may not be scoped.
Dec 20 01:49:27 server dhcpd:    option option-221 code
Dec 20 01:49:27 server dhcpd:                 ^
Dec 20 01:49:27 server dhcpd: /etc/dhcpd-k12ltsp.conf line 69: no
option named option-221
Dec 20 01:49:27 server dhcpd:      elsif substring (option option-221,
Dec 20 01:49:27 server dhcpd:                              ^
Dec 20 01:49:27 server dhcpd: /etc/dhcpd-k12ltsp.conf line 73:
expecting a parameter or declaration
Dec 20 01:49:27 server dhcpd:      # Intel PXE
Dec 20 01:49:27 server dhcpd:      ^
Dec 20 01:49:27 server dhcpd: /etc/dhcpd-k12ltsp.conf line 79:
expecting a parameter or declaration
Dec 20 01:49:27 server dhcpd:      # default to an i386 BOOTP image
Dec 20 01:49:27 server dhcpd:      ^
Dec 20 01:49:27 server dhcpd: /etc/dhcpd-k12ltsp.conf line 103:
unknown option dhcp.option-128
Dec 20 01:49:27 server dhcpd:         option option-128 e4:
Dec 20 01:49:27 server dhcpd:                ^
Dec 20 01:49:27 server dhcpd: /etc/dhcpd-k12ltsp.conf line 104:
unknown option dhcp.option-129
Dec 20 01:49:27 server dhcpd:         option option-129 "NIC=3c509"
Dec 20 01:49:27 server dhcpd:                ^
Dec 20 01:49:27 server dhcpd: /etc/dhcpd-k12ltsp.conf line 110:
unknown option dhcp.option-128
Dec 20 01:49:27 server dhcpd:         option option-128 e4:
Dec 20 01:49:27 server dhcpd:                ^
Dec 20 01:49:27 server dhcpd: /etc/dhcpd-k12ltsp.conf line 111:
unknown option dhcp.option-129
Dec 20 01:49:27 server dhcpd:         option option-129 "NIC=ne"
Dec 20 01:49:27 server dhcpd:                ^
Dec 20 01:49:27 server dhcpd: /etc/dhcpd-k12ltsp.conf line 150: option
definitions may not be scoped.
Dec 20 01:49:27 server dhcpd:   option option-128 code
Dec 20 01:49:27 server dhcpd:                ^
Dec 20 01:49:27 server dhcpd: /etc/dhcpd-k12ltsp.conf line 151: option
definitions may not be scoped.
Dec 20 01:49:27 server dhcpd:   option option-129 code
Dec 20 01:49:27 server dhcpd:                ^
Dec 20 01:49:27 server dhcpd: /etc/dhcpd-k12ltsp.conf line 152: option
definitions may not be scoped.
Dec 20 01:49:27 server dhcpd:   option option-221 code
Dec 20 01:49:27 server dhcpd:                ^
Dec 20 01:49:27 server dhcpd: /etc/dhcpd-k12ltsp.conf line 162: no
option named option-221
Dec 20 01:49:27 server dhcpd:      elsif substring (option option-221,
Dec 20 01:49:27 server dhcpd:                              ^
Dec 20 01:49:27 server dhcpd: /etc/dhcpd-k12ltsp.conf line 166:
expecting a parameter or declaration
Dec 20 01:49:27 server dhcpd:      # Intel PXE
Dec 20 01:49:27 server dhcpd:      ^
Dec 20 01:49:27 server dhcpd: /etc/dhcpd-k12ltsp.conf line 172:
expecting a parameter or declaration
Dec 20 01:49:27 server dhcpd:      # default to an i386 BOOTP image
Dec 20 01:49:27 server dhcpd:      ^
Dec 20 01:49:27 server dhcpd: Configuration file errors encountered -- exiting
Dec 20 01:49:27 server dhcpd:
Dec 20 01:49:27 server dhcpd: If you did not get this software from
ftp.isc.org, please
Dec 20 01:49:27 server dhcpd: get the latest from ftp.isc.org and
install that before
Dec 20 01:49:27 server dhcpd: requesting help.
Dec 20 01:49:28 server dhcpd:
Dec 20 01:49:28 server dhcpd: If you did get this software from
ftp.isc.org and have not
Dec 20 01:49:28 server dhcpd: yet read the README, please read it
before requesting help.
Dec 20 01:49:28 server dhcpd: If you intend to request help from the
dhcp-server isc org
Dec 20 01:49:28 server dhcpd: mailing list, please read the section on
the README about
Dec 20 01:49:28 server dhcpd: submitting bug reports and requests for help.
Dec 20 01:49:28 server dhcpd:
Dec 20 01:49:28 server dhcpd: Please do not under any circumstances
send requests for
Dec 20 01:49:28 server dhcpd: help directly to the authors of this
software - please
Dec 20 01:49:28 server dhcpd: send them to the appropriate mailing
list as described in
Dec 20 01:49:28 server dhcpd: the README file.
Dec 20 01:49:28 server dhcpd:
Dec 20 01:49:28 server dhcpd: exiting.

-----------

It references an error in the dhcpd-k12ltsp.conf file so I have pasted
it below. I put in a reference guide at line 49 to help. Thank you!
Joseph

----------

# Sample configuration file for ISCD dhcpd
#
# Don't forget to set run_dhcpd=1 in /etc/init.d/dhcpd
# once you adjusted this file and copied it to /etc/dhcpd.conf.
#
# File was modified by Joseph Bishay December 19th, 2008 to add a
second subnet for the church 192.168.4.X/24

default-lease-time            21600;
max-lease-time                21600;
ddns-update-style none;
allow booting;
allow bootp;

# This area commented out and moved to shared-network workstations area
#
# option subnet-mask            255.255.255.0;
# option broadcast-address      192.168.0.255;
# option routers                192.168.0.254;
# option domain-name-servers    192.168.0.254;
# next-server                   192.168.0.254;
# option domain-name            "ltsp";
# option root-path              "192.168.0.254:/opt/ltsp/i386";
# option option-128 code 128 = string;
# option option-129 code 129 = text;
# option option-221 code 221 = text;

# This part below is duplicated by Joseph

#option subnet-mask            255.255.255.0;
#option broadcast-address      192.168.4.255;
#option routers                192.168.4.254;
#option domain-name-servers    192.168.4.254;
#next-server                   192.168.4.254;
#option domain-name            "ltsp";
#option root-path              "192.168.4.254:/opt/ltsp/i386";
#option option-128 code 128 = string;
#option option-129 code 129 = text;
#option option-221 code 221 = text;

# End of duplication

shared-network WORKSTATIONS {
  subnet 192.168.0.0 netmask 255.255.255.0 {
     range dynamic-bootp 192.168.0.100 192.168.0.253;
     use-host-decl-names       on;
     option log-servers        192.168.0.254;

	# moved from the above area
************ AS A REFERENCE THIS IS LINE 49 in the original document
****************
	 option subnet-mask            255.255.255.0;
	 option broadcast-address      192.168.0.255;
	 option routers                192.168.0.254;
	 option domain-name-servers    192.168.0.254;
	 next-server                   192.168.0.254;
	 option domain-name            "ltsp";
	 option root-path              "192.168.0.254:/opt/ltsp/i386";
	 option option-128 code 128 = string;
	 option option-129 code 129 = text;
	 option option-221 code 221 = text;

     # trick from Peter Rundle <peter rundle au interpath net>
     # newer Macs
     if substring (option vendor-class-identifier, 0, 9) = "AAPLBSDPC"
     {
        filename      "yaboot";
        option vendor-class-identifier "AAPLBSDPC";
     }
     # really old iMacs
     elsif substring (option option-221, 0, 5) = "Apple"
     {
        filename      "yaboot";
        option vendor-class-identifier "AAPLBSDPC";
     }
     # Intel PXE
     elsif substring (option vendor-class-identifier, 0, 9) = "PXEClient"
     {
        # NOTE: kernels are specified in /tftpboot/lts/pxe/pxelinux.cfg/
        filename      "/lts/pxe/pxelinux.0";
     }
     # default to an i386 BOOTP image
     else
     {
        filename      "/lts/vmlinuz.ltsp";
     }

     if substring (option vendor-class-identifier, 20, 3) = "ppc" {
        option root-path "192.168.0.254:/opt/ltsp/ppc";
     } else {
        option root-path "192.168.0.254:/opt/ltsp/i386";
     }
  }
}

# example configurations for specifying specific kernels to specific clients
group	{
    use-host-decl-names       on;
    option log-servers        192.168.0.254;

    host ws001 {
        hardware ethernet     00:E0:06:E8:00:84;
        fixed-address         192.168.0.1;
        filename              "/lts/vmlinuz.ltsp";
        option option-128 e4:45:74:68:00:00;
        option option-129 "NIC=3c509";
    }
    host ws002 {
        hardware ethernet     00:D0:09:30:6A:1C;
        fixed-address         192.168.0.2;
        filename              "/lts/vmlinuz.ltsp";
        option option-128 e4:45:74:68:00:00;
        option option-129 "NIC=ne";
    }
    host ws003 {
        hardware ethernet     00:D0:09:30:28:B2;
        fixed-address         192.168.0.3;
        # kernels are specified in /tftpboot/lts/boot/pxe/pxelinux.cfg/
        filename              "/lts/boot/pxe/pxelinux.0";
    }

# Apple Specific Settings
#    host ws007 {
#       hardware ethernet     00:30:65:69:23:60;
#       fixed-address         192.168.0.4;
#       option root-path      "192.168.0.254:/opt/ltsp/ppc";
#       filename              "yaboot";
#       option vendor-class-identifier "AAPLBSDPC";
#    }
}


#####
# Second part of duplication by Joseph Bishay
####

shared-network WORKSTATIONS-2 {
  subnet 192.168.4.0 netmask 255.255.255.0 {
     range dynamic-bootp 192.168.4.100 192.168.4.253;
     use-host-decl-names       on;
     option log-servers        192.168.4.254;

	# moved from the above area

	option subnet-mask            255.255.255.0;
	option broadcast-address      192.168.4.255;
	option routers                192.168.4.254;
	option domain-name-servers    192.168.4.254;
	next-server                   192.168.4.254;
	option domain-name            "ltsp";
	option root-path              "192.168.4.254:/opt/ltsp/i386";
	option option-128 code 128 = string;
	option option-129 code 129 = text;
	option option-221 code 221 = text;

     # trick from Peter Rundle <peter rundle au interpath net>
     # newer Macs
     if substring (option vendor-class-identifier, 0, 9) = "AAPLBSDPC"
     {
        filename      "yaboot";
        option vendor-class-identifier "AAPLBSDPC";
     }
     # really old iMacs
     elsif substring (option option-221, 0, 5) = "Apple"
     {
        filename      "yaboot";
        option vendor-class-identifier "AAPLBSDPC";
     }
     # Intel PXE
     elsif substring (option vendor-class-identifier, 0, 9) = "PXEClient"
     {
        # NOTE: kernels are specified in /tftpboot/lts/pxe/pxelinux.cfg/
        filename      "/lts/pxe/pxelinux.0";
     }
     # default to an i386 BOOTP image
     else
     {
        filename      "/lts/vmlinuz.ltsp";
     }

     if substring (option vendor-class-identifier, 20, 3) = "ppc" {
        option root-path "192.168.4.254:/opt/ltsp/ppc";
     } else {
        option root-path "192.168.4.254:/opt/ltsp/i386";
     }
  }
}

#######
# End of second duplication by Joseph Bishay
#######


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]