LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 10-25-2005, 10:16 PM   #1
shortbill
LQ Newbie
 
Registered: Nov 2002
Distribution: Slackware 8.1
Posts: 6

Rep: Reputation: 0
linux router


i have a linux box that connects to wireless for its internet access, in windows the connection is very weak and it drops constently but linux holds it strong.

so i have hooked up my other pc via ethernet crossover to my linux box

wlan0
==================================================
ip = 192.168.1.105 =
gw = 192.168.1.1 =
mask = 255.255.255.0 =
==================================================
eth0 =
==================================================
ip = 192.168.2.1 =
netmask = 255.255.255.0 =
==================================================
route table =
==================================================
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.2.0 192.168.2.1 255.255.255.0 UG 0 0 0 eth0
192.168.2.0 * 255.255.255.0 U 0 0 0 eth0
localnet 192.168.1.105 255.255.255.0 UG 0 0 0 wlan0
localnet * 255.255.255.0 U 0 0 0 wlan0
loopback * 255.0.0.0 U 0 0 0 lo
default 192.168.1.1 0.0.0.0 UG 0 0 0 wlan0
==================================================
from the windows box i can ping 192.168.2.1
and i can ping 192.168.1.105 so i am hitting the wireless card from the windows box
but i cannot hit 192.168.1.1 just keeps timing out.
dont know what i'm doing wrong here
thank you in advance
 
Old 10-25-2005, 10:18 PM   #2
shortbill
LQ Newbie
 
Registered: Nov 2002
Distribution: Slackware 8.1
Posts: 6

Original Poster
Rep: Reputation: 0
bwt

by the way i'm using slackware 10.1
 
Old 10-25-2005, 11:51 PM   #3
Snowbat
Member
 
Registered: Jun 2005
Location: q3dm7
Distribution: Mandriva 2010.0 x86_64
Posts: 338

Rep: Reputation: 31
The device at 192.168.1.1 needs to know about your 192.168.2.0/24 network. I'm guessing it's a Linksys router and you have a DHCP address which will keep moving around. If this is the case, first move your Slackware wlan0 to a static IP address within the subnet but outside the DHCP pool such as 192.168.1.2. Then open the Setup > Advanced routing and add:

Route name: anythingyoulike
Destination LAN ip: 192.168.2.0
Subnet Mask: 255.255.255.0
Default Gateway: 192.168.1.2

You'll also need to enable IP forwarding on the Slackware box.
echo 1 > /proc/sys/net/ipv4/ip_forward

Last edited by Snowbat; 10-25-2005 at 11:54 PM.
 
  


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
Small Linux Router/firewall behind D-Link Hardware router dleidlein Linux - Networking 6 04-30-2007 05:12 AM
Linux Router & Netgear Wireless Router DMaCATO Linux - Wireless Networking 1 04-30-2004 09:16 AM
/etc/resolv.conf configuration when behind a router(not a linux router) rmanocha Linux - Networking 2 04-28-2004 01:52 AM
ADSL Router + Linux Router + LAN = HELP!!! linuxlois Linux - General 2 09-16-2003 08:24 AM
Linux as a router twstdroot Linux - Networking 1 03-30-2002 07:36 PM

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

All times are GMT -5. The time now is 12:13 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