Koozali.org: home of the SME Server

Wireless Gateway - Help Needed

Dean Mumby

Wireless Gateway - Help Needed
« on: June 01, 2002, 06:02:36 AM »
Hi there
Well first off I have succesfully installed my DLink DWL-520 wireless card in my SME 5.1.2 server . I am using linux-lwan-ng 1.0.13 drivers and I have got the wlan0 interface starting at boot time. I have created an ifcfg-wlan0 file in /etc/sysconfig/network-scripts and I can ping my gateway. I am using the dwl-520 as my internet connection . To get out onto the net I had to add a default gw and add my isp dns server to /etc/reolve.conf. So far everything is just jamming. My next problem to tackle is getting sme to use this as the external interface ( ie Ethernet 1) .
Here is were I come a little unstuck, If anyone has any suggestions I would really appreciate it , I have this feeling that I am
only a matter of hours away from removing the second hard drive in my server which is currently winXP for good. I am so tired of dual booting and WinXP.
I realize it is the weekend , I just hope someone who was involved in the other disussions held recently on wireless
cards has an idea.

Well thanks ,
Have a good one
Dean Mumby

Duncan

Re: Wireless Gateway - Help Needed
« Reply #1 on: June 01, 2002, 07:54:57 AM »
For different reasons (but probably the the same problems) I am trying to get my wireless card recognised as a second internal interface.

I found this thread in the devinfo lists which might hold some clues.
http://www.mail-archive.com/devinfo@lists.e-smith.org/msg07583.html

I am curious to know how you got the card set as ifcfg-wlan0 in the /etc/sysconfig/network-scripts as i used the /etc/pcmcia/network/opts.

I seem to remember seeing somewhere people setting up their cards as eth1 etc which would go a long way to solving these problems.

Anyway, i am working on a similar solution.

Regards Duncan

Duncan

Re: Wireless Gateway - Help Needed
« Reply #2 on: June 04, 2002, 06:28:52 AM »
Dean, after playing around with this over the weekend i found that getting the wireless cards recognised by sme was going to be harder than i expected, so in the end i just edited the appropriate templates involved.

In my case it wasnt so bad as i am working on getting secure communications going between remote sme machines.

I shied away from the dwl-520 cards when purchasing mine, but looking at the pricing of them, they would be great for short links (ie accross roads).

So a couple of questions if you dont mind.

1) Was there any great difficulty in installing the card. (Define difficulty in a linux enviroment ;-) )
2) Can the units be fitted with external antennas
3) Since you are using them for internet access, i am curious as to what type of distance you are getting out of them.

My isp keeps threatening to go wireless in the near future so i will have to tackle your situation sooner or later.


Regards Duncan

gavin

Re: Wireless Gateway - Help Needed
« Reply #3 on: July 10, 2002, 01:47:21 PM »
Just got myself a DWL-520 card and was wondering if you could enlighten me as to how you added the card to your system and which templates were updated.

Is there a howto around on this ??


Intention is build a VPN between 2 SME servers for a client's need.

They are in 2 buildings seperated by another.


Regards,
Gavin

Allen

Re: Wireless Gateway - Help Needed
« Reply #4 on: July 11, 2002, 04:59:05 AM »
Dear Duncan:

In your 7/2/2002 message (http://www.e-smith.org/bboard//read.php?f=1&i=16241&t=16232) it sounded like you got two different Wireless cards working.  What templates did you change.  Do you have any notes you are willing to share?  What did you ifcfg-wlan0 file end up looking like?

Allen

Duncan wrote:
>
> Dean, after playing around with this over the weekend i found
> that getting the wireless cards recognised by sme was going
> to be harder than i expected, so in the end i just edited the
> appropriate templates involved.
>
> In my case it wasnt so bad as i am working on getting secure
> communications going between remote sme machines.
>
> I shied away from the dwl-520 cards when purchasing mine, but
> looking at the pricing of them, they would be great for short
> links (ie accross roads).
>
> So a couple of questions if you dont mind.
>
> 1) Was there any great difficulty in installing the card.
> (Define difficulty in a linux enviroment ;-) )
> 2) Can the units be fitted with external antennas
> 3) Since you are using them for internet access, i am curious
> as to what type of distance you are getting out of them.
>
> My isp keeps threatening to go wireless in the near future so
> i will have to tackle your situation sooner or later.
>
>
> Regards Duncan

Duncan

Re: Wireless Gateway - Help Needed
« Reply #5 on: July 13, 2002, 07:03:57 AM »
The cards are different, ones a pci card and ones a pcmcia card - so the methods to get them to work are quite different.

I am happy to help (and probably should do a howto) but my notes are in my head.

If you have specific questions, post away and ill help where i can. Perhaps start a new thread so others can join in.

Regards Duncan

Allen

Re: Wireless Gateway - Help Needed
« Reply #6 on: July 22, 2002, 11:43:11 PM »
Ducan, I am willing to Help you write HOWTO, if you would like.

