You are not logged in.
Hi,
i set up my wireless network according to the archlinux wiki. It works fine, except that I can only send packets, not receive.
output below:
bash-3.2# hwdetect --show-net
NET : sky2 bluetooth mac80211 rfkill iwl3945 cfg80211
bash-3.2# hwdetect --show-net
NET : sky2 bluetooth mac80211 rfkill iwl3945 cfg80211
bash-3.2# lsmod | grep iwl3945
iwl3945 90100 0
rfkill 10008 2 iwl3945
mac80211 158876 1 iwl3945
led_class 5508 1 iwl3945
cfg80211 25224 2 iwl3945,mac80211
bash-3.2# iwconfig
lo no wireless extensions.
eth0 no wireless extensions.
wmaster0 no wireless extensions.
wlan0 IEEE 802.11abg ESSID:"deutschland"
Mode:Managed Frequency:2.462 GHz Access Point: 00:1E:2A:0B:0B:5A
Bit Rate=54 Mb/s Tx-Power=15 dBm
Retry min limit:7 RTS thr:off Fragment thr=2352 B
Encryption key:8184-1902-72 Security mode:open
Power Management:off
Link Quality=99/100 Signal level:-23 dBm Noise level=-127 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0
bash-3.2# ifconfig wlan0 up
bash-3.2# iwlist wlan0 scan | less
Cell 03 - Address: 00:1E:2A:0B:0B:5A
ESSID:"deutschland"
Mode:Master
Channel:11
Frequency:2.462 GHz (Channel 11)
Quality=99/100 Signal level:-24 dBm Noise level=-127 dBm
Encryption key:on
Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 6 Mb/s
12 Mb/s; 24 Mb/s; 36 Mb/s; 9 Mb/s; 18 Mb/s
48 Mb/s; 54 Mb/s
Extra:tsf=0000011ac77de181
Extra: Last beacon: 70ms ago
bash-3.2# iwconfig wlan0 essid deutschland key *****
bash-3.2# dhcpcd wlan0
wlan0: dhcpcd 4.0.4 starting
wlan0: broadcasting for a lease
wlan0: offered 192.168.1.2 from 192.168.1.1
wlan0: checking 192.168.1.2 is available on attached networks
wlan0: acknowledged 192.168.1.2 from 192.168.1.1
wlan0: leased 192.168.1.2 for 86400 seconds
bash-3.2# ping -I wlan0 -c 3 www.google.com
PING www.l.google.com (66.249.89.99) from 192.168.1.2 wlan0: 56(84) bytes of data.
From 192.168.1.2 icmp_seq=1 Destination Host Unreachable
From 192.168.1.2 icmp_seq=2 Destination Host Unreachable
From 192.168.1.2 icmp_seq=3 Destination Host Unreachable
--- www.l.google.com ping statistics ---
3 packets transmitted, 0 received, +3 errors, 100% packet loss, time 2011ms
, pipe 3
Any ideas would be greatly appreciated.
Thank you,
Offline
Looks like you don't have a default gateway in your route table... What is the output of `route -n`?
Can you ping 192.168.1.1 (the host that offered you your DHCP lease)?
Are you familiar with our Forum Rules, and How To Ask Questions The Smart Way?
BlueHackers // fscanary // resticctl
Offline
bash-3.2# iwlist wlan0 scan
wlan0 Scan completed :
Cell 01 - Address: 00:17:9A:2C:7A:4A
ESSID:"dlink"
Mode:Master
Channel:11
Frequency:2.462 GHz (Channel 11)
Quality=98/100 Signal level:-26 dBm Noise level=-127 dBm
Encryption key:off
IE: Unknown: 2D1A6E101DFFFF000000000000000000000000000000000000000000
Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 6 Mb/s
9 Mb/s; 12 Mb/s; 18 Mb/s; 24 Mb/s; 36 Mb/s
48 Mb/s; 54 Mb/s
Extra:tsf=000002511c9f0180
Extra: Last beacon: 1586ms ago
Cell 02 - Address: 00:1E:C7:AF:10:E1
ESSID:"2WIRE770"
Mode:Master
Channel:6
Frequency:2.437 GHz (Channel 6)
Quality=40/100 Signal level:-85 dBm Noise level=-127 dBm
Encryption key:off
Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 6 Mb/s
9 Mb/s; 12 Mb/s; 18 Mb/s; 24 Mb/s; 36 Mb/s
48 Mb/s; 54 Mb/s
Extra:tsf=0000000001f8b181
Extra: Last beacon: 2096ms ago
That was the beginning
bash-3.2# iwconfig wlan0 essid "dlink" key:off
iwconfig: unknown command "key:off"
bash-3.2# iwconfig wlan0 essid "dlink"
bash-3.2# dhcpcd wlan0
wlan0: dhcpcd 4.0.7 starting
wlan0: broadcasting for a lease
wlan0: offered 192.168.0.196 from 192.168.0.1
wlan0: checking 192.168.0.196 is available on attached networks
wlan0: acknowledged 192.168.0.196 from 192.168.0.1
wlan0: leased 192.168.0.196 for 86400 seconds
DHCPCD succeeded
bash-3.2# ping -c 3 www.google.com
ping: unknown host www.google.com
pinging google fails
bash-3.2# ping -c 3 192.168.0.2
PING 192.168.0.2 (192.168.0.2) 56(84) bytes of data.
64 bytes from 192.168.0.2: icmp_seq=1 ttl=64 time=0.024 ms
64 bytes from 192.168.0.2: icmp_seq=2 ttl=64 time=0.029 ms
64 bytes from 192.168.0.2: icmp_seq=3 ttl=64 time=0.027 ms--- 192.168.0.2 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 1999ms
rtt min/avg/max/mdev = 0.024/0.026/0.029/0.006 ms
pinging ROUTER succeeds...
bash-3.2# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 wlan0
0.0.0.0 192.168.0.1 0.0.0.0 UG 0 0 0 eth0
SO where is the trouble... And I am a 5 hr old Arch Newbie, and a 3 month old serious linux newbie..!
Help please.
Last edited by jaydoc (2008-12-30 09:45:57)
It takes a very unusual mind to undertake the analysis of the obvious - A N Whitehead
Offline
Post some:
# ifconfig -a
# cat /etc/resolv.conf
Offline
@string...
You are onto both my troubles..! I solved the first silly post with your help and that of others. Thanks once again.
I did what you suggested...
bash-3.2# ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:1E:68:12:EB:1C
inet addr:192.168.0.2 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::21e:68ff:fe12:eb1c/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:12106 errors:0 dropped:0 overruns:0 frame:0
TX packets:14527 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:6417117 (6.1 Mb) TX bytes:2258494 (2.1 Mb)
Interrupt:17lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:74 errors:0 dropped:0 overruns:0 frame:0
TX packets:74 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:5440 (5.3 Kb) TX bytes:5440 (5.3 Kb)wlan0 Link encap:Ethernet HWaddr 00:1C:BF:59:3E:8B
inet addr:192.168.0.196 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::21c:bfff:fe59:3e8b/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:13227 errors:0 dropped:0 overruns:0 frame:0
TX packets:192 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:8230861 (7.8 Mb) TX bytes:12720 (12.4 Kb)wmaster0 Link encap:UNSPEC HWaddr 00-1C-BF-59-3E-8B-00-00-00-00-00-00-00-00-00-00
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 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:0 (0.0 b) TX bytes:0 (0.0 b)bash-3.2# ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:1E:68:12:EB:1C
inet addr:192.168.0.2 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::21e:68ff:fe12:eb1c/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:12108 errors:0 dropped:0 overruns:0 frame:0
TX packets:14527 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:6417245 (6.1 Mb) TX bytes:2258494 (2.1 Mb)
Interrupt:17lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:74 errors:0 dropped:0 overruns:0 frame:0
TX packets:74 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:5440 (5.3 Kb) TX bytes:5440 (5.3 Kb)wlan0 Link encap:Ethernet HWaddr 00:1C:BF:59:3E:8B
inet addr:192.168.0.196 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::21c:bfff:fe59:3e8b/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:13228 errors:0 dropped:0 overruns:0 frame:0
TX packets:192 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:8230921 (7.8 Mb) TX bytes:12720 (12.4 Kb)wmaster0 Link encap:UNSPEC HWaddr 00-1C-BF-59-3E-8B-00-00-00-00-00-00-00-00-00-00
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 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:0 (0.0 b) TX bytes:0 (0.0 b)
and then
bash-3.2# cat /etc/resolv.conf
# Generated by dhcpcd from eth0, wlan0
# /etc/resolv.conf.head can replace this line
nameserver 192.168.0.1
# /etc/resolv.conf.tail can replace this line
bash-3.2#
So what is it...? is there a conflict b/w my eth and wlan..?
It takes a very unusual mind to undertake the analysis of the obvious - A N Whitehead
Offline
Well your router seems to be 192.168.0.1 rather than 192.168.0.2 (which seems to be assigned to your eth0 interface). I guess the best thing for you to do would be to set up netcfg.. I'm going to go ahead and make an assumption here: you don't have netcfg installed and you can't install it because you don't have internet access. Could you post /etc/rc.conf ? Perhaps I'd be able to help you make some proper configurations.
Offline
/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"
# USEDIRECTISA: use direct I/O requests instead of /dev/rtc for hwclock
# 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/consoletrans
# USECOLOR: use ANSI color sequences in startup messages
#
LOCALE="en_US.utf8"
HARDWARECLOCK="localtime"
USEDIRECTISA="no"
TIMEZONE="Asia/Kolkata"
KEYMAP="us"
CONSOLEFONT=
CONSOLEMAP=
USECOLOR="yes"# -----------------------------------------------------------------------
# HARDWARE
# -----------------------------------------------------------------------
#
# MOD_AUTOLOAD: Allow autoloading of modules at boot and when needed
# MOD_BLACKLIST: Prevent udev from loading these modules
# MODULES: Modules to load at boot-up. Prefix with a ! to blacklist.
#
# NOTE: Use of 'MOD_BLACKLIST' is deprecated. Please use ! in the MODULES ar$
#
MOD_AUTOLOAD="yes"
#MOD_BLACKLIST=() #deprecated
MODULES=(libphy tg3 iwl3945 snd-mixer-oss snd-pcm-oss snd-hwdep snd-page-all$# Scan for LVM volume groups at startup, required if you use LVM
USELVM="yes"-----------------------------------------------------------------------
# NETWORKING
# -----------------------------------------------------------------------
#
# HOSTNAME: Hostname of machine. Should also be put in /etc/hosts
#
HOSTNAME="myhost"# Use 'ifconfig -a' or 'ls /sys/class/net/' to see all available interfaces.
#
# 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
# - no hyphens in your interface names - Bash doesn't like it
#
# DHCP: Set your interface to "dhcp" (eth0="dhcp")
# Wireless: See network profiles beloweth0="eth0 192.168.0.2 netmask 255.255.255.0 broadcast 192.168.0.255"
INTERFACES=(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 (dialog package require$
- prefix an entry with a ! to disable it
#
# Network profiles are found in /etc/network.d
#
# This now requires the netcfg package
#
#NETWORKS=(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 network netfs crond alsa hal fam kde)
@string, thanks for sticking through this for me, but I can actually browse the web using the eth0 connection, and am typing this from Konqueror in Arch. I did download the netcfg package after seeing this post and install it. the output from /etc/rc.conf is after i installed netcfg
It takes a very unusual mind to undertake the analysis of the obvious - A N Whitehead
Offline
Ah. Gut, read/follow this: http://wiki.archlinux.org/index.php/Network_Profiles
Offline
Well, at last I had to resort to getting some GUI help..! I used WICD to set up the network and followed what was suggested in the WICD wiki for Arch. I however made these adjsutments to my rc.conf
the eth0 interface was originally as follows.. eth0=eth 192.168.0.2 netmask 255.255.255.0 broadcast 192.168.0.255
and there was no entry in the interfaces for wlan0.
I made an entry for wlan0 in the interfaces so that part of my rc.conf read as follows
eth0="dhcp"
wlan="dhcp"
INTERFACES=(!eth0,!wlan0)
I made sure I followed what was exactly suggested in the wicd wiki and there it was - a working wifi connection right from boot....
ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:1E:68:12:EB:1C
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 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:0 (0.0 b) TX bytes:0 (0.0 b)
Interrupt:17lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:144 errors:0 dropped:0 overruns:0 frame:0
TX packets:144 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:4760 (4.6 Kb) TX bytes:4760 (4.6 Kb)wlan0 Link encap:Ethernet HWaddr 00:1C:BF:59:3E:8B
inet addr:192.168.0.132 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::21c:bfff:fe59:3e8b/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:95934 errors:0 dropped:0 overruns:0 frame:0
TX packets:71588 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:121714118 (116.0 Mb) TX bytes:8171552 (7.7 Mb)wmaster0 Link encap:UNSPEC HWaddr 00-1C-BF-59-3E-8B-00-00-00-00-00-00-00-00-00-00
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 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:0 (0.0 b) TX bytes:0 (0.0 b)
cat /etc/resolv.conf
nameserver 192.168.0.1
@string.... Could you tell me how the problem was resolved...? I wish to learn what was wrong with whatever I was trying to do manually, so I can understand all this a little better.
It takes a very unusual mind to undertake the analysis of the obvious - A N Whitehead
Offline
eth0="dhcp" wlan="dhcp" INTERFACES=(!eth0,!wlan0)
First of all it should be wlan0="dhcp" -- but it actually doesn't matter. The first two lines instruct how to 'treat' eth0, wlan(0) but the 3rd one disables the managing of Both interfaces. The basic solution to your problem, as I saw it, was to: disable eth0 and configure wlan0. What you did was "disable" both interfaces and then have wicd enable/manage/etc. only wlan0. You did good Hasselhoff. When you have a chance, do look into netcfg. Netcfg makes your life more rich, diverse and wonderful. [personally since I started using netcfg, more girls want to date me]
Offline