1
Ohjelmointi, palvelimet ja muu edistyneempi käyttö / LTSP-serverillä wlan-yhteyden jako clientille
« : 26.05.10 - klo:13.50 »
Kytkimessä on kiinni kaksi läppäriä, josta toinen toimii serverinä ja toinen clienttinä. Serveri on yhteydessä wlanin kautta nettiin. Clientti pääsee boottaamaan, mutta ei anna kirjautua sisään. "no response from server..restarting"
Dhcp-serveri menee päälle kun eth0 on käytössä, mutta silloin ei voi surffata serverillä netissä vaikka wlan olisikin yhdistetty.
Ihanne tilanne olisi se että clientillä pääsisi surffaamaan
Serverin ifconfig:
/etc/network/interface
/etc/ltsp/dhcpd.conf
/etc/default/dhcp3-server
Dhcp-serveri menee päälle kun eth0 on käytössä, mutta silloin ei voi surffata serverillä netissä vaikka wlan olisikin yhdistetty.
Ihanne tilanne olisi se että clientillä pääsisi surffaamaan
Serverin ifconfig:
Koodia: [Valitse]
eth0 Link encap:Ethernet HWaddr 00:0e:7b:85:b0:97
inet addr:192.168.0.254 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::20e:7bff:fe85:b097/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:66464 errors:0 dropped:0 overruns:0 frame:0
TX packets:115142 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:4748556 (4.7 MB) TX bytes:166566939 (166.5 MB)
Memory:ffce0000-ffd00000
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:2184 errors:0 dropped:0 overruns:0 frame:0
TX packets:2184 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:378495 (378.4 KB) TX bytes:378495 (378.4 KB)
wlan0 Link encap:Ethernet HWaddr 00:13:02:cd:36:3a
inet addr:10.240.252.81 Bcast:10.240.255.255 Mask:255.255.0.0
inet6 addr: fe80::213:2ff:fecd:363a/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:38544 errors:0 dropped:0 overruns:0 frame:0
TX packets:9298 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:14074034 (14.0 MB) TX bytes:1768168 (1.7 MB)
/etc/network/interface
Koodia: [Valitse]
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto wlan0
iface wlan0 inet static
address 10.240.252.81
netmask 255.255.0.0
broadcast 10.240.255.255
gateway 10.240.0.1
auto eth0
iface eth0 inet static
address 192.168.0.254
netmask 255.255.255.0
network 192.168.0.0
broadcast 192.168.0.255
/etc/ltsp/dhcpd.conf
Koodia: [Valitse]
#
# Default LTSP dhcpd.conf config file.
#
authoritative;
subnet 192.168.0.0 netmask 255.255.255.0 {
range 192.168.0.200 192.168.0.250;
option domain-name "ubuntu";
option domain-name-servers 192.168.0.1;
option broadcast-address 192.168.0.255;
option routers 192.168.0.1;
# next-server 192.168.0.254;
# get-lease-hostnames true;
option subnet-mask 255.255.255.0;
option root-path "/opt/ltsp/i386";
if substring( option vendor-class-identifier, 0, 9 ) = "PXEClient" {
filename "/ltsp/i386/pxelinux.0";
} else {
filename "/ltsp/i386/nbi.img";
}
}
/etc/default/dhcp3-server
Koodia: [Valitse]
# Defaults for dhcp initscript
# sourced by /etc/init.d/dhcp
# installed at /etc/default/dhcp3-server by the maintainer scripts
#
# This is a POSIX shell fragment
#
# On what interfaces should the DHCP server (dhcpd) serve DHCP requests?
# Separate multiple interfaces with spaces, e.g. "eth0 eth1".
INTERFACES="eth0"