LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (http://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Connect to internet through a (wireless) router (http://www.linuxquestions.org/questions/linux-networking-3/connect-to-internet-through-a-wireless-router-823011/)

ethereal1m 07-30-2010 05:57 AM

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

repo 07-30-2010 06:01 AM

What is your default GW?
Should be the IP from the router

ethereal1m 07-30-2010 07:27 AM

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?

ethereal1m 07-30-2010 10:02 AM

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

repo 07-30-2010 10:29 AM

Did you setup the correct DNS?
Can you ping the outside on IP?
Code:

ping 173.194.36.104

igadoter 07-30-2010 10:47 AM

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.

igadoter 07-30-2010 11:05 AM

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.

ethereal1m 07-31-2010 04:26 AM

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...


All times are GMT -5. The time now is 12:54 PM.