Přihlásit | Registrovat
: [1]
   |   
: ako nastavit wifi siet ako defaultnu?  ( 4290 )
zved


« : December 03, 2008, 22:38:50 »

Pouzivam mandriva 2008.1 a mam s nou problem. Standartne mam pripojenie na siet cez eth0, ale ak niekedy potrebujem pripojenie na net cez wifi, tak som neprisiel na to, ako nastavit jednu siet ako defaultnu. Mandriva ma vzdy snahu pripojit sa na prvu, ktora je nezabezpecena.

Je niekde mozne nastavit jednu wifi siet ako implicitnu? Vdaka.
zved


« #1 : December 07, 2008, 22:01:59 »

Male upresnenie. Problem s pripojenim sa na siet nastal az po tom, ako som miesto wep zacal pouzivat wpa-psk/tkip.

Po hladani na nete som nasiel podobny pripad (na adrese http://209.85.129.132/search?q=cache:3RMsmqiesZAJ:www.pclinuxos.com/index.php%3Foption%3Dcom_smf%26Itemid%3D26%26action%3Dprintpage%3Btopic%3D34212.0+ifplugd+%22Program+execution+failed%22+wifi+dhcp&hl=sk&ct=clnk&cd=1), aj ked ja nepouzivam wrapper, ktory sa vyriesil (nanestastie) reinstalaciou. Nakoniec sa podla toho zda, ze nebude problem s wifi ale so ziskanim adresy:

cast logu z horeuvedenej adresy:

Nov  4 10:33:22 localhost kernel: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
Nov  4 10:33:22 localhost ifplugd(wlan0)[2398]: Link beat detected.
Nov  4 10:33:23 localhost ifplugd(wlan0)[2398]: Executing '/etc/ifplugd/ifplugd.action wlan0 up'.
Nov  4 10:33:24 localhost dhclient: DHCPREQUEST on wlan0 to 255.255.255.255 port 67
Nov  4 10:33:53 localhost dhclient: DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 8
Nov  4 10:34:01 localhost dhclient: DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 14
Nov  4 10:34:15 localhost dhclient: DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 8
Nov  4 10:34:23 localhost dhclient: DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 18
Nov  4 10:34:41 localhost dhclient: DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 13
Nov  4 10:34:54 localhost avahi-daemon[3882]: New relevant interface wlan0.IPv4 for mDNS.
Nov  4 10:34:54 localhost avahi-daemon[3882]: Joining mDNS multicast group on interface wlan0.IPv4 with address 192.168.2.100.
Nov  4 10:34:54 localhost avahi-daemon[3882]: Registering new address record for 192.168.2.100 on wlan0.
Nov  4 10:34:57 localhost avahi-daemon[3882]: Withdrawing address record for 192.168.2.100 on wlan0.
Nov  4 10:34:57 localhost avahi-daemon[3882]: Leaving mDNS multicast group on interface wlan0.IPv4 with address 192.168.2.100.
Nov  4 10:34:57 localhost avahi-daemon[3882]: Interface wlan0.IPv4 no longer relevant for mDNS.
Nov  4 10:34:57 localhost ifplugd(wlan0)[2398]: client: Determining IP information for wlan0... failed.
Nov  4 10:34:57 localhost ifplugd(wlan0)[2398]: Program execution failed, return value is 1.

relevantna cast logu z mojho stroja:

Dec  7 20:17:09 localhost kernel: ADDRCONF(NETDEV_CHANGE): eth1: link becomes ready
Dec  7 20:17:09 localhost ifplugd(eth1)[7425]: Link beat detected.
Dec  7 20:17:10 localhost avahi-daemon[4187]: Registering new address record for fe80::213:ceff:fec9:262a on eth1.*.
Dec  7 20:17:10 localhost ifplugd(eth1)[7425]: Executing '/etc/ifplugd/ifplugd.action eth1 up'.
Dec  7 20:17:14 localhost dhclient: DHCPREQUEST on eth1 to 255.255.255.255 port 67
Dec  7 20:17:20 localhost dhclient: DHCPREQUEST on eth1 to 255.255.255.255 port 67
Dec  7 20:17:34 localhost dhclient: DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 7
Dec  7 20:17:41 localhost dhclient: DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 9
Dec  7 20:17:50 localhost dhclient: DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 21
Dec  7 20:18:11 localhost dhclient: DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 9
Dec  7 20:18:20 localhost dhclient: DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 13
Dec  7 20:18:33 localhost dhclient: DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 2
Dec  7 20:18:35 localhost avahi-daemon[4187]: Joining mDNS multicast group on interface eth1.IPv4 with address 192.168.1.41.
Dec  7 20:18:35 localhost avahi-daemon[4187]: New relevant interface eth1.IPv4 for mDNS.
Dec  7 20:18:35 localhost avahi-daemon[4187]: Registering new address record for 192.168.1.41 on eth1.IPv4.
Dec  7 20:18:38 localhost avahi-daemon[4187]: Withdrawing address record for 192.168.1.41 on eth1.
Dec  7 20:18:38 localhost avahi-daemon[4187]: Leaving mDNS multicast group on interface eth1.IPv4 with address 192.168.1.41.
Dec  7 20:18:38 localhost avahi-daemon[4187]: Interface eth1.IPv4 no longer relevant for mDNS.
Dec  7 20:18:38 localhost avahi-daemon[4187]: Withdrawing address record for fe80::213:ceff:fec9:262a on eth1.
Dec  7 20:18:38 localhost ifplugd(eth1)[7425]: client: Determining IP information for eth1... failed.
Dec  7 20:18:38 localhost ifplugd(eth1)[7425]: Program execution failed, return value is 1.

Mozno este male doplnenie (ktore asi malo byt zadane uplne na zaciatku):
stroj: ibm thinkpad t43
mandriva 32 bit
lspci info (relevantna cast): Network controller: Intel Corporation PRO/Wireless 2915ABG Network Connection (rev 05)
wpa_supplicant - Linux WPA Supplicant 0.6.3-3mdv2008.1
wifi AP: asus wl-500gPremium (s povodnym firmware)

A uplne nakoniec. Vreckovy pocitac (palm tx) pripajajuci sa na wifi AP funguje uplne bez problemov

Ma niekto nejaky napad po horeuvedenom doplneni? Vdaka
Hobil
Hero Member
*****

Karma: 58
: 4 006


« #2 : December 08, 2008, 19:10:55 »

1. zrusit stavajici pripojeni v ovladacim centru
2. v biosu zakazat sitovku (predpokladam, ze je integrovana)
3. v ovladacim centru nastavit "nove pripojeni" - wifi (mela by dostat eth0)
4. povolit v biosu ethernet
5. v ovladacim centru nastavit "nove pripojeni" ethernet (mela by dostat eth1)
Snad to bude fungovat.
Dalsi moznosti je prenastavit to pomoci ifconfig (jako root v konzoli).
H.

Benzínem se nemá hasit ohniště
teď už je to jedno, ale pro příště... (K.P.)
zved


« #3 : December 17, 2008, 00:23:44 »

vdaka za odpoved, ale to nie je presne to, co som mal na mysli. Nemyslel som nastavit jedno sietove rozhranie ako defaultne (eth0 - wired lan, eth1 - wifi lan) ale myslel som jednu wifi siet (SSID=wifi_net1) medzi mnohymi v dosahu (wifi_netx, x<>1).

Ako nastavit sietovanie tak, aby siet wifi_net1 bola vzdy pouzita ako defaultna (ked je v dosahu) a aby sa pocitac  nepripajal napriklad na wifi_net3 len kvoli tomu, ze tato ma silnejsi signal, alebo ze nema ziadne zabezpecenie (ako sa to deje mne). Ale mozno mam len problem s nastavenim siete a pretoze sa nepripojim k svojej sieti, je zvolena nejaka ina. Aj ked tato moznost sa mi moc nezda (viz log). Ked som mal wep tak som sa vzdy pripojil k svojej sieti a tento problem ma ani nenapadlo riesit. Ale odkedy mam wpa tak to nejde.

Mozno je to trivialne, ale ja som na to neprisiel.

vdaka
zved


« #4 : December 23, 2008, 11:11:28 »

Tak nakoniec sa mi to (skoro) podarilo.

v prvom rade som vymazal sietove rozhranie ako take. Po restarte som definoval svoju sietovu kartu a wifi siet. Stale mi to neslo, ale prikaz /sbin/ifup eth1 daemon prezradil:

Line 768: Invalid PSK ''.
Line 768: failed to parse psk ''.
Line 769: WPA-PSK accepted for key management, but no PSK configured.
Line 769: failed to parse network block.
Failed to read or parse configuration '/etc/wpa_supplicant.conf'

Som si skoro na 100 percent isty, ze pri definovani siete som tam ten kluc zadal, ale mozno aj nie .... Jednoducho, po pridani kluca v nastaveni siete to este stale nechodilo. Pomohlo az nahodenie eth1 prikazom /sbin/ifup eth1 daemon. Po tom ako som zadal tento prikaz uz funguje pripojenie aj na poklikanie na applet pre pripojenie (zvoli sa siet eth1 a potom pripojit sa / odpojit sa).

Bohuzial este je niekde nejaka drobnost, pretoze ak sa chcem pripopojit musim do konzoly a nastartovat rozhranie /sbin/ifup eth1 daemon. Aby som sa tomu vyhol, tak som v /etc/sysconfig/network-scripts/ifcfg-eth1 nastavil volbu ONBOOT=yes. Teraz sa vsak wifi siet pripaja okamzite po starte systemu. Mnou ocakavane spravanie by bolo, aby wifi rozhranie po starte systemu bolo vypnute, ale po kliknuti na applet by sa nastartovalo rozhranie a pripojila sa siet.

Neviete niekto, kde to nastavit?
zved


« #5 : January 16, 2009, 15:59:38 »

Tak som na to rezignoval. Siet si pripojim vzdy poklepanim na prislusnu siet v zozname dostupnych wifi sieti.
: [1]
   |   
 
: