LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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 07-30-2010, 06:57 AM   #1
ethereal1m
Member
 
Registered: Jan 2010
Distribution: slackware 13.0 64
Posts: 259

Rep: Reputation: 30
Question Connect to internet through a (wireless) router


Dear all,
I connect my internet using pppoe to may DSL modem with bridging mode, and it goes fine until I try to put a wireless router between my PC and the modem.

After I configure both modem and the router, I can run my wireless network fine by connecting it from a laptop, but my PC is unable to reach the modem at this configuration.

Suppose:
PC has address 192.168.2.100
Router has address 192.168.2.2
Modem has address 192.168.2.1

all with netmask 255.255.255.0

With bridging configuration in modem and automatic detect configuration in the wireless router, the wireless network run well, except the PC cannot ping the Modem saying that
Code:
root@firefly:~# ping 192.168.2.1
PING 192.168.2.1 (192.168.2.1) 56(84) bytes of data.
From 192.168.2.100 icmp_seq=2 Destination Host Unreachable
Looks like my PC, which has Slackware 13.0, don't know how to reach the modem even they are physically connected.

Question:
1. how can I configure the modem, PC, and router so that the PC can reach the router? Do I need to do add route gateway from the PC?
2. How can I configure internet connection from the PC (before I use PPPoE)?
3. How can I configure the modem, PC, and router so that the wireless network is on?

regards,
ethereal1m
 
Old 07-30-2010, 07:01 AM   #2
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Linux Mint
Posts: 8,516

Rep: Reputation: 896Reputation: 896Reputation: 896Reputation: 896Reputation: 896Reputation: 896Reputation: 896
What is your default GW?
Should be the IP from the router
 
1 members found this post helpful.
Old 07-30-2010, 08:27 AM   #3
ethereal1m
Member
 
Registered: Jan 2010
Distribution: slackware 13.0 64
Posts: 259

Original Poster
Rep: Reputation: 30
ok, my config is:
Code:
pc <---> router <---> modem
so,I put 198.168.2.2 as my default gateway, when I do "route -r", I got:
Code:
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.2.0     0.0.0.0         255.255.255.0   U     0      0        0 eth1
192.168.1.0     0.0.0.0         255.255.255.0   U     0      0        0 eth0
127.0.0.0       0.0.0.0         255.0.0.0       U     0      0        0 lo
0.0.0.0         192.168.2.2     0.0.0.0         UG    0      0        0 eth1
but still got "destination unreachable" error when try to ping 192.168.2.1

any idea?
 
Old 07-30-2010, 11:02 AM   #4
ethereal1m
Member
 
Registered: Jan 2010
Distribution: slackware 13.0 64
Posts: 259

Original Poster
Rep: Reputation: 30
yeah, I just realized that and changed the network configuration, so that the modem and router are in the different subnet. So, added the router IP address as the gateway in the PC side, now I got the internet working from the PC side.

But now after the wireless side in the router is configured, my laptop (my wireless client) can make connection to the wireless network, but the browser cannot download any traffic.

BTW, I used the following router http://www.tp-link.com/products/prod...del=TL-WR741ND
How do I troubleshoot this?

Any idea?

Regards,
ethereal1m
 
Old 07-30-2010, 11:29 AM   #5
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Linux Mint
Posts: 8,516

Rep: Reputation: 896Reputation: 896Reputation: 896Reputation: 896Reputation: 896Reputation: 896Reputation: 896
Did you setup the correct DNS?
Can you ping the outside on IP?
Code:
ping 173.194.36.104
 
1 members found this post helpful.
Old 07-30-2010, 11:47 AM   #6
igadoter
Member
 
Registered: Sep 2006
Location: wroclaw, poland
Distribution: slack 12.2, debian-Trinity , openbsd
Posts: 729

Rep: Reputation: 56
Hi,
Is your router is configured via http? I mean to set up the router one opens an internet browser and in the address field enters eg. http://192.168.1.100 ? (This is address of my router ) If it is connect to router and and check all possible settings. There are also system logs. The router should be set as DHCP, i.e. each computer from a local network connecting to the router obtain an IP address - this IP address is leased by the router for a some time (eg. 86000 sec.). Access to a wireless routers is sometimes protected via password - eg. WPA or WPA2 protection, so before any an IP leas a computer must submit proper password. I don't understand your modem has its own IP address? Also an address range is strange for me. Your router has IP = 192.168.2.0 and your computer IP= 192.168.1.0. The difference in numbers should be rather in the fourth field not in the third. Moreover the usual configuration is that it is only a router which is connected to a modem. Access to modem is via a wireless router only. In my home my router is connected to an external modem (there are also routers with inner modem), my router is configured as DHCP server, and all my computers make connections with the internet via the router. Basically there are two programs which make simple maintaining wireless connections - Network Manager and Wicd.
 
1 members found this post helpful.
Old 07-30-2010, 12:05 PM   #7
igadoter
Member
 
Registered: Sep 2006
Location: wroclaw, poland
Distribution: slack 12.2, debian-Trinity , openbsd
Posts: 729

Rep: Reputation: 56
Hi,
I checked the docs. The default address of your router is 192.168.1.1. You should be able to connect with it via http://192.168.1.1 in a web browser. Usually access is protected with a name of administrato and a password. You may find both in the documentation shipped with the router. If you will have any problems with wireless connection use a cable, connect your laptop to the router with cable.
 
Old 07-31-2010, 05:26 AM   #8
ethereal1m
Member
 
Registered: Jan 2010
Distribution: slackware 13.0 64
Posts: 259

Original Poster
Rep: Reputation: 30
ok, i got things run correctly now...

set LAN IP of modem in different subnet than the router, disable dhcp so I can limit the IP address allocation, set the correct DNS server IP address, and set the correct gateway (the router IP) to the laptop and PC clients.

Thanks for the reply, I appreciated...
 
  


Reply

Tags
router, wireless


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
Connect acer nb wireless 2200bg centOS 5.4 to D-link DSL-2640T wireless router LinpusKelvin Linux - Networking 2 05-10-2010 11:32 AM
Intel 4965 AGN - can't connect to wireless 802.11b router, can connect to 11g siodine Linux - Wireless Networking 3 12-01-2007 08:36 AM
Wireless - Can connect to router but not to internet alpeters Linux - Laptop and Netbook 11 05-01-2007 02:26 AM
Can't connect to internet from wireless DSL Router chyan Linux - Wireless Networking 3 01-23-2007 11:27 AM
Can't connect to internet. (router) NomDeGuerre Slackware 9 02-27-2004 01:55 PM


All times are GMT -5. The time now is 03:43 AM.

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