Q Mám na obidvoch počítačoch nastavené automatické prideľovanie DHCP.
root@debian:~# ifconfig
eth0 Link encap:Ethernet HWaddr 00:26:9e:2f:3a:a1
inet addr:192.168.1.2 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::226:9eff:fe2f:3aa1/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:87 errors:0 dropped:0 overruns:0 frame:0
TX packets:107 errors:0 dropped:0 overruns:0 carrier:1
collisions:0 txqueuelen:1000
RX bytes:21980 (21.4 KiB) TX bytes:12128 (11.8 KiB)
Interrupt:30
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:8 errors:0 dropped:0 overruns:0 frame:0
TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:560 (560.0 B) TX bytes:560 (560.0 B)
wlan0 Link encap:Ethernet HWaddr 00:1e:65:96:41:00
inet addr:192.168.1.4 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::21e:65ff:fe96:4100/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:666 errors:0 dropped:0 overruns:0 frame:0
TX packets:750 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:408234 (398.6 KiB) TX bytes:139285 (136.0 KiB)
toto si myslím, že je v poriadku, aktuálne som pripojený cez eth, a cez ten ide internet, ale zároveň som aj cez WiFi pripojený na tú sieť (ono keď sa z nej odpojím na WiFi, tak mi prestane fungovať aj internet cez eth, podľamňa ako keby WiFi sa snažilo využívať len ethernet, a samo si neťahá signál cez WiFi.
root@debian:~# 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
192.168.1.0 * 255.255.255.0 U 2 0 0 wlan0
link-local * 255.255.0.0 U 1000 0 0 eth0
default 192.168.1.1 0.0.0.0 UG 0 0 0 wlan0
router mám klasicky 192.168.1.1.
Nebude problém v tomto súbore? /etc/network/interfaces
v ňom mám iba eth0:
# 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 eth0
iface eth0 inet dhcp
A pokaľ je tam problém, ako to vyplniť aby cez wlan0 fungovalo pripojenie? Ďakujem.
petertomasy: Myslím, že tam chyba nebude, hento mi vyhadzovalo predtým než som nainštaloval ten driver, teraz to vyhadzuje:
root@debian:~# /bin/dmesg | grep iwl
[ 9.068250] iwlagn: Intel(R) Wireless WiFi Link AGN driver for Linux, 1.3.27ks
[ 9.068255] iwlagn: Copyright(c) 2003-2009 Intel Corporation
[ 9.068320] iwlagn 0000:07:00.0: enabling device (0000 -> 0002)
[ 9.068333] iwlagn 0000:07:00.0: PCI INT A -> GSI 19 (level, low) -> IRQ 19
[ 9.068348] iwlagn 0000:07:00.0: setting latency timer to 64
[ 9.068387] iwlagn 0000:07:00.0: Detected Intel Wireless WiFi Link 5100AGN REV=0x54
[ 9.108732] iwlagn 0000:07:00.0: Tunable channels: 13 802.11bg, 24 802.11a channels
[ 9.108818] iwlagn 0000:07:00.0: irq 29 for MSI/MSI-X
[ 9.407184] phy0: Selected rate control algorithm 'iwl-agn-rs'
[ 53.179752] iwlagn 0000:07:00.0: firmware: requesting iwlwifi-5000-2.ucode
[ 53.258378] iwlagn 0000:07:00.0: loaded firmware version 8.24.2.12
[ 53.406498] Registered led device: iwl-phy0::radio
[ 53.406530] Registered led device: iwl-phy0::assoc
[ 53.406555] Registered led device: iwl-phy0::RX
[ 53.406580] Registered led device: iwl-phy0::TX