LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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-26-2007, 07:37 PM   #1
Madd the Sane
Member
 
Registered: Apr 2006
Location: USA
Distribution: Ubuntu 12.04
Posts: 42

Rep: Reputation: 15
accessing computer across networks


I have a strange set up for my network at home. Basically I have a wireless network and, in my room, a wired network. I'm using a Linksys router for the wireless access point. A better way to show it is like this:
Code:
Internet
   |
   |
Wireless-------------Router(Linux comp)------------hub--------mac
192.168.45.1     192.168.45.2 192.168.47.1             192.168.47.149
    |                                                      (dhcp)
    |
    |
  laptop
192.168.45.100
  (dhcp)
I can ping from the mac to the laptop, but not the other way around.

I've already tried to set up the routing table by adding the following:
Code:
Destination         Mask          Gateway      Metric
192.168.47.0   255.255.255.0   192.168.45.2      2*
192.168.47.1   255.255.255.255 192.168.45.2      2*
*the metric can't be changed.
I can ping the Linux computer from the laptop at 192.168.47.1, but that's the only IP address on that subnet mask that I can ping.

Any ideas?
 
Old 10-26-2007, 08:28 PM   #2
MS3FGX
Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 351Reputation: 351Reputation: 351Reputation: 351
Do you have a firewall running on the Linux router that is blocking incoming ICMP requests perhaps?
 
Old 10-26-2007, 09:34 PM   #3
Madd the Sane
Member
 
Registered: Apr 2006
Location: USA
Distribution: Ubuntu 12.04
Posts: 42

Original Poster
Rep: Reputation: 15
I'll check, but it's not just ICMP pings that aren't getting through. Basically, it's only one-way communication, and that kind of confuses me
 
Old 10-26-2007, 10:54 PM   #4
jschiwal
Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654
I once had a similar setup using the wireless on my laptop to give my desktop internet access. I had the laptop on the 192.168.1.0 subnet and a subnet for the desktop and a network printer of 192.168.1.128.

I don't think you need a host route on the Linux router, but you should have one route for the 192.168.45.0 network and one for the 192.168.47.0 network and a default route with a gateway of 192.168.45.1.
Code:
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.45.0    *               255.255.255.0   U     0      0        0 eth0
192.168.47.0    *               255.255.255.0   U     0      0        0 eth1
loopback        *               255.0.0.0       U     0      0        0 lo
default         192.168.45.1    0.0.0.0         UG    0      0        0 eth0
You might want to check if the "ip_conntrack" module is loaded. ( It might be an alias now for nf_conntrack. )
Also use 192.168.47.1 as the default gateway setting on the Mac.

Last edited by jschiwal; 10-28-2007 at 11:36 AM.
 
  


Reply

Tags
network, router, routing


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
Accessing remote computer adilturbo Linux - Networking 4 06-29-2006 04:32 AM
suggestions for b.e. projects on computer networks spidermanooo7 Linux - Networking 1 06-24-2006 07:48 PM
accessing my router from a different computer true_atlantis Linux - Networking 4 12-24-2005 10:13 PM
Accessing a computer behind NAT Menestrel Linux - Networking 1 01-16-2005 06:07 AM
accessing my computer remotely paul44 Linux - Newbie 3 05-06-2004 08:17 AM


All times are GMT -5. The time now is 04:37 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration