LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking
User Name
Password
Linux - Wireless Networking This forum is for the discussion of wireless networking in Linux.

Notices


Reply
  Search this Thread
Old 10-12-2007, 07:43 PM   #1
Prostetnic_Jeltz
Member
 
Registered: Feb 2006
Posts: 66

Rep: Reputation: 16
Basic help understanding home wireless network


I am looking to set up a small home network, with the goal of allowing my wife to relax on the couch with her laptop and wireless connection, just like they do on TV (her idea, not mine).

I have a desktop running slackware and a couple of PCI NICs in it. Cable internet and modem, comes into eth0. I have used eth1 and a crossover cable to share the cable connection before.

1) hardware-wise, is a wireless router (Linksys WRT54G or equivalent) enough to accomplish this (the laptop has wireless capability).

2) does the router have to go between the cable modem and the desktop+laptop, or can I connect it to eth1 (i.e., so that the router is only between the desktop and the laptop)? my goal is to provide wireless connection only to the laptop, and to use the router only for that purpose (also, to be able to shut off the wireless network when she's not using the laptop)

3) if I did (2) above, how would I configure the IP's? does the router get assigned an IP, and the laptop another? would this setup make securing the connection more difficult?

if there is a document or resource I can read about this please let me know - everything I've found (that I understand) so far is either related to IP-Masq. for Linux, or to windows network setups.

Thanks in advance
 
Old 10-12-2007, 08:05 PM   #2
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 65
The easiest is buy a wireless router. Place it between the modem and all machines. Connect the lan machines to the lan ports and the wan to the modem.

The router is configured based on the wan side as to what your provider is doing. If you get an IP from them then setup the wan side to do that. If static then fill in the blanks for that.

The lan machines can be static or get the ip from the router. The routers use the non routable IP range like 192.168.0.0/24 or similiar. As an example using this range you set the routers lan ip to 192.168.1.1. Then say the first machine you define say 192.168.1.10, subnet 255.255.255.0, gateway 192.168.0.1, and define the DNS the provider is using.

You can turn off the wireless side on most routers. But is done from the web server interface most of them use.

ip-masquerade is stuff related to using linux as a router.

Brian
 
Old 10-13-2007, 02:53 AM   #3
thumbelina
LQ Newbie
 
Registered: Oct 2006
Location: USA
Distribution: CentOS,Fedora,Ubuntu,Mint,Mageia,OPNsense
Posts: 17

Rep: Reputation: 8
Smile Re: Basic help understanding home wireless network

Hi PJ,

You can do the wireless router setup in several ways. It depends
upon your needs.

1. You can setup a router as Brian1 suggests, if you wish the router to
become your firewall/packet filter between your private LAN and the
hostile Internet. Do it like this:

a) connect an RJ-45 cable between the router WAN port and your cable modem,
b) connect the desktop via eth0 to one of the wired router ports,
c) have the laptop connect wireless to the router,
d) setup the router like the manufacturer suggests, using your ISP-assigned
IP address as the WAN IP address, and let the DHCP server in the router
assign local/LAN IP addresses.
e) setup DHCP clients [dhcpcd/dhclient/et.al.] in the Desktop/laptop.

2. Or, you can put the router "behind" the Desktop, so that it is between
the Desktop and the laptop. This would allow you to run a software firewall/packet
filter in the desktop to protect your LAN from the hostile Internet. Do it like this:

a) connect an RJ-45 cable between the Desktop NIC eth1 and the router WAN port,
b) connect an RJ-45 cable between the Desktop NIC eth0 and the cable modem,
c) have the laptop connect wireless to the router,
d) setup the router to have a static IP on the WAN port which is in the same
subnet as the desktop's NIC eth1. Use another subnet range for the routers
LAN side NIC address, and the DHCP server's address range.
e) setup DHCP clients [dhcpcd/dhclient/et.al.] in the laptop.

I have a setup like 2. because I run a Linux firewall using iptables rules, with 3 NICs, one to Internet, one to private LAN and one to a DMZ LAN. Thus, I have no need for the routers firewall.

I setup networking on the firewall box to run a DHCP client, to receive the IP address for the NIC connected to the cable modem [eth0] from my ISP's DHCP server. That IP address is something like 68.xx.yy.zz.

I have the firewall box's private LAN IP [eth1] addresses staticly assigned in the private Class C range of 192.168.1.xxx, with the firewall box having the LAN NIC device eth1 set to 192.168.1.1. This address is also the gateway address for the other LAN desktops route commands.

I assign the router WAN side NIC IP address statically to 192.168.1.200.

I set the routers LAN side NIC IP address statically to 192.168.0.1. This becomes the gateway address for the laptop whenever it connects to the wireless router.

I set the routers LAN side to use DHCP, with the DHCP address range in the wireless router to be 192.168.0.101 thru 192.168.0.110. This means that the Toshiba laptop I have, will usually have assigned, an IP address of 192.168.0.101 to the wireless NIC device ath0.

In answer to your questions in item 3), the wireless router has two network adapters,one for the WAN side, and another for the LAN side. Each adapter needs to have IP addresses assigned. They must be on different subnets: say 192.168.1.200 for the WAN side, and 192.168.0.1 for the LAN side [assumes a subnet mask: 255.255.255.0 or /24 in CIDR form]


some links

http://www.linuxhomenetworking.com/w...ess_Networking
http://www.suseforums.net/lofiversio...hp/t28877.html
 
Old 10-13-2007, 06:21 PM   #4
Prostetnic_Jeltz
Member
 
Registered: Feb 2006
Posts: 66

Original Poster
Rep: Reputation: 16
Thumbelina, Brian -- thanks so much for your posts, they really help a lot.

I was thinking of doing what Thumbelina described in (2) -- based on your description, I think that will work perfectly. The only problem I see is maybe step 2d, configuring the router - I don't suppose it's too tough to figure out, but as I've never done it I anticipate some trial/error.

Many thanks again, I'll post my progress later.

 
  


Reply



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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Basic questions about wireless network Caesar Tjalbo Linux - Wireless Networking 6 08-21-2006 09:20 PM
basic q. how to copy files over home (peer) network JacekZ Linux - Networking 6 07-17-2006 06:08 PM
Most basic wireless network easuter Linux - Wireless Networking 9 01-18-2006 03:26 PM
Setting up a basic home network with Slackware 10.1 sleepisforwimps Slackware 6 05-02-2005 06:28 PM
Setting a home network, need a little understanding.. araldit Linux - Networking 2 01-31-2005 10:53 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration