I have a problem with my wi-fi. I use ndiswrapper and I had internet all time but few days ago I wanted install my printer and I tried starts CUPS (I don't know why but I can't do this). When I installed CUPS by pacman all was right, and I configured my fluxbox, You know... background, adesklets etc. When I turn on my comupter next day..... I hadn't internet connection. I checked all my configure and is OK. On windows all things work properly.
When I write "iwlist scanning" system shows me all wireless lan around me so ndiswrapper and my wi-fi card is OK. Below are few my configuring files. Tx-Power is all time 0dB. Why ?
[root@myhost mario]# ifconfig
wlan0 Link encap:Ethernet HWaddr 00:30:4F:29:07:1F
inet addr:192.168.0.104 Bcast:192.168.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:13 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:940 (940.0 b) TX bytes:0 (0.0 b)
Interrupt:17 Memory:e2010000-e2011000
[root@myhost mario]# iwconfig
wlan0 IEEE 802.11b ESSID:"maj.ittp.pl"
Mode:Managed Frequency:2.467 GHz Access Point: 00:0B:6B:3D:FE:7F
Bit Rate:11 Mb/s Tx-Power:0 dBm Sensitivity=0/3
RTS thr:4096 B Fragment thr:4095 B
Encryption key:off
Power Management:off
Link Quality:100/100 Signal level:-66 dBm Noise level:-256 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0
My rc.conf:
#
# /etc/rc.conf - Main Configuration for Arch Linux
#
#
# -----------------------------------------------------------------------
# LOCALIZATION
# -----------------------------------------------------------------------
#
# LOCALE: available languages can be listed with the 'locale -a' command
# HARDWARECLOCK: set to "UTC" or "localtime"
# TIMEZONE: timezones are found in /usr/share/zoneinfo
# KEYMAP: keymaps are found in /usr/share/kbd/keymaps
# CONSOLEFONT: found in /usr/share/kbd/consolefonts (only needed for non-US)
# CONSOLEMAP: found in /usr/share/kbd/unimaps
# USECOLOR: use ANSI color sequences in startup messages
#
LOCALE=pl_PL
HARDWARECLOCK="localtime"
TIMEZONE=Europe/Warsaw
KEYMAP=pl
CONSOLEFONT=lat2-16.psfu.gz
CONSOLEMAP=
USECOLOR="yes"
#
# -----------------------------------------------------------------------
# HARDWARE
# -----------------------------------------------------------------------
#
# Scan hardware and load required modules at bootup
MOD_AUTOLOAD="yes"
# Module Blacklist - modules in this list will never be loaded by hwdetect
MOD_BLACKLIST=()
#
# Modules to load at boot-up (in this order)
# - prefix a module with a ! to disable it
#
MODULES=(!usbserial ndiswrapper snd-emu10k1 8139too)
# Scan for LVM volume groups at startup, required if you use LVM
USELVM="no"
#
# -----------------------------------------------------------------------
# NETWORKING
# -----------------------------------------------------------------------
#
HOSTNAME="myhost"
#
# Interfaces to start at boot-up (in this order)
# Declare each interface then list in INTERFACES
# - prefix an entry in INTERFACES with a ! to disable it
#
# Note: to use DHCP, set your interface to be "dhcp" (eth0="dhcp")
#
lo="lo 127.0.0.1"
wlan0="wlan0 192.168.0.104 netmask 255.255.255.0 broadcast 192.168.0.255"
eth0="eth0 10.0.0.1 netmask 255.255.0.0 broadcast 10.0.0.255"
INTERFACES=(lo wlan0 eth0)
#
# Routes to start at boot-up (in this order)
# Declare each route then list in ROUTES
# - prefix an entry in ROUTES with a ! to disable it
#
gateway="default gw 192.168.0.1"
ROUTES=(!gateway)
#
# Enable these network profiles at boot-up. These are only useful
# if you happen to need multiple network configurations (ie, laptop users)
# - set to 'menu' to present a menu during boot-up
# - prefix an entry with a ! to disable it
#
# Network profiles are found in /etc/network-profiles
#
#NET_PROFILES=(main)
#
# -----------------------------------------------------------------------
# DAEMONS
# -----------------------------------------------------------------------
#
# Daemons to start at boot-up (in this order)
# - prefix a daemon with a ! to disable it
# - prefix a daemon with a @ to start it up in the background
#
DAEMONS=(syslog-ng !hotplug !pcmcia network netfs crond alsa slim cups)
# End of file
My rc.local:
#!/bin/bash
#
# /etc/rc.local: Local multi-user startup script.
#
iwconfig wlan0 ESSID "maj.ittp.pl"
ifconfig wlan0 192.168.0.104
route add default gw 192.168.0.1
mount /dev/sda1
mount /dev/sda7
mount /dev/sda8
# echo 1 > /proc/sys/net/ipv4/ip_forward
# iptables -t nat -F
# iptables -t mangle -F
# iptables -t filter -F
# iptables -t nat -I POSTROUTING -s 10.200.0.0/16 -d 0/0 -j SNAT --to 192.168.0.104
Greetings
]]>