FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian User

 
 
LinkBack Thread Tools
 
Old 02-03-2009, 03:34 AM
Celejar
 
Default Configuring wlan on Debian Base installation

On Mon, 2 Feb 2009 22:13:46 -0600
Jack <jackofdiamonds11@gmail.com> wrote:

> I recently installed a base-install of Debian linux on an old laptop.
> I have a netgear WG511T wifi pci card, which I was successful in
> installing the madwifi drivers for. I'm almost certain that the
> drivers are working fine, because I am able to use my card and scan
> for wireless networks.
>
> I'm not sure if I'm just setting this up wrong (I'm still new to
> linux), or if something else is wrong, but my problem is this: I use
> ifconfig to assign an IP address to wlan0, iwconfig to set the ssid
> and key, and then I add a route to the gateway
>
> ifconfig wlan0 192.168.2.138 up
> iwconfig wlan0 essid "<My network ssid>" key <My hexadecimal WEP key>
> route add default gw 192.168.2.1

At this point, what is the output of 'iwconfig wlan0'?

Celejar
--
mailmin.sourceforge.net - remote access via secure (OpenPGP) email
ssuds.sourceforge.net - A Simple Sudoku Solver and Generator


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 02-03-2009, 04:36 AM
Thierry Chatelet
 
Default Configuring wlan on Debian Base installation

On Tuesday 03 February 2009 05:34:51 Celejar wrote:
> On Mon, 2 Feb 2009 22:13:46 -0600
>
> Jack <jackofdiamonds11@gmail.com> wrote:
> > ifconfig wlan0 192.168.2.138 up
> > iwconfig wlan0 essid "<My network ssid>" key <My hexadecimal WEP key>
> > route add default gw 192.168.2.1
>
> At this point, what is the output of 'iwconfig wlan0'?
>
> Celejar
> --

And can you give us your /etc/network/interfaces


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 02-03-2009, 10:14 PM
Jack
 
Default Configuring wlan on Debian Base installation

iwconfig wlan0:

wlan0 IEEE 802.11g ESSID:"WEINSTEIN" Nickname:""
Mode:Managed Frequency:2.462 GHz Access Point: 00:0F:B5:5B:0DC
Bit Rate:24 Mb/s Tx-Power:18 dBm Sensitivity=1/1
Retryff RTS thrff Fragment thrff
Encryption key:864E-3FBC-C7 Security mode:restricted
Power Managementff
Link Quality=33/70 Signal level=-58 dBm Noise level=-91 dBm
Rx invalid nwid:245 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0



As for /etc/network/interfaces, I have attempted inserting

auto wlan0
iface wlan0 inet static
address 192.168.2.138
netmask 255.255.255.0
gateway 192.168.2.1

However, this results in the same problems as I am having. So
currently, I have /etc/network/interfaces set only to it's default
content:

auto lo
iface lo inet loopback

--
Jack


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 02-04-2009, 02:38 AM
Celejar
 
Default Configuring wlan on Debian Base installation

On Tue, 3 Feb 2009 17:14:23 -0600
Jack <jackofdiamonds11@gmail.com> wrote:

> iwconfig wlan0:
>
> wlan0 IEEE 802.11g ESSID:"WEINSTEIN" Nickname:""
> Mode:Managed Frequency:2.462 GHz Access Point: 00:0F:B5:5B:0DC
> Bit Rate:24 Mb/s Tx-Power:18 dBm Sensitivity=1/1
> Retryff RTS thrff Fragment thrff
> Encryption key:864E-3FBC-C7 Security mode:restricted
> Power Managementff
> Link Quality=33/70 Signal level=-58 dBm Noise level=-91 dBm
> Rx invalid nwid:245 Rx invalid crypt:0 Rx invalid frag:0
> Tx excessive retries:0 Invalid misc:0 Missed beacon:0

This looks right; you're associated. Most common wireless
configuration problems would result in a failed association.

What about 'ifconfig wlan0'?

Celejar
--
mailmin.sourceforge.net - remote access via secure (OpenPGP) email
ssuds.sourceforge.net - A Simple Sudoku Solver and Generator


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 02-04-2009, 02:58 AM
Celejar
 
Default Configuring wlan on Debian Base installation

On Tue, 3 Feb 2009 21:50:39 -0600
Jack <jackofdiamonds11@gmail.com> wrote:

[Please respond on list.]

