LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 09-06-2006, 12:29 PM   #1
Melsync
Member
 
Registered: Sep 2005
Posts: 75

Rep: Reputation: 15
can't ping other computers in LAN or Internet


One LAN router (192.168.1.1) gives an static DHCP address and Internet connection to a WiFi router (192.168.10.1), which in its turn is the DHCP server of its wireless network.

I can ping the WiFi router from one computer connected to it, but I can't login the the other one. I can the WiFi routers' admin web page, but I can't connect to Internet.

The funny thing is that exactly the same routers' config and computer works across the wireless and wired networks, both pinging and browsing internal and external web pages when booting the computer in Windows XP.

The iptables of the computer are accepting all. dhclient-scripts generates the nameserver 192.168.1.1 at the client's /etc/resolv.conf. The client has inet addr:192.168.10.100. Bcast: 192.168.10.255 and Mask: 255.255.255.0 address.

The command grep -inr '192.168.1.1' /var/log/* doesn't bring up anything.

I don't know what else to check.

Last edited by Melsync; 09-06-2006 at 12:33 PM.
 
Old 09-06-2006, 03:25 PM   #2
steve-alexander
LQ Newbie
 
Registered: Mar 2005
Location: Ohio
Distribution: FC6->F7
Posts: 23

Rep: Reputation: 16
What is the IP/mask of your LAN router. I assume it's 192.168.1.1/255.255.255.0 .
This means that everything on your first LAN must have an IP in the range
192.168.1.[0...255], including the WAN port of the second (WiFI) router.

I assume you have your WiFi router's WAN port connected to your LAN router.
This means the LAN router should assign the WifiRouter's *WAN* port an IP in the
range 192.168.1.[2...255] . Otherwise the WiFI router cannot communicate with
the LAN router.

You can choose to have he WiFi router dhcp serve any address range you like for
th subnet (except for 192.168.1.x). So 192.168.10.x is perfectly fine for your
second wireless LAN.

If you examine the WiFi router admin pages you will see the IP/mask assigned
to the WAN of the WiFi router, and I suspect it does not match your first lan
(192.168.1.x).
 
Old 09-07-2006, 03:54 AM   #3
Melsync
Member
 
Registered: Sep 2005
Posts: 75

Original Poster
Rep: Reputation: 15
subnet masks are 255.255.255.0

Yes, thank you. I flashed the WiFi router and checked the masks. Now the computer 192.168.10.100 pings and browses other web servers of computers connected to the LAN router, like 192.168.1.100.

Computer
IP Address 192.168.1.100
|
LAN router
IP Address 192.168.1.1
Subnet Mask 255.255.255.0
|
IP Address 192.168.1.103
WAN router
IP Address 192.168.10.1
Subnet Mask 255.255.255.0
|
Computer
IP Address 192.168.10.100

The computer 192.168.1.100 doesn't ping '192.168.10.1' or '192.168.10.100'. When 192.168.10.100 tries to ssh 192.168.1.100, the later logs the event as coming from '192.168.1.103'. '192.168.1.103' is the address given by the LAN router to the WiFi Router. The computer 192.168.1.100 doesn't ping 192.168.1.103 either!

How can 192.168.1.100 ping 192.168.10.100?

Thanks.

Last edited by Melsync; 09-07-2006 at 06:10 AM.
 
Old 09-08-2006, 06:27 PM   #4
Melsync
Member
 
Registered: Sep 2005
Posts: 75

Original Poster
Rep: Reputation: 15
After some research I ended up turning the WiFi router into an access point: I allocated a static 192.168.1.X ip address to it, disabled its dhcp routing and connected of of its lan ports, instead of the wan one, to one of the lan ports of the main router.
Everything is 192.168.1.X now.

Last edited by Melsync; 09-08-2006 at 06:29 PM.
 
  


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
FC4 won't ping 127.0.0.1 or the internet, but will ping local computers jalsk Linux - Networking 4 11-22-2005 05:59 PM
computers around me get internet, but i dont... wired lan kahn Linux - Networking 6 06-26-2005 07:07 PM
lan problem..there is internet but computers cannot see each other nikoz Linux - Networking 3 02-05-2005 09:42 PM
New server on my work lan, cannot ping to it on get on internet. leejenson Linux - Networking 2 11-13-2003 11:35 AM
Can ping LAN but cant access internet. Dirt Linux - Networking 2 08-11-2003 02:45 AM

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

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