A few questions for you:
      1) What Drivers did you use?
      2) Did you had to update any of the  pcitables, or other
          wardware idenfication files?
     3)  Where you able to load the  wireless card as eth1?


Currently this is how my  notes are looking:
1)  Load E-smith 5.1.2
         Enable SSH & Telenet for public
         modify /etc/passwd by making /bin/bash as the shell

2) STEP 1: Gather up these RedHat 7.1 files from your closest rpmfind.net mirror site.
   cpp-2.96-85.i386.rpm
   gcc-2.96-85.i386.rpm
   glibc-devel-2.2.4-19.i386.rpm  // ~9MB download
   kernel-headers-2.4.9-31.i386.rpm
   kernel-source-2.2.19-7.0.8.i386.rpm  // ~18MB download
   make-3.79.1-5.i386.rpm

3) rpm -ivh *

4) add link to run pcmcia at run level 7 (before network)
    ln -s /etc/rc.d/init.d/pcmcia /etc/rc.d/rc7.d/S09pcmcia

5) start pcmcia (can reboot or)
    /etc/rc.d/init.d/pcmcia start

6) check card status:
    cardctl status
    cardctl config
    cardctl ident

7) Set up PCMCIA source config file:
   A) link correct config file (uname -a)
      ln -s /usr/src/linux/configs/kernel-2.2.19-i586.config /usr/src/linux/.config
   b) make config file for pcmcia:
      cd /usr/src/linux/pcmcia-cs-3.1.24
      make config
           linux source directory=/usr/src/linux
           trusting=y
           include 32bus support= (y/n)
           PNP bios resource checking=y
           read settings from currently running kernel= 1
           modules install directory=/lib/modules/2.2.19-7.0.8
           System V init script layout= y
           top-level directory for RC scripts=/etc/rc.d
8) Compiler Wlan-ng Driver:
   A) Download & untar linux-wlan-ng-0.1.14.tar.gz
   B) make mrproper
   C) make config
         PCMCI card service: Y
         PLX service : N
         PCI service : N
         USB service : N
         linux source: /usr/src/linux
         pcmcia-cs source: /usr/src/linux/pcmcia-cs-3.1.24
         kernel pcmcia : N
         Alternate target install : [blank enter]
         pcmcia script dir: /etc/pcmcia
         module install directory : /lib/modules/2.2.19-7.0.8
         Targe Architecture : i386
         Prefix for build host compiler : [blank enter]
         cross compiler : N
         build for debugging : N
    d) make all
    e) make install
            (if you get an error, you might want to move /lib/modules/2.219-7.0.8/scsi/megaide.o to /
             then move it back after you run make install again.
             example:  mv /lib/modules/2.2.19-7.0.8/scsi/megaide.o /
                       make install
                       mv /megaide.o /lib/modules/2.2.19-7.0.8/scsi/.
             )
    F) pico /etc/pcmcia/wlan-ng.opts
    G) pico /etc/pcmcia/network.opts
    H) restart pcmcia
          /etc/rc.d/init.d/pcmcia restart
    I) Test to see if wlan0 came up
          ifconfig -a
9) Configure wlan0:
    A) User eth1 as a template for ifcfg-wlan0
          cp /etc/sysconfig/network-scripts/ifcfg-eth1 /etc/sysconfig/network-scripts/ifcfg-wlan0
          pico /etc/sysconfig-network-scripts/ifcfg-wlan0
              (change Device ID & ipaddr if needed)
    b) start wlan0
        ifup wlan0

Duncan

Re: Wireless Gateway - Help Needed
« Reply #7 on: July 29, 2002, 09:59:05 AM »
Allen wrote:
>
> Ducan, I am willing to Help you write HOWTO, if you would like.
>
> A few questions for you:
>       1) What Drivers did you use?
The latest pcmcia and wlan drivers from

http://pcmcia-cs.sourceforge.net/ftp/
http://www.linux-wlan.com/