> ifconfig wlan0:
>
> wlan0 Link encap:Ethernet HWaddr 00:0F:B5:62:BD:27
> inet addr:192.168.2.138 Bcast:192.168.2.255 Mask:255.255.255.0
> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
> RX packets:0 errors:0 dropped:0 overruns:0 frame:0
> TX packets:12 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:0
> RX bytes:0 (0.0 b) TX bytes:504 (504.0 b)
>
>
> looks to me as if it is transmitting fine, but it is not receiving...

So to recap, what doesn't work? IIRC, you wrote that you can't even
ping the gateway? What is the routing table ('route')?

Celejar
--
mailmin.sourceforge.net - remote access via secure (OpenPGP) email
ssuds.sourceforge.net - A Simple Sudoku Solver and Generator


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 02-04-2009, 03:07 AM
Jack
 
Default Configuring wlan on Debian Base installation

To recap, pinging the gateway results in the following:
PING 192.168.2.1 (192.168.2.1) 56(84) bytes of data.
>From 192.168.2.138 icmp_seq=1 Destination Host Unreachable
>From 192.168.2.138 icmp_seq=2 Destination Host Unreachable
>From 192.168.2.138 icmp_seq=3 Destination Host Unreachable
>From 192.168.2.138 icmp_seq=4 Destination Host Unreachable

--- 192.168.2.1 ping statistics ---
4 packets transmitted, 0 received, +4 errors, 100% packet loss, time 3035ms
, pipe 3


And the route table:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.2.0 * 255.255.255.0 U 0 0 0 wlan0
default 192.168.2.1 0.0.0.0 UG 0 0 0 wlan0



--
Jack


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 02-04-2009, 03:14 AM
Celejar
 
Default Configuring wlan on Debian Base installation

On Tue, 3 Feb 2009 22:07:24 -0600
Jack <jackofdiamonds11@gmail.com> wrote:

> To recap, pinging the gateway results in the following:
> PING 192.168.2.1 (192.168.2.1) 56(84) bytes of data.
> From 192.168.2.138 icmp_seq=1 Destination Host Unreachable
> From 192.168.2.138 icmp_seq=2 Destination Host Unreachable
> From 192.168.2.138 icmp_seq=3 Destination Host Unreachable
> From 192.168.2.138 icmp_seq=4 Destination Host Unreachable
>
> --- 192.168.2.1 ping statistics ---
> 4 packets transmitted, 0 received, +4 errors, 100% packet loss, time 3035ms
> , pipe 3
>
>
> And the route table:
> Kernel IP routing table
> Destination Gateway Genmask Flags Metric Ref Use Iface
> 192.168.2.0 * 255.255.255.0 U 0 0 0 wlan0
> default 192.168.2.1 0.0.0.0 UG 0 0 0 wlan0

How about the ARP table ('arp')?

Celejar
--
mailmin.sourceforge.net - remote access via secure (OpenPGP) email
ssuds.sourceforge.net - A Simple Sudoku Solver and Generator


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 02-04-2009, 03:22 AM
Jack
 
Default Configuring wlan on Debian Base installation

arp:
Address HWtype HWaddress Flags Mask Iface
192.168.2.1 (incomplete) wlan0

--
Jack


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 02-04-2009, 03:36 AM
Celejar
 
Default Configuring wlan on Debian Base installation

On Tue, 3 Feb 2009 22:22:47 -0600
Jack <jackofdiamonds11@gmail.com> wrote:

[Please reply only to the list, as per the code of conduct.]

> arp:
> Address HWtype HWaddress Flags Mask Iface
> 192.168.2.1 (incomplete) wlan0

Ok, so arp isn't working; the IP address of the router isn't getting
resolved to its MAC address. Nothing will work without that. I've
occasionally been baffled by this on my systems, and sometimes manually
entering the arp mapping can enable connectivity. It's worth a try, at
least to help narrow down the exact source of your problem:

'arp -s 192.168.2.1 mac_address_of_the_router'

Celejar
--
mailmin.sourceforge.net - remote access via secure (OpenPGP) email
ssuds.sourceforge.net - A Simple Sudoku Solver and Generator


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 02-04-2009, 03:53 AM
Jack
 
Default Configuring wlan on Debian Base installation

Right. As suggested, I manually added my router to the ARP table.
Pinging the gateway now results with:

PING 192.168.2.1 (192.168.2.1) 56(84) bytes of data.

--- 192.168.2.1 ping statistics ---
4 packets transmitted, 0 received, 100% packet loss, time 3009ms

So perhaps the host in not unreachable now, but is simply not sending a reply?

--
Jack


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 

Thread Tools




All times are GMT. The time now is 11:30 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org