single interface setup

rmcdaniel at indata.us rmcdaniel at indata.us
Tue Nov 4 21:24:29 UTC 2008


Here are the contents of the relevant files with explanation of our IP
scheme:

My subnet is 192.168.5.X/24
My gateway off of the subnet is 192.168.5.1/24 (Cisco Router)
My LTSP server address is 192.168.5.3/24
I have disabled eth1 from starting up
I completely left the bridge interface as it was setup from the
installation

I loaded the image from a flash drive and selected all of the defaults,
except I chose eth0 as my main interface and gave it the static settings
shown above.  I also inputted our DNS settings during the NIC
configuration step.  When the server first booted, I tested Internet
connectivity.  I downloaded/installed Webmin, www.webmin.com.  Using
Webmin, I shutdown unnecessary services, ie. bluetooth, isdn, and IP
Tables.  I restarted the server and then booted our thin clients. 
Clients booted just fine with the 192.168.5.X subnet.



/etc/sysconfig/network-scripts/ifcfg-eth0

# Broadcom Corporation NetXtreme II BCM5708 Gigabit Ethernet
DEVICE=eth0
BOOTPROTO=static
BROADCAST=192.168.5.255
HWADDR=00:1c:c4:ed:27:b4
IPADDR=192.168.5.3
NETMASK=255.255.255.0
NETWORK=192.168.5.0
ONBOOT=yes
DNS1=129.66.76.4
DNS2=129.66.95.3
NM_CONTROLLED=

/etc/sysconfig/network-scripts/ifcfg-eth1

# Broadcom Corporation NetXtreme II BCM5708 Gigabit Ethernet
DEVICE=eth1
BOOTPROTO=dhcp
HWADDR=00:1c:c4:ed:27:b2
IPADDR=dhcp
ONBOOT=no
DHCP_HOSTNAME=LJH-LTSP
DNS1=129.66.76.4
DNS2=129.66.95.3
NM_CONTROLLED=

/etc/sysconfig/network-scripts/ifcfg-lo

DEVICE=lo
IPADDR=127.0.0.1
NETMASK=255.0.0.0
NETWORK=127.0.0.0
# If you're having problems with gated making 127.0.0.0/8 a martian,
# you can change this to something else (255.255.255.255, for example)
BROADCAST=127.255.255.255
ONBOOT=yes
NAME=loopback

/etc/sysconfig/network-scripts/ifcfg-ltspbr0

# Sample Configuration for Initscript Driven Bridge
# Put this into /etc/sysconfig/network-scripts/ifcfg-ltspbr0
# Note that this network range does not match the defaults in dhcpd.conf
DEVICE=ltspbr0
TYPE=Bridge
ONBOOT=yes
BOOTPROTO=static
STP=off
DELAY=0.1
USERCTL=no
IPV6INIT=no
PEERDNS=yes
NETMASK=255.255.255.0
IPADDR=172.31.100.254
ARP=yes

/etc/ltsp/dhcpd.conf

# Sample configuration file for LTSP dhcpd
#

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.5.255;
option routers                192.168.5.1;
option domain-name-servers    129.66.76.4,129.66.95.3;
next-server                   192.168.5.3;
option domain-name            "ltsp";
option option-128 code 128 = string;
option option-129 code 129 = text;
option option-221 code 221 = text;

shared-network WORKSTATIONS {
  subnet 192.168.5.0 netmask 255.255.255.0 {
     range dynamic-bootp 192.168.5.50 192.168.5.253;
     use-host-decl-names       on;
     option log-servers        192.168.5.3;

     # trick from Peter Rundle <peter.rundle at au.interpath.net>
     # newer PPC Macs
     if substring (option vendor-class-identifier, 0, 9) = "AAPLBSDPC"
     {
        filename      "yaboot";
        option vendor-class-identifier "AAPLBSDPC";
     } 
     # really old ppc iMacs
     elsif substring (option option-221, 0, 5) = "Apple"
     {
        filename      "yaboot";
        option vendor-class-identifier "AAPLBSDPC";
     } 
     # Etherboot ELF (only 5.4), should work with Coreboot
     elsif substring (option vendor-class-identifier, 0, 13) =
"Etherboot-5.4" 
     {
        filename      "/ltsp/i386/elf.ltsp";
     } 
     # Etherboot NBI (older clients)
     elsif substring (option vendor-class-identifier, 0, 9) =
"Etherboot" 
     {
        filename      "/ltsp/i386/wraplinux-nbi.ltsp";
     } 
     # PXE
     elsif substring (option vendor-class-identifier, 0, 9) =
"PXEClient" 
     {
        # NOTE: kernels are specified in
/tftpboot/ltsp/i386/pxelinux.cfg/
        filename      "/ltsp/i386/pxelinux.0";
     } 
     # if all else fails (likely BOOTP), default to an NBI image
     else 
     {
        filename      "/ltsp/i386/wraplinux-nbi.ltsp";
     }

     if substring (option vendor-class-identifier, 20, 3) = "ppc" {
        option root-path "192.168.5.3:/opt/ltsp/ppc";
     } else {
        option root-path "192.168.5.3:/opt/ltsp/i386"; 
        #option root-path "nbd:192.168.5.3:2000:squashfs:ro";
     }
  }
}

## example configurations for specifying specific kernels to specific
clients
#group    {
#    use-host-decl-names       on;
#    option log-servers        192.168.5.3;
#
#    host ws001 {
#        hardware ethernet     00:E0:06:E8:00:84;
#        fixed-address         172.31.100.1;
#        filename              "/ltsp/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         172.31.100.2;
#        filename              "/ltsp/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         172.31.100.3;
#        # kernels are specified in /tftpboot/ltsp/i386/pxelinux.cfg/
#        filename              "/ltsp/i386/pxelinux.0";
#    }
#
# Apple Specific Settings
#    host ws007 {
#       hardware ethernet     00:30:65:69:23:60;
#       fixed-address         172.31.100.4;
#       option root-path      "192.168.5.3:/opt/ltsp/ppc";
#       filename              "yaboot";
#       option vendor-class-identifier "AAPLBSDPC";
#    }
#}



I hope that this is useful!

Ron


Ron McDaniel
rmcdaniel at indata.us
Conecuh County Schools
Technology Coordinator


-------- Original Message --------
Subject: Re: single interface setup
From: Luis Montes <monteslu at cox.net>
Date: Mon, November 03, 2008 11:10 pm
To: Development discussion of K12Linux <k12linux-devel-list at redhat.com>

I though I did just that and it didn't work for me.

Could you post your exact configuration changes?

Thanks,
Luis


rmcdaniel at indata.us wrote:
> I finally got the setup working with just a single interface. All that
> I did was configure eth0 as my main interface and change the dhcpd.conf
> file with the correct subnet information. I just disabled eth1 and left
> the bridge interface as it was setup from the initial install. I will
> probably get rid of the bridge interface just to remove any possible
> problems. Everything is working GREAT! Has anyone tried using some of
> the scripts that were included with K12LTSP, ie. "Add/Remove Icons to
> Desktops"?
>
>
> Thanks,
>
> Ron McDaniel
> rmcdaniel at indata.us
>
>
>
>
>
> _______________________________________________
> K12Linux-devel-list mailing list
> K12Linux-devel-list at redhat.com
> https://www.redhat.com/mailman/listinfo/k12linux-devel-list
>
> 

_______________________________________________
K12Linux-devel-list mailing list
K12Linux-devel-list at redhat.com
https://www.redhat.com/mailman/listinfo/k12linux-devel-list







More information about the K12Linux-devel-list mailing list