>       2) Did you had to update any of the  pcitables, or other
>           wardware idenfication files?
No
>      3)  Where you able to load the  wireless card as eth1?
Again no, which presents a few problems with respect to templates
>
>
> Currently this is how my  notes are looking:
> 1)  Load E-smith 5.1.2
>          Enable SSH & Telenet for public
>          modify /etc/passwd by making /bin/bash as the shell
>
> 2) STEP 1: Gather up these RedHat 7.1 files from your closest
> rpmfind.net mirror site.
>    cpp-2.96-85.i386.rpm
>    gcc-2.96-85.i386.rpm
>    glibc-devel-2.2.4-19.i386.rpm  // ~9MB download
>    kernel-headers-2.4.9-31.i386.rpm
>    kernel-source-2.2.19-7.0.8.i386.rpm  // ~18MB download
>    make-3.79.1-5.i386.rpm
I followed D.Mays howto and used his downloads - but essentially the same
>
> 3) rpm -ivh *
>
> 4) add link to run pcmcia at run level 7 (before network)
>     ln -s /etc/rc.d/init.d/pcmcia /etc/rc.d/rc7.d/S09pcmcia
Yes - allows you to treat as an interface rather than thru pcmcia. I did however link it thru via the services instead of via init.d
>
> 5) start pcmcia (can reboot or)
>     /etc/rc.d/init.d/pcmcia start
>
> 6) check card status:
>     cardctl status
>     cardctl config
>     cardctl ident
>
> 7) Set up PCMCIA source config file:
>    A) link correct config file (uname -a)
>       ln -s /usr/src/linux/configs/kernel-2.2.19-i586.config
> /usr/src/linux/.config
>    b) make config file for pcmcia:
>       cd /usr/src/linux/pcmcia-cs-3.1.24
>       make config
>            linux source directory=/usr/src/linux
>            trusting=y
>            include 32bus support= (y/n)
>            PNP bios resource checking=y
>            read settings from currently running kernel= 1
>            modules install directory=/lib/modules/2.2.19-7.0.8
>            System V init script layout= y
>            top-level directory for RC scripts=/etc/rc.d
I actally compiled the latest version of pcmcia-cs from tarball so i didnt need to do any links, but other than that pretty much the same

> 8) Compiler Wlan-ng Driver:
>    A) Download & untar linux-wlan-ng-0.1.14.tar.gz
>    B) make mrproper
>    C) make config
>          PCMCI card service: Y
>          PLX service : N
>          PCI service : N
>          USB service : N
>          linux source: /usr/src/linux
>          pcmcia-cs source: /usr/src/linux/pcmcia-cs-3.1.24
>          kernel pcmcia : N
>          Alternate target install : [blank enter]
>          pcmcia script dir: /etc/pcmcia
>          module install directory : /lib/modules/2.2.19-7.0.8
>          Targe Architecture : i386
>          Prefix for build host compiler : [blank enter]
>          cross compiler : N
>          build for debugging : N
>     d) make all
>     e) make install
Yes
>             (if you get an error, you might want to move
> /lib/modules/2.219-7.0.8/scsi/megaide.o to /
>              then move it back after you run make install
> again.
>              example:  mv
> /lib/modules/2.2.19-7.0.8/scsi/megaide.o /
>                        make install
>                        mv /megaide.o
> /lib/modules/2.2.19-7.0.8/scsi/.
>              )
Never had any problems with the above.

>     F) pico /etc/pcmcia/wlan-ng.opts
>     G) pico /etc/pcmcia/network.opts
>     H) restart pcmcia
>           /etc/rc.d/init.d/pcmcia restart
>     I) Test to see if wlan0 came up
>           ifconfig -a
> 9) Configure wlan0:
>     A) User eth1 as a template for ifcfg-wlan0
>           cp /etc/sysconfig/network-scripts/ifcfg-eth1
> /etc/sysconfig/network-scripts/ifcfg-wlan0
>           pico /etc/sysconfig-network-scripts/ifcfg-wlan0
>               (change Device ID & ipaddr if needed)
>     b) start wlan0
>         ifup wlan0
Yes but i cant remember if i needed to edit /etc/pcmcia/network.opts since it was set up /etc/sysconfig-network-scripts/ifcfg-wlan0.

The set up for a pci card is quite different.

Regards Duncan

Gavin Jackson

Re: Wireless Gateway - Help Needed
« Reply #8 on: August 02, 2002, 03:52:25 AM »
A quick question for duncan,

When you say the PCI card was quite different.

I am just starting to setup a dlink PCI card in a server with no pcmcia slots fitted,
Aside from the kernel stuff which is expected, What else would you suggest that I will require and can a ask you a question or two as I make progress.
I will then write up the howto for it and make it easier for others.

Regards,
Gavin

Duncan

Re: Wireless Gateway - Help Needed
« Reply #9 on: August 02, 2002, 06:02:07 AM »
I did all this a couple of months ago and since then have re-installed e-smith without the wireless card. My memory is a bit rusty.

You will need the wlan drivers and compile as above (set PCI service : Y). All the networking options sit under /etc. wlan.conf I think. wlan in init.d needs to load before the network so you can treat it as a network device ie wlan0.

If you need any questions answering just post and i will do what i can.

Regards Duncan

gavin

Re: Wireless Gateway - Help Needed
« Reply #10 on: August 04, 2002, 07:37:21 AM »
Ok got this far,
Compiled and installed fine.

Set up options is /etc/wlan.conf

Added link in rc7.d

Added line to /etc/modules.conf

Added wlan0 to network-scripts

Started ifup wlan0

Heve link lights in cards and show Tx and Rx if attempt tot ping from PC (win2000 pro)

Look at ifconfig -a

Shows TX packets happening but nor RX traffic

Hmmmm  strange.

Any suggestions ??

- Regards,
Gav