Home > Uncategorized > HOWTO: Connect to internet via Wireless connection in terminal

HOWTO: Connect to internet via Wireless connection in terminal

(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: , , ,
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: