Slackware This Forum is for the discussion of Slackware Linux.
|
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
|
01-28-2006, 09:38 PM
|
#1
|
Senior Member
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Rep:
|
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
|
|
|
01-28-2006, 09:57 PM
|
#2
|
Member
Registered: Nov 2004
Location: Columbus, Ohio
Distribution: Slackware-Current / Debian
Posts: 795
Rep:
|
Code:
echo 1 > /proc/sys/net/ipv4/ip_forward
This will enable traffic forwarding.
|
|
|
01-28-2006, 10:05 PM
|
#3
|
Senior Member
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Original Poster
Rep:
|
That's it? I feel like an idiot....lol....let me try it out....
|
|
|
01-28-2006, 10:14 PM
|
#4
|
Senior Member
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Original Poster
Rep:
|
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?
|
|
|
01-28-2006, 10:21 PM
|
#5
|
Member
Registered: Nov 2004
Location: Columbus, Ohio
Distribution: Slackware-Current / Debian
Posts: 795
Rep:
|
How exactly is your network setup?
|
|
|
01-28-2006, 10:27 PM
|
#6
|
Senior Member
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Original Poster
Rep:
|
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.
|
|
|
01-28-2006, 10:38 PM
|
#7
|
Senior Member
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Original Poster
Rep:
|
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.
|
|
|
01-28-2006, 11:24 PM
|
#8
|
Senior Member
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Original Poster
Rep:
|
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.
|
|
|
01-29-2006, 04:37 AM
|
#9
|
Senior Member
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Original Poster
Rep:
|
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.
|
|
|
01-29-2006, 05:44 AM
|
#10
|
Senior Member
Registered: Oct 2004
Location: Luxemburg
Distribution: Slackware, OS X
Posts: 1,507
Rep:
|
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?
|
|
|
01-29-2006, 01:25 PM
|
#11
|
Senior Member
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Original Poster
Rep:
|
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.
|
|
|
01-29-2006, 01:39 PM
|
#12
|
Member
Registered: Aug 2005
Location: Missouri, USA
Distribution: Gentoo
Posts: 161
Rep:
|
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.
|
|
|
01-29-2006, 02:06 PM
|
#13
|
Senior Member
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Original Poster
Rep:
|
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
|
|
|
01-29-2006, 02:13 PM
|
#14
|
Senior Member
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Original Poster
Rep:
|
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)
|
|
|
01-30-2006, 01:07 AM
|
#15
|
Senior Member
Registered: Oct 2004
Location: Luxemburg
Distribution: Slackware, OS X
Posts: 1,507
Rep:
|
I asked you to post your routing tables, that would help.
|
|
|
All times are GMT -5. The time now is 12:02 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|