-   Linux - Networking (
-   -   Connect to internet through a (wireless) router (

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.

PC has address
Router has address
Modem has address

all with netmask

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

root@firefly:~# ping
PING ( 56(84) bytes of data.
From 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.

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?


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:

pc <---> router <---> modem
so,I put as my default gateway, when I do "route -r", I got:

Kernel IP routing table
Destination    Gateway        Genmask        Flags Metric Ref    Use Iface  U    0      0        0 eth1  U    0      0        0 eth0      U    0      0        0 lo        UG    0      0        0 eth1

but still got "destination unreachable" error when try to ping

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
How do I troubleshoot this?

Any idea?


repo 07-30-2010 10:29 AM

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


igadoter 07-30-2010 10:47 AM

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. ? (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 = and your computer IP= 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

I checked the docs. The default address of your router is You should be able to connect with it via 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 10:19 PM.