?
Solved

How do configure /etc/network/interfaces file to work with encryption?

Posted on 2006-11-28
4
Medium Priority
?
789 Views
Last Modified: 2013-11-09
I have a Linksys wmp-11 wireless PCI card on my Debian system and trying to connect to a Linksys 4 port router.  More accurately, I'm trying to get it to work with encryption turned on.  It works fine without encryption.

Here's the relevant portion of my /etc/network/interface file:

wireless_mode Ad-Hoc
wireless_essid linksys
wireless_key 26-hex-digits

I've tried a bunch of other settings but couldn't get anything to work.
0
Comment
Question by:nysus1
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
4 Comments
 
LVL 7

Accepted Solution

by:
dlangr earned 2000 total points
ID: 18031469
Without dhcp:
iface wlan0 inet
       address 192.168.123.5
       netmask 255.255.255.0
       gateway 192.168.123.1
       wireless_essid XXXXX
       wireless_channel 6
       wireless_mode Managed
       wireless_key XXXXXXXXXX (26 hex digits)
       wireless_rate 54M auto

With dhcp
iface wlan0 inet dhcp
      wireless_essid XXXXX
      wireless_channel 6
      wireless_mode managed
      wireless_key XXXXXXXXXX (26 hex digits)
      wireless_rate 54M auto


0
 
LVL 7

Expert Comment

by:dlangr
ID: 18031482
note that mode has to be managed if connecting to a linksys router, as ad-hoc networking is for computer to computer connections without involving a wireless router or AP
0
 

Author Comment

by:nysus1
ID: 18031840
Re the managed setting.  I had it that way initially.  The ad-hoc setting was there out of desperation.

The good news is I got it working.  The frustrating thing is that I'm not sure what fixed it.  I disabled encryption on the router and removed the encryption key from the interface file.   But the 'iwconfig eth1' told me the password key was still being used; even after issuing a '/etc/init.d/networking restart' command.  When I renabled encryption on the router and the interface file and did 'iwconfig eth1 key on' it started to work.

My question is: Why did I have to issue that command?  Doesn't '/etc/init.d/networking restart' take care of that?
0
 
LVL 7

Expert Comment

by:dlangr
ID: 18043934
Excerpt from http://www.linuxcommand.org/man_pages/iwconfig8.html 

Some cards may not apply changes done  through  Wireless  Extensions  immediately  (they  may  wait to aggregate the changes or apply it only when the card is brought up  via  ifconfig).  This command  (when  available)  forces the card to apply all pending changes. This is normally not needed, because the  card  will eventually apply the changes, but can be useful for debugging.
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

ADCs have gained traction within the last decade, largely due to increased demand for legacy load balancing appliances to handle more advanced application delivery requirements and improve application performance.
For many of us, the  holiday season kindles the natural urge to give back to our friends, family members and communities. While it's easy for friends to notice the impact of such deeds, understanding the contributions of businesses and enterprises i…
There's a multitude of different network monitoring solutions out there, and you're probably wondering what makes NetCrunch so special. It's completely agentless, but does let you create an agent, if you desire. It offers powerful scalability …
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
Suggested Courses
Course of the Month9 days, 11 hours left to enroll

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question