LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 01-28-2006, 09:38 PM   #1
cwwilson721
Senior Member
 
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Blog Entries: 1

Rep: Reputation: 68
Probably simple setup for routing


Sorry for the simple question, but I can't think of where to start.

I have a wireless connection to the internet, wlan0. I want the rest of my network to use this too thru eth0.

I know it's probably simple, but how do I go about this? A step by step would be appreciated.

Thanks
 
Old 01-28-2006, 09:57 PM   #2
mdarby
Member
 
Registered: Nov 2004
Location: Columbus, Ohio
Distribution: Slackware-Current / Debian
Posts: 795

Rep: Reputation: 30
Code:
echo 1 > /proc/sys/net/ipv4/ip_forward
This will enable traffic forwarding.
 
Old 01-28-2006, 10:05 PM   #3
cwwilson721
Senior Member
 
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649

Original Poster
Blog Entries: 1

Rep: Reputation: 68
That's it? I feel like an idiot....lol....let me try it out....
 
Old 01-28-2006, 10:14 PM   #4
cwwilson721
Senior Member
 
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649

Original Poster
Blog Entries: 1

Rep: Reputation: 68
Ok...I can get on the net thru wlan0, but cannot access the wireless router (192.168.1.1), nor anything on the local network. Nor can anyone else get on the internet. Any other ideas?
 
Old 01-28-2006, 10:21 PM   #5
mdarby
Member
 
Registered: Nov 2004
Location: Columbus, Ohio
Distribution: Slackware-Current / Debian
Posts: 795

Rep: Reputation: 30
How exactly is your network setup?
 
Old 01-28-2006, 10:27 PM   #6
cwwilson721
Senior Member
 
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649

Original Poster
Blog Entries: 1

Rep: Reputation: 68
cable modem to wireless Router in another building(With other computers hardwired to it), this building, have this laptop wireless wlan0, and a eth0 (Connected to a 10/100 hub, w/2 other computers hardwired.) Basically, need to bridge (?) the wireless (wlan0) to wired (eth0) so the other computers have access to the internet and the other computers in the other building. Laptop had access to the other building, but now with wired hooked up, have no access to any local IP, but still has internet.
 
Old 01-28-2006, 10:38 PM   #7
cwwilson721
Senior Member
 
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649

Original Poster
Blog Entries: 1

Rep: Reputation: 68
When I disable eth0 in BIOS, I can access the other half of the network (Other building, including router), and have internet on laptop. With eth0 enabled, no access, but still have internet on laptop (Wireless works fine.). It seems the eth0 is messing me up. Any ideas?

I want to use the wireless (wlan0) to access the internet and the other half of the network from this building, kind of a bridge, I guess.

Kernel recompile wouldn't bother me too much, but I need the other two computers in this building to access the internet and the rest of the network.

When wired in other building, this laptop has no problems accessing that network half, it's just when hardwired into this half and eth0 enabled, the problems begin

Last edited by cwwilson721; 01-28-2006 at 10:40 PM.
 
Old 01-28-2006, 11:24 PM   #8
cwwilson721
Senior Member
 
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649

Original Poster
Blog Entries: 1

Rep: Reputation: 68
Help
ANYBODY!!!

I tried this post : http://www.linuxquestions.org/questi...et+sharing#top
Tried the iptables to set myself up to forward w/out any firewall, but gave errors about iptables and nat not being recognized.

I know it's a simple thing to do. All I want to do is bridge one network device to another.

Any help?

Last edited by cwwilson721; 01-28-2006 at 11:39 PM.
 
Old 01-29-2006, 04:37 AM   #9
cwwilson721
Senior Member
 
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649

Original Poster
Blog Entries: 1

Rep: Reputation: 68
UPDATE:

The problem was trying to compile in the iptables modules without recompiling the wlan-ng. Recompiled, and it's working. Mostly.

I still can't browse the remote part of the network, but can get on internet with local half....

Any ideas?

My network looks like this:

Cable Modem
||
Wireless Router (IP 192.168.1.1) = 2 XP computers (IP 192.168.1.100 & 101)
"" (Wireless)
Laptop Wireless (IP 192.168.1.104)= NIC eth0 (IP 192.168.1.50)= 2 XP computers (IP 192.168.1.51 & 52)
All subnets are 255.255.255.0

As I said, I can browse/ping the computers direct connected to my eth0 port, but cannot ping/browse the other half (including the router). All computers can access internet.

Help?
I can access

Last edited by cwwilson721; 01-29-2006 at 04:38 AM.
 
Old 01-29-2006, 05:44 AM   #10
uselpa
Senior Member
 
Registered: Oct 2004
Location: Luxemburg
Distribution: Slackware, OS X
Posts: 1,507

Rep: Reputation: 47
I try tgo get this right:
1) you have a computer (box1) w/ a WLAN connection wlan0 that allows you to access the internet; this computer also has an ethernet interface eth0
2) you have other computers (box2-n) with an ethernet interface eth0 but no access to the internet; these computer are on the same network as box 1
3) you want box2-n to access the internet through the connection available at box1.

If so,
a) box2-n need to know that in order to access the internet, box1 is the gateway. did you set this route up? can you show us the route of one of these machines (command "route" or "netstat -r")?
b) box1 must allow ip-forwarding (you did this)
c) i expect your wlan router to do "nat" towards the internet, is that the case?
 
