Archive

Posts Tagged ‘wireless’

HOWTO: Connect to internet via Wireless connection in terminal

September 20, 2010 Leave a comment

(all commands should be runing as root “sudo -i” )

Static Address

paste to /etc/network/interfaces

iface wlan0 inet static
wireless-mode Managed
wireless-essid networkName
wireless-key networkKey
address 192.168.1.25
netmask 255.255.255.0
gateway 192.168.1.1
auto wlan0

Replace networkName and networkKey for your router SSID and key.

If needed change IP addresses too.

DHCP automatic IP

paste to /etc/network/interfaces

iface wlan0 inet dhcp
wireless-mode Managed
wireless-essid networkName
wireless-key networkKey
auto wlan0

Replace networkName and networkKey for your router SSID and key.

After that bring itnterface up by command in terminal:

ifdown wlan0 && ifup wlan0

Advertisements
Categories: Uncategorized Tags: , , ,