LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Wireless Networking (https://www.linuxquestions.org/questions/linux-wireless-networking-41/)
-   -   wlan0 has ip address but no network access (https://www.linuxquestions.org/questions/linux-wireless-networking-41/wlan0-has-ip-address-but-no-network-access-164647/)

sichen 03-31-2004 02:39 PM

wlan0 has ip address but no network access
 
I am getting mandrake 10.0 to run on my dell inspiron 600m, and I've gotten the driver for the intel wireless working and can get an IP address from it. Even though the IP address is valid, though, I still cannot get into my network or use the internet. I checked the obvious: my WEP key is entered correctly. Why is that?

Some clues:
when I do "ifup wlan0" I get a SIOCADDRT: File exists, followed by "done" Subsequent attempts to do "ifup wlan0" does not get the "SIOCADDRT: File exists" message.
when I do "service network start" everything comes up fine.

Here is my /etc/sysconfig/network-scripts/ifcfg-wlan0 file:
DEVICE=wlan0
BOOTPROTO=dhcp
ONBOOT=yes
TYPE=wireless
ESSID=linksys
KEY=AAAAAAAAAAAAAAAAAAAAAAAAAA
CHANNEL=6
GATEWAY=192.168.1.1

Here is what I get with "iwconfig" at the command line:
wlan0 IEEE 802.11b ESSID:"linksys" Nickname:"localhost"
Mode:Managed Frequency:2.437GHz Access Point: 00:0C:41:70:FE:EC
Bit Rate=11Mb/s
RTS thr=1600 B Fragment thr=2344 B
Encryption key:AAAA-AAAA-AAAA-AAAA-AAAA-AAAA-AA Security mode:restricted
Power Management:off
Link Quality:0/100 Signal level:-30 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

Here is what I get with "ifconfig" at the command line:
eth0 Link encap:Ethernet HWaddr 00:0D:56:DD:90:73
inet6 addr: fe80::20d:56ff:fedd:9073/64 Scope:Link
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:25 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:3934 (3.8 Kb)
Interrupt:11

eth0:9 Link encap:Ethernet HWaddr 00:0D:56:DD:90:73
inet addr:127.255.255.255 Bcast:127.255.255.255 Mask:255.0.0.0
UP BROADCAST MULTICAST MTU:1500 Metric:1
Interrupt:11

lo 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:86 errors:0 dropped:0 overruns:0 frame:0
TX packets:86 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:6506 (6.3 Kb) TX bytes:6506 (6.3 Kb)

wlan0 Link encap:Ethernet HWaddr 00:0C:F1:07:FD:6E
inet addr:192.168.1.107 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::20c:f1ff:fe07:fd6e/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:52 errors:0 dropped:0 overruns:0 frame:0
TX packets:11 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:6584 (6.4 Kb) TX bytes:2430 (2.3 Kb)
Interrupt:11 Memory:fafef000-fafeffff


Here is what happened after I plugged in an ethernet cable, and the regular eth0 works:
eth0 Link encap:Ethernet HWaddr 00:0D:56:DD:90:73
inet addr:192.168.1.105 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::20d:56ff:fedd:9073/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:89 errors:0 dropped:0 overruns:0 frame:0
TX packets:116 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:15400 (15.0 Kb) TX bytes:18074 (17.6 Kb)
Interrupt:11

lo 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:88 errors:0 dropped:0 overruns:0 frame:0
TX packets:88 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:6606 (6.4 Kb) TX bytes:6606 (6.4 Kb)

wlan0 Link encap:Ethernet HWaddr 00:0C:F1:07:FD:6E
inet addr:192.168.1.107 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::20c:f1ff:fe07:fd6e/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:100 errors:0 dropped:0 overruns:0 frame:0
TX packets:18 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:12013 (11.7 Kb) TX bytes:3240 (3.1 Kb)
Interrupt:11 Memory:fafef000-fafeffff

Can anyone help? Thanks in advance! Si Chen

david_ross 04-01-2004 12:02 PM

Moved to Wireless


All times are GMT -5. The time now is 05:06 AM.