/etc/network/interfaces

Censorship is so easy to forget!!

# /etc/network/interfaces
#
# LOG:
# version 0.3 (May 07, 2008)
# version 0.2 blessed be NetworkManager (?? ??, ??)
# version 0.1 a Windows-shared connection is NOT_A_GOOD_THING (tm) (?? ??, ??)
#
# TODO:
# WPA eventually
#

# 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
address 127.0.0.1
netmask 255.0.0.0

iface wlan0 inet static
address 192.168.1.2
netmask 255.255.255.0
gateway 192.168.1.1
wireless-essid Wireless
wireless-key s:XXXXXXXXXXXXXXXXXXXXXXXX

auto wlan0

An older version:

auto lo
iface lo inet loopback

auto eth0
iface eth0 inet dhcp
#iface eth0 inet static
#    address 192.168.2.2
#    netmask 255.255.255.0

auto wlan0
iface wlan0 inet static
    address 192.168.0.3
    netmask 255.255.255.0
    gateway 192.168.0.1
    dns-nameservers 192.168.0.1
    wireless-essid try
    wireless-key ####################
    wireless-mode Ad-Hoc

#iface wlan0 inet dhcp
#    wireless-essid wl600g
#    wireless-key ####################
#    wireless-mode Managed

Comments are closed.

%d bloggers like this: