Unix Technical Forum

Wireless router

This is a discussion on Wireless router within the Slackware Linux Support forums, part of the Unix Operating Systems category; --> I bought a wireless PCI card for my Slackware 10.1 router/server without doing some advance research. I was hoping ...


Go Back   Unix Technical Forum > Unix Operating Systems > Slackware Linux Support

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-20-2008, 06:59 AM
Jennifer
 
Posts: n/a
Default Wireless router

I bought a wireless PCI card for my Slackware 10.1 router/server without
doing some advance research. I was hoping to use the wireless card to allow the
router/server to do NAT for both wired connection and wireless
connections. This is essentially to allow my laptop and my neighbour to
get acces to the LAN and the internet without having to plug wires in.

Currently I have the two NIC thing with DHCP on the computer and it works
well. I share files via NFS for Linux users and samba for Windows users.
Essentially, I would like to add a wireless compent to the setup.

Is there a Howto out there? Can my DHCP server issue IPs on two NICs?

THanks in advance

Jenn

----== Posted via Newsfeeds.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups
----= East and West-Coast Server Farms - Total Privacy via Encryption =----
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-20-2008, 06:59 AM
+Alan Hicks+
 
Posts: n/a
Default Re: Wireless router

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

In alt.os.linux.slackware, Jennifer dared to utter,
> Can my DHCP server issue IPs on two NICs?


I can't help you with the wifi stuff, but I can tell you that yes,
dhcpd can hand out IPs on an arbitrary number of NICs. The easiest way
to do this is to have the two NICs on different subnets.

eth0 192.168.1.1
eth1 192.168.2.1

You can setup /etc/dhcpd.conf to hand out IPs freely. Slackware doesn't
include a rc.dhcpd startup script, so I'm enclosing mine on the off
chance it will help you.

You'll have to edit rc.M and rc.0 to start and stop it on boot if you
want it to all go smoothly, otherwise you can just referance this in
rc.local.

/etc/rc.d/rc.dhcpd
#!/bin/bash
# Start, stop, and restart the DHCP server.

dhcpd_start() {
echo "Starting the dhcp server."
if [ -x /usr/sbin/dhcpd ];then
/usr/sbin/dhcpd
fi
}

dhcpd_stop() {
echo "Stopping the dhcp server."
/bin/kill $(/bin/cat /var/run/dhcpd.pid)
}

dhcpd_restart() {
echo "Restarting the dhcp server."
dhcpd_stop
dhcpd_start
}

# See how we are called.

case "$1" in
'start')
dhcpd_start
;;
'stop')
dhcpd_stop
;;
'restart')
dhcpd_restart
;;
*)
echo "Usage $0 start|stop|restart."
esac


- --
It is better to hear the rebuke of the wise,
Than for a man to hear the song of fools.
Ecclesiastes 7:5
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFCOeHAvgVcFKpJf4gRAv4cAKC4mXABkSy1bIg826xV9D 7tNl+3iQCg3PJC
zB1FBxJdudVbL9k0S7UwZ5w=
=HZKx
-----END PGP SIGNATURE-----
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-20-2008, 06:59 AM
Thomas Overgaard
 
Posts: n/a
Default Re: Wireless router


Jennifer wrote :

> I bought a wireless PCI card for my Slackware 10.1 router/server without
> doing some advance research.


Before you go any further you should search the net to see if this card
can operate in "Master" mode. Only cards that support the master mode
can be used in a router setup like this, and many cards only supports
"Managed" or "Ad-Hoc" modes.
--
Thomas O.

This area is designed to become quite warm during normal operation.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-20-2008, 06:59 AM
Mike Denhoff
 
Posts: n/a
Default Re: Wireless router

On Thu, 17 Mar 2005 09:00:46 -0500, Jennifer wrote:

> I bought a wireless PCI card for my Slackware 10.1 router/server without
> doing some advance research. I was hoping to use the wireless card to
> router/server to do NAT for both wired connection and wireless
> connections. This is essentially to allow my laptop and my neighbour to
> get acces to the LAN and the internet without having to plug wires in.
>
> Currently I have the two NIC thing with DHCP on the computer and it works
> well. I share files via NFS for Linux users and samba for Windows users.
> Essentially, I would like to add a wireless compent to the setup.
>
> Is there a Howto out there? Can my DHCP server issue IPs on two NICs?


A lot depends on what chipset your wireless card has and if there is a
linux driver for it. 'lspci' and 'lspci -n' will help with that.

Things are pretty untidy in the Linux wireless world, but here is a good
start

http://www.hpl.hp.com/personal/Jean_.../Wireless.html

Mike

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 06:34 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com