Mam 2 komputery:
NR1 - posiada łączność z internetem, stałe łącze, Aster, adres przydzielany DHCP, posiada on także 2 karty wifi (1- INTEL, 2 - Atheros). INTELA nie udało się zainstalować, Atheros działa. Chciałbym udostępnić komputerowi NR2 połączenie przez wifi (tak żeby otrzymał IP itp.), system Lenny.
Adres IP bramki 192.168.1.1, adres IP kompa NR1 192.168.1.3
NR2 - karta wifi INTEL, system Windows XP
Przejrzałem forum oraz Google na temat udostępniania połączenia internetowego oraz połączeń ad-hoc. Niestety nic mi nie pomogło. Poniżej podaję odpowiednie dane wyciągnięte z terminala. Jeśli ktoś wie w czym jest problem to proszę o odpowiedz.
lspci:
Kod: Zaznacz cały
02:00.0 CardBus bridge: Texas Instruments PCI1510 PC card Cardbus Controller
02:02.0 Network controller: Intel Corporation PRO/Wireless 2200BG [Calexico2] Network Connection (rev 05)
02:08.0 Ethernet controller: Intel Corporation 82801DB PRO/100 VE (MOB) Ethernet Controller (rev 81)
03:00.0 Ethernet controller: Atheros Communications Inc. AR5212/AR5213 Multiprotocol MAC/baseband processor (rev 01)
Kod: Zaznacz cały
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
allow-hotplug eth0
iface eth0 inet dhcp
allow-hotplug wlan0
iface wlan0 inet dhcp
hwaddress ether 00:11:22:33:44:55
dns-nameservers 212.76.33.138 212.76.33.137
netmask 255.0.0.0
gateway 0.0.0.0
wireless-channel 8
wireless-mode ad-hoc
Kod: Zaznacz cały
debian:/home/condor# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.0 * 255.255.255.0 U 0 0 0 eth0
link-local * 255.255.0.0 U 0 0 0 wlan0
link-local * 255.255.0.0 U 1000 0 0 eth0
default my.router 0.0.0.0 UG 0 0 0 eth0
default * 0.0.0.0 U 1000 0 0 wlan0
Kod: Zaznacz cały
debian:/home/condor# ifconfig
eth0 Link encap:Ethernet HWaddr 00:0a:e4:31:fc:73
inet addr:192.168.1.3 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::20a:e4ff:fe31:fc73/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1120 errors:0 dropped:0 overruns:0 frame:0
TX packets:722 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:179040 (174.8 KiB) TX bytes:158675 (154.9 KiB)
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:125 errors:0 dropped:0 overruns:0 frame:0
TX packets:125 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:9266 (9.0 KiB) TX bytes:9266 (9.0 KiB)
wlan0 Link encap:Ethernet HWaddr 00:11:22:33:44:55
inet6 addr: fe80::211:22ff:fe33:4455/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:581 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:187709 (183.3 KiB)
wlan0:avahi Link encap:Ethernet HWaddr 00:11:22:33:44:55
inet addr:169.254.3.168 Bcast:169.254.255.255 Mask:255.255.0.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
wmaster0 Link encap:UNSPEC HWaddr 00-20-A6-51-F8-58-65-74-00-00-00-00-00-00-00-00
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Kod: Zaznacz cały
debian:/home/condor# iwconfig
lo no wireless extensions.
eth0 no wireless extensions.
wmaster0 no wireless extensions.
wlan0 IEEE 802.11 ESSID:"TEST"
Mode:Ad-Hoc Frequency:2.447 GHz Cell: 1E:1D:1D:4B:34:64
Tx-Power=20 dBm
Retry min limit:7 RTS thr :o ff Fragment thr=2352 B
Encryption key :o ff
Link Quality:0 Signal level:0 Noise level:0
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0
Kod: Zaznacz cały
debian:/home/condor# /etc/init.d/networking restart
Reconfiguring network interfaces...There is already a pid file /var/run/dhclient.wlan0.pid with pid 3385
killed old client process, removed PID file
Internet Systems Consortium DHCP Client V3.1.1
Copyright 2004-2008 Internet Systems Consortium.
All rights reserved.
For info, please visit [url]http://www.isc.org/sw/dhcp/[/url]
wmaster0: unknown hardware address type 801
wmaster0: unknown hardware address type 801
Listening on LPF/wlan0/00:11:22:33:44:55
Sending on LPF/wlan0/00:11:22:33:44:55
Sending on Socket/fallback
Error for wireless request "Set Mode" (8B06) :
SET failed on device wlan0 ; Invalid argument.
Error for wireless request "Set ESSID" (8B1A) :
SET failed on device wlan0 ; Invalid argument.
There is already a pid file /var/run/dhclient.eth0.pid with pid 3066
killed old client process, removed PID file
Internet Systems Consortium DHCP Client V3.1.1
Copyright 2004-2008 Internet Systems Consortium.
All rights reserved.
For info, please visit [url]http://www.isc.org/sw/dhcp/[/url]
wmaster0: unknown hardware address type 801
wmaster0: unknown hardware address type 801
Listening on LPF/eth0/00:0a:e4:31:fc:73
Sending on LPF/eth0/00:0a:e4:31:fc:73
Sending on Socket/fallback
DHCPRELEASE on eth0 to 192.168.1.1 port 67