Ubuntu Suomen keskustelualueet
Ubuntun käyttö => Ohjelmointi, palvelimet ja muu edistyneempi käyttö => Aiheen aloitti: radiotehnika - 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 ;D
Serverin ifconfig:
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
# 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
#
# 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
# 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"
-
Ihanne tilanne olisi se että clientillä pääsisi surffaamaan ;D
Jotenkin näinkö?
http://www.arkki.info/kirjasto/index.php?title=LTSP5_Kannettava_Demo
http://3.bp.blogspot.com/_xqQCTqLO3sg/S_Jvz_2vRQI/AAAAAAAAB-s/w5JHSiHhNqY/s1600/P5110012.JPG
Ystävällisin terveisin Asmo Koskinen.
-
Kiitti ohjeista! kappas kun en huomannutkaan juuri tuota.
Tein kyllä ohjeiden mukaiset muutokset, mutta ei lähtenyt vieläkään toimimaan.
dhcp-server näyttää OK, kun wlan0 ja eth0 on päällä tai pelkästään eht0, mutta serverillä/clientillä ei voi edelleenkään surffata kun wlan0 ja eth0 on samanaikaisesti päällä.. käyttää jotenkin eth0 yhteyttä ensisijaisesti?
Ilmeisesti kummankin pitää olla samanaikaisesti päällä vai pelkästään wlan0? ???
dhcp viestit kun wlan0 on ainoastaan päällä:
May 27 09:26:14 ubuntu dhcpd: No subnet declaration for eth0 (0.0.0.0).
May 27 09:26:14 ubuntu dhcpd: ** Ignoring requests on eth0. If this is not what
May 27 09:26:14 ubuntu dhcpd: you want, please write a subnet declaration
May 27 09:26:14 ubuntu dhcpd: in your dhcpd.conf file for the network segment
May 27 09:26:14 ubuntu dhcpd: to which interface eth0 is attached. **
May 27 09:26:14 ubuntu dhcpd: Not configured to listen on any interfaces!
etc/network/interfaces on samanlainen kuin ohjeessasi.