Prosíme přihlašte se nebo zaregistrujte.

Přihlašte se svým uživatelským jménem a heslem.
Vaše pomoc je stále potřeba!

Autor Téma: wifi ubuntu server  (Přečteno 1413 krát)

pascal23

  • Návštěvník
  • Příspěvků: 1
wifi ubuntu server
« kdy: 10 Března 2012, 22:42:48 »
Zdravím
mám problém z wifi na serveri - na serveri, čiže mám k dispozícii len terminál cez ssh
keďže sa jedná o server, potrebujem, aby mal nastavené statické IP adresy a tu je problém:
môj /etc/network/interfaces vypadá následovne
Kód: [Vybrat]
# 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 192.168.1.40
netmask 255.255.255.0
gateway 192.168.1.1
up /sbin/iwconfig wlan0 essid xxxxx
up /sbin/iwconfig wlan0 channel 9
up /sbin/iwconfig wlan0 mode managed
up /sbin/iwconfig wlan0 enc s:xxxxx

#wireless-mode managed
#wireless-essid xxxxx
#wireless-channel 9
#wireless-key s:xxxxx

auto eth0
iface eth0 inet static
address 192.168.1.30
netmask 255.255.255.0
gateway 192.168.1.1
~                       

a po príkaze sudo /etc/init.d/networking restart mi to vypíše:
Kód: [Vybrat]
* Running /etc/init.d/networking restart is deprecated because it may not enable again some interfaces
 * Reconfiguring network interfaces...                                                                                                                                 
RTNETLINK answers: File exists
Failed to bring up wlan0.
ssh stop/waiting
ssh start/running, process 1771
                                                                                                                                                                 [ OK ]

Pokial použijem v nastavení wlan0 dhcp, tak to funguje, len potom pátram, kde má zase IP adresu, poprosím o pomoc s hláškou RTNETLINK answers: File exists zatial som bol z googlom neúspešný, a síce viem, že to nevie vytvoriť nejaký súbor, pretože už je vytvorený, ale ako ďalej to som sa už nedočítal.
Taktiež keď wifi spojazdním cez terminál príkazmi iwconfig tak tiež funguje, ale automatika nie

ďakujem za pomoc
Lukáš

 

Provoz zaštiťuje spolek OpenAlt.