Old 01-29-2006, 01:25 PM   #11
cwwilson721
Senior Member
 
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649

Original Poster
Blog Entries: 1

Rep: Reputation: 68
Almost have it. I have the Internet part figured out. It works.

Building 1: cable modem->wireless router + 2 boxes in one bulding (All hardwired)
Building 2: Laptop w/ wireless (wlan0) + 2 other boxes hooked to hub (eth0 on laptop)

All have internet, but can only access what is in their own building. For example, I cannot ping/access the router in building 1 from the laptop, but can access/ping the two other boxes in building 2. However, when I don't have eth0 enabled, I can access/ping the router/2 computers in building 1.

All have private IP's of 192.168.1.XXX , subnets of 255.255.255.0 (Class C)

How do I access/ping the other building?

Last edited by cwwilson721; 01-29-2006 at 01:27 PM.
 
Old 01-29-2006, 01:39 PM   #12
justanothersteve
Member
 
Registered: Aug 2005
Location: Missouri, USA
Distribution: Gentoo
Posts: 161

Rep: Reputation: 30
Have you add each of your network computer's IP into /etc/hosts?

/etc/hosts are IP's on a local network that don't have to be resolved through a nameserver. Basically it tells the server those IP's are local and don't have to be accessed outside of the gateway.
 
Old 01-29-2006, 02:06 PM   #13
cwwilson721
Senior Member
 
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649

Original Poster
Blog Entries: 1

Rep: Reputation: 68
Thanks for the idea, but no-go.

Here is what I get when I ping the other building (router thru wlan0 interface):
Code:
$ ping router
PING router (192.168.1.1) 56(84) bytes of data.
From toaster.mshome (192.168.1.50) icmp_seq=1 Destination Host Unreachable
From toaster.mshome (192.168.1.50) icmp_seq=2 Destination Host Unreachable
From toaster.mshome (192.168.1.50) icmp_seq=3 Destination Host Unreachable

--- router ping statistics ---
5 packets transmitted, 0 received, +3 errors, 100% packet loss, time 4043ms
, pipe 3
Pinging another computer in this building (moms, thru eth0 interface)
Code:
$ ping moms
PING moms.mshome (192.168.1.52) 56(84) bytes of data.
64 bytes from moms.mshome (192.168.1.52): icmp_seq=1 ttl=64 time=0.748 ms
64 bytes from moms.mshome (192.168.1.52): icmp_seq=2 ttl=64 time=0.746 ms
64 bytes from moms.mshome (192.168.1.52): icmp_seq=3 ttl=64 time=0.751 ms

--- moms.mshome ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2020ms
rtt min/avg/max/mdev = 0.746/0.748/0.751/0.022 ms
Pinging google.com has this (thru wlan0 to other building thru router):
Code:
$ ping www.google.com
PING www.l.google.com (64.233.187.104) 56(84) bytes of data.
64 bytes from 64.233.187.104: icmp_seq=1 ttl=241 time=40.7 ms
64 bytes from 64.233.187.104: icmp_seq=2 ttl=240 time=39.9 ms
64 bytes from 64.233.187.104: icmp_seq=3 ttl=241 time=42.0 ms

--- www.l.google.com ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2017ms
rtt min/avg/max/mdev = 39.969/40.941/42.081/0.885 ms
So I'm going thru the router to the Internet, and can ping computers on this segment, but nothing in the other building.

Any ideas? The hosts just gave me a shortcut to ping them....lol
 
Old 01-29-2006, 02:13 PM   #14
cwwilson721
Senior Member
 
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649

Original Poster
Blog Entries: 1

Rep: Reputation: 68
UPDATE:
When I specify the wlan0 interface to ping thru, I get this:
Code:
$ ping -I wlan0 router
PING router (192.168.1.1) from 192.168.1.50 wlan0: 56(84) bytes of data.
64 bytes from router (192.168.1.1): icmp_seq=1 ttl=64 time=3.31 ms
64 bytes from router (192.168.1.1): icmp_seq=2 ttl=64 time=3.39 ms
64 bytes from router (192.168.1.1): icmp_seq=3 ttl=64 time=3.35 ms

--- router ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2032ms
rtt min/avg/max/mdev = 3.314/3.353/3.390/0.056 ms
So I can ping it. But to get to the webserver in the router, I need to be able to get it browsable in Firefox.(Still can't do that)
 
Old 01-30-2006, 01:07 AM   #15
uselpa
Senior Member
 
Registered: Oct 2004
Location: Luxemburg
Distribution: Slackware, OS X
Posts: 1,507

Rep: Reputation: 47
I asked you to post your routing tables, that would help.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
another simple routing question crm Linux - Networking 3 03-29-2005 01:45 AM
Simple Routing - not working jsinfcva Linux - Networking 5 12-15-2004 09:08 PM
simple routing rules freelinuxcpp Linux - Networking 0 03-03-2004 07:33 AM
simple routing between subnets without NAT iggymac Linux - Newbie 2 03-24-2003 04:38 PM
Simple routing nightmare rodo Linux - Networking 1 11-13-2002 01:14 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 12:02 PM.

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