This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
configuration [2012/10/06 11:19] 85.218.109.130 |
configuration [2012/10/06 12:19] 85.218.109.130 [command line network howto] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== command line network howto ====== | ||
- | |||
- | * which network card(s) do i have? | ||
- | |||
- | <code>lshw -C network</code> | ||
- | |||
- | |||
- | * external wireless card connected | ||
- | |||
- | <code>lspci | grep USB</code> | ||
- | |||
- | |||
- | * display and configure network interfaces | ||
- | |||
- | <code>ifconfig</code> | ||
- | |||
- | |||
- | * display and configure wireless network interfaces | ||
- | |||
- | <code>iwconfig</code> | ||
- | |||
- | connect to a network: | ||
- | |||
- | <code>iwconfig [iface(wlan0)] essid "[essid]" key s:[password]</code> | ||
- | |||
- | need to have wpasupplicant installed, and also allow [iface] in /etc/network/interfaces | ||
- | |||
- | <code> | ||
- | #allow-hotplug wlan0 | ||
- | auto wlan0 #bring it on boot, optional | ||
- | iface wlan0 inet dhcp | ||
- | #optionally, hardcode the network settings here | ||
- | wpa-ssid [essid] | ||
- | wpa-psk [password] | ||
- | </code> | ||
- | |||
- | then, start the [iface] | ||
- | |||
- | <code>ifup wlan0</code> | ||
- | |||
- | or restart it | ||
- | |||
- | <code>ifdown wlan0 | ||
- | ifup wlan0 | ||
- | </code> | ||
- | * put the interface in promiscuous mode | ||
- | |||
- | <code>ifconfig [interface] down | ||
- | iwconfig [interface] mode Monitor | ||
- | ifconfig [interface] up </code> | ||
====== x and desktop configuration ====== | ====== x and desktop configuration ====== |