Cant get IP from DHCP. dhclient wlan0 -> no such file or directory

Hello.
I am very new to linux. I was trying to connect to wireless via cmd:

  • ifconfig wlan0 up
  • iwconfig wlan0 essid ‘XXX’
  • iwconfig wlan0 key XXXXXXX
  • dhclient wlan0 -> here i get error:
    ls: cannot access /var/run/netconfig//wlan0/: no such file or directory.

What must be done, can anyone suggest?
:frowning:

On 07/28/2011 11:16 AM, PuzzledPenguin123 wrote:
>
> Hello.
> I am very new to linux. I was trying to connect to wireless via cmd:
>
> * ifconfig wlan0 up
> * iwconfig wlan0 essid ‘XXX’
> * iwconfig wlan0 key XXXXXXX
> * dhclient wlan0 -> here i get error:
> ls: cannot access /var/run/netconfig//wlan0/: no such file or
> directory.
>
> What must be done, can anyone suggest?
> :frowning:

Please configure your wireless card using YaST (ifup method), or manually edit
/etc/sysconfig/network/ifcfg-wlan0. That way, you will only need to issue ‘ifup
wlan0’ and it will work.