[K12OSN] DHCP Not Working Correctly On LTSP 5
Eric Harrison
eharrison at mail.mesd.k12.or.us
Mon Dec 18 22:27:19 UTC 2006
Michael Elliott wrote:
> Hello and thanks for taking the time to read my note.
>
> I am having trouble getting dhcp to use my dhcpd.conf and/or lts.conf file.
> What I am seeing is that when a terminal boots it is assigned
> 192.168.0.252, the I setup dhcpd.conf to assign the mac of this machine
> 192.168.0.131 - I use these static addresses to print.
>
> I hosed my installation of K12LTSP 4 last week and I decided to go ahead
> and install version 5. I pulled my lts.conf and dhcp.conf files from my
> hosed install prior to formatting the install.
>
> One thing that I keep seeing is in the dchp.conf file a reference to
> /etc/init.d/dchp to be sure and set run_dhcpd=1. I didn't know where I
> should place this in the file.
>
> I hope this is not inappropriate but I will paste the contents of my
> files below: I would appreciate any advice you guys might be able to
> offer me.
> FYI: This is a fresh install with two network cards
In K12LTSP 5.0+, there is a conflict between Fedora's /etc/dhcpd.conf
and K12LTSP's. K12LTSP now defaults to using /etc/dhcpd-k12ltsp.conf
Try saving your file to /etc/dhcpd-k12ltsp.conf
-Eric
> /etc/dhcpd.conf
>
> # 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.
> #
>
> default-lease-time 21600;
> max-lease-time 21600;
> ddns-update-style none;
> allow booting;
> allow bootp;
>
> option subnet-mask 255.255.255.0;
> option broadcast-address 192.168.0.255;
> option routers 192.168.0.208;
> option domain-name-servers 192.168.0.208;
> next-server 192.168.0.208;
> option domain-name "ltsp";
> option root-path "192.168.0.208:/opt/ltsp/i386";
> option option-128 code 128 = string;
> option option-129 code 129 = text;
> option option-221 code 221 = text;
>
> 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.208;
>
> # trick from Peter Rundle <peter.rundle at 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.208:/opt/ltsp/ppc";
> } else {
> option root-path "192.168.0.208:/opt/ltsp/i386";
> }
> }
> }
>
> # example configurations for specifying specific kernels to specific
> clients
> group {
> use-host-decl-names on;
> option log-servers 192.168.0.208;
>
>
> host ws103 {
> hardware ethernet 00:01:03:de:4f:47;
> fixed-address 192.168.0.103;
> }
> host ws111 {
> hardware ethernet 00:60:08:c4:01:a7;
> fixed-address 192.168.0.111;
> }
>
>
> host ws112 {
> hardware ethernet 00:10:4B:73:38:22;
> fixed-address 192.168.0.112;
> }
>
> host ws113 {
> hardware ethernet 00:10:4B:73:38:FD;
> fixed-address 192.168.0.113;
> }
>
> host ws116 {
> hardware ethernet 00:10:4B:73:B3:E7;
> fixed-address 192.168.0.116;
> }
>
> host ws131 {
> hardware ethernet 00:80:AD:46:66:AB;
> fixed-address 192.168.0.131;
> }
>
> host ws135 {
> hardware ethernet 00:01:03:DE:50:A0;
> fixed-address 192.168.0.135;
> }
>
> host ws136 {
> hardware ethernet 00:48:54:88:c2:bd;
> fixed-address 192.168.0.136;
> }
> }
>
> ----------------------------
>
> /opt/ltsp/i386/etc/lts.conf
>
>
> #
> # Copyright (c) 2002 by James A. McQuillan (McQuillan Systems, LLC)
> #
> # This software is licensed under the Gnu General Public License.
> # The full text of which can be found at http://www.LTSP.org/license.txt
> #
> #
> # Config file for the Linux Terminal Server Project (www.ltsp.org)
> #
>
> [Default]
> # IP address of the LTSP server
> SERVER = 192.168.0.208
>
> # LTSP 4.2 now defaults to restricting the video driver to 90%
> # of the total memory available on the terminal. Setting this
> # somewhere between 90 and 100 may help terminals with a marginal
> # mount of memory, but it is probably a better idea to set
> # USE_NBD_SWAP=Y for such terminals (see examples below)
> XRAMPERC = 90
>
> # Video drivers for the terminals
> XSERVER = "auto"
> # XFree 4 drivers: ati cirrus cyrix fbdev i128 i740 i810 mga
> # neomagic nv r128 radeon rendition s3 s3virge savage
> # siliconmotion sis tdfx tga trident tseng vesa vga via
>
> X4_MODULE_01 = glx
> # add the GLX module by default, blender and the like need it
>
>
> ## Uncomment the following line to enable remote monitoring/control of
> ## terminals, especially if you use fl_teachertool:
> # X4_MODULE_02 = vnc
>
> # Mice drivers for the terminals
> X_MOUSE_PROTOCOL = "auto"
> X_USBMOUSE_PROTOCOL = "auto"
> # Mouse protocols: ExplorerPS/2 GlidePoint GlidePointPS/2
> # IMPS/2 IntelliMouse Microsoft MouseManPlusPS/2
> # NetMousePS/2 NetScrollPS/2 PS/2 ThinkingMouse
> # ThinkingMousePS/2 usb
> X_MOUSE_DEVICE = "/dev/psaux"
> X_USBMOUSE_DEVICE = "/dev/input/mice"
> X_MOUSE_RESOLUTION = 400
> X_USBMOUSE_RESOLUTION = 400
> X_MOUSE_BUTTONS = 3
> X_USBMOUSE_BUTTONS = 3
> USBEMULATE_3_BUTTONS = "off"
>
> # Keyboards
> XkbSymbols = "us(pc101)"
> XkbModel = "pc101"
> XkbLayout = "us"
> # Example of setting a different (German) keyboard mapping,
> # XkbLayout = "de"
> # also see:
> # http://www.xfree86.org/current/XKB-Config2.html
> # http://www.ltsp.org/documentation/ltsp-3.0-4-en.html#AEN1213
> # /opt/ltsp/i386/usr/X11R6/lib/X11/xkb/rules/xfree86.lst
> # (/opt/ltsp/i386/usr/X11R6/lib/X11/xkb/symbols/)
> # (/opt/ltsp/i386/usr/X11R6/lib/X11/xkb/keymap/xfree86)
>
> USE_XFS = N
> LOCAL_APPS = N
> SCREEN_01 = startx
> #SCREEN_02 = shell
> #SCREEN_03 = telnet
> # TELNET_HOST = 192.168.0.208
> #SCREEN_04 = rdesktop
> # RDP_SERVER = your.2k.server
> # RDP_OPTIONS = -F -u fred -d ltsp
>
> # local storage device (USB keys, cdrom, etc)
> LOCAL_STORAGE = Y
> LTSPFSD_OPTIONS=""
>
> # uncomment the following line to enable SNMP support
> #SNMPD = Y
>
> # enable sound by default
> SOUND = Y
> # choose either esd or nasd to be the default (esd only on x86_64)
> SOUND_DAEMON = "esd"
> # SOUND_DAEMON = "nasd"
>
> # default sound volume
> VOLUME = 75
>
> ### For ISA sound cards, you have to specify the module to use:
> # SMODULE_01 = "sb io=0x220 irq=5 dma=1"
>
>
> #------------------------------------------------------------------------------
>
> # Below are sample mode lines for a variety of vertical refresh rates and
> # resolutions. They are used to define the default client screen
> resolution.
> # Some lines may not work with a given monitor and video chipset.
> # To avoid damaging a monitor and video card, only specify mode lines that
> # your client's hardware can support.
> # Uncomment only *one* of the following X_MODE_0 lines at a time, or add
> one
> # of your own.
>
> # 60 Hz Resolutions
> # X_MODE_0 = 640x480 25.175 640 656 752 800 480 490 492 525
> -hsync -vsync
> # X_MODE_0 = 800x600 40 800 840 968 1056 600 601 605 628
> +hsync +vsync
> # X_MODE_0 = 1024x768 65 1024 1048 1184 1344 768 771 777 806
> -hsync -vsync
>
> # 70 Hz Resolutions (Use instead of 72 Hz for 1024x768)
> # X_MODE_0 = 1024x768 75 1024 1048 1184 1328 768 771 777 806
> -hsync -vsync
>
> # 72 Hz Resolutions
> # X_MODE_0 = 640x480 31.5 640 664 704 832 480 489 492 520
> -hsync -vsync
> # X_MODE_0 = 800x600 50 800 856 976 1040 600 637 643 666
> +hsync +vsync
> # X_MODE_0 = 1024x768 75 1024 1048 1192 1296 768 771 777 806
> -hsync -vsync
>
> # 75 Hz Resolutions
> # X_MODE_0 = 800x600 49.5 800 816 896 1056 600 601 604 625
> +hsync +vsync
>
> # 85 Hz Resolutions
> # X_MODE_0 = 800x600 60.75 800 864 928 1088 600 616 621 657
> -hsync -vsync
>
>
> ##------------------------------------------------------------------------------
>
> ##
> ## The sections below are for specific terminals. You can define the
> ## settings for an individual terminal in three ways:
> ##
> ## 1. MAC address
> ## 2. Hostname
> ## 3. IP address
> ##
> ## Using IP address or hostname usually means editing /etc/dhcpd.conf
> ## for each terminal in addtion to adding the entry below. As such,
> ## it is generally a good idea to use the terminal's MAC address.
> ##
> ##------------------------------------------------------------------------------
>
> ##
> ## Examples of specifying X settings for a workstation
> ##
> #[08:00:46:43:42:91]
> # XSERVER = auto
> # LOCAL_APPS = N
> # USE_NBD_SWAP = N
> # SWAPFILE_SIZE = 48m
> #
> #[ws002]
> # XSERVER = XF86_S3
> # LOCAL_APPS = N
> # USE_NBD_SWAP = N
> # SWAPFILE_SIZE = 64m
> # X_MODE_0 = 800x600
> #
> #[192.168.0.12]
> # XSERVER = ati
> #
> # ws004 is my virtual workstation running in a VMware session
> #
> #[ws004]
> # DNS_SERVER = 192.168.0.208
> # XSERVER = auto
> # X4_BUSID = "PCI:0:15:0"
> # X_MODE_0 = 800x600
> # LOCAL_APPS = N
> # USE_NBD_SWAP = N
> # SWAPFILE_SIZE = 64m
>
> #------------------------------------------------------------------------------
>
> #
> # Example of a workstation configured to load some modules
> #
> #[ws001]
> # MODULE_01 = agpgart.o # This is for i810 video
> # MODULE_02 = uart401.o
> # MODULE_03 = "sb.o io=0x220 irq=5 dma=1"
> # MODULE_04 = opl3.o
>
> #------------------------------------------------------------------------------
>
> #
> # Example of ws001 configured for local apps
> #
> #[ws001]
> # LOCAL_APPS = Y
> # LOCAL_WM = Y
> # NIS_DOMAIN = ltsp
> # NIS_SERVER = 192.168.0.208
>
> #------------------------------------------------------------------------------
>
> #
> # Example of a parallel printer attached to /dev/lp0 on workstation ws001
> #
> #[ws001]
> # PRINTER_0_DEVICE = /dev/lp0
> # PRINTER_0_TYPE = P # P-Parallel, S-Serial
>
> #------------------------------------------------------------------------------
>
> #
> # Example of a serial printer attached to /dev/ttyS1 on workstation ws001
> #
> #[ws001]
> # PRINTER_0_DEVICE = /dev/ttyS1
> # PRINTER_0_TYPE = S # P-Parallel, S-Serial
> # PRINTER_0_PORT = 9100 # tcp/ip port: defaults to 9100
> # PRINTER_0_SPEED = 9600 # baud rate: defaults to 9600
> # PRINTER_0_FLOWCTRL = S # Flow control: S-Software
> (XON/XOFF),
> # # H-Hardware (CTS/RTS)
> # PRINTER_0_PARITY = N # Parity: N-None, E-Even, O-Odd
> # # (defaults to 'N')
> # PRINTER_0_DATABITS = 8 # Databits: 5,6,7,8 (defaults
> to 8)
>
>
> # MDE Creation of C-103
> [ws103]
> PRINTER_0_DEVICE =/dev/lp0
> PRINTER_0_TYPE = P
> X_MOUSE_PROTOCOL = "Microsoft"
> X_MOUSE_DEVICE ="/dev/ttyS0"
> X_MODE_0 = 800x600 40 800 840 968 1056 600 601 605 628
> +hsync +vsync
>
> # MDE Creation of C-111
> [ws111]
> PRINTER_0_DEVICE =/dev/lp0
> PRINTER_0_TYPE = P
> X_MOUSE_PROTOCOL = "Microsoft"
> X_MOUSE_DEVICE = "/dev/ttyS0"
> X_MODE_0 = 800x600 40 800 840 968 1056 600 601 605 628
> +hsync +vsync
> # SOUND = Y
> # VOLUME = 75
> # SMODULE_01 = sb io=0x220 irq=5 dma=1
>
> # MDE Creation of C-112
> [ws112]
> PRINTER_0_DEVICE = /dev/lp0
> PRINTER_0_TYPE = P
> X_MODE_0 = 800x600 40 800 840 968 1056 600 601 605 628
> +hsync +vsync
>
> # MDE Creation of C-113
> [ws113]
> # X_MOUSE_PROTOCOL = "Microsoft"
> # X_MOUSE_DEVICE = "/dev/ttyS1"
> X_MODE_0 = 800x600 40 800 840 968 1056 600 601 605 628
> +hsync +vsync
>
>
> # MDE Creation of C-116
> [ws116]
> PRINTER_0_DEVICE = /dev/lp0
> PRINTER_0_TYPE = P
> X_MODE_0 = 800x600 40 800 840 968 1056 600 601 605 628
> +hsync +vsync
> # SOUND = Y
> # VOLUME = 75
> # SMODULE_01 = cmpci
>
>
> # MDE Creation of C-131
> [ws131]
> PRINTER_0_DEVICE = /dev/lp0
> PRINTER_0_TYPE = P
> X_MOUSE_PROTOCOL = "Microsoft"
> X_MOUSE_DEVICE = "/dev/ttyS0"
> X_MODE_0 = 800x600 40 800 840 968 1056 600 601 605 628
> +hsync +vsync
>
>
> # MDE Creation of C-135
> [ws135]
> PRINTER_0_DEVICE = /dev/lp0
> PRINTER_0_TYPE = P
> X_MOUSE_PROTOCOL = "Microsoft"
> X_MOUSE_DEVICE = "/dev/ttyS0"
> X_MODE_0 = 800x600 40 800 840 968 1056 600 601 605 628
> +hsync +vsync
>
> # MDE Creation of C-136
> [ws136]
> PRINTER_0_DEVICE = /dev/lp0
> PRINTER_0_TYPE = P
> X_MOUSE_PROTOCOL = "Microsoft"
> X_MOUSE_DEVICE = "/dev/ttyS0"
> X_MODE_0 = 800x600 40 800 840 968 1056 600 601 605 628
> +hsync +vsync
>
>
> _______________________________________________
>
More information about the K12OSN
mailing list