LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 02-08-2009, 01:43 AM   #1
linuxlainen
Member
 
Registered: Jul 2006
Location: Earth
Distribution: Ubuntu 9.04
Posts: 64

Rep: Reputation: 16
Creating a bridge from ADSL router to WLAN router


Hi all,

I'm not really sure if the term bridge is even the right one for what I need, so please bare with me on this one.

My current network setup is as follows:

Code:
                     Ubuntu Linux box
A-Link ADSL router < 
                     D-Link WLAN Router -> several devices (laptops,PS3..)
My problem is, I am not able to connect any of the devices, connected through the WLAN router to the Linux box.

I don't have static IP address. My ISP provides the IP, which changes almost every 3-5 days.
The IP I currently have in linux box is 91.155.190.121, where in PS3 I get
192.155.179.211

I suppose the difference in the IP address explains why I am not able to ping/connect these machines together.
Is there any solution for this? Please help.

I read in some other pages that if I connect the WLAN router with the ADSL router by not using the WAN port, the WLAN router will act as hub, hence the problem would be solved. Well, I tried that one and I still have the same probelm :S

Last edited by linuxlainen; 02-08-2009 at 01:46 AM.
 
Old 02-08-2009, 04:48 AM   #2
jimjones
Member
 
Registered: May 2005
Location: Belgium
Distribution: slackware 10.2
Posts: 43

Rep: Reputation: 15
well the first ip you've posted is an internet ip - so i suppose that is not your linux box's ip but your adsl router's
the second one seems to be a private one so probably the wireless acts as a dhcp server
easiest way to get things working is to plug in your linux box into the wireless if it has cable slots which i suppose runs from the adsl to the linux box and the wireless - or connect it thru a wireless card
else you are in to a course of basic tcpip - subnetting and setting up dhcp servers

also you can tell from what is above that i have to guess a lot so if you want help with setting it up you better get some more info - like what does ifconfig typed in shell on the linuxbox show (there's an ip in there somewhere - that's your linux ip)

if you keep with your current setup you have 2 different which should be connected - this should be configured on the wireless

veel plezier er mee
 
Old 02-08-2009, 07:37 AM   #3
linuxlainen
Member
 
Registered: Jul 2006
Location: Earth
Distribution: Ubuntu 9.04
Posts: 64

Original Poster
Rep: Reputation: 16
Hello jimjones

Thank you for your reply.
Due to cabling and signal coverage issues, I am not able to have the linux box connected directly to the WLAN router.

Here is the ifconfig output:
Quote:
eth0 Link encap:Ethernet HWaddr 00:1c:25:56:7d:e7
inet addr:91.155.190.129 Bcast:91.155.191.255 Mask:255.255.240.0
inet6 addr: fe80::21c:25ff:fe56:7de7/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:176 errors:0 dropped:0 overruns:0 frame:0
TX packets:198 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:124986 (124.9 KB) TX bytes:32536 (32.5 KB)
Interrupt:251 Base address:0x2000

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:2463 errors:0 dropped:0 overruns:0 frame:0
TX packets:2463 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:71997 (71.9 KB) TX bytes:71997 (71.9 KB)
 
Old 02-08-2009, 11:06 AM   #4
jimjones
Member
 
Registered: May 2005
Location: Belgium
Distribution: slackware 10.2
Posts: 43

Rep: Reputation: 15
weird
your ip adress behind the adsl router is an internet ip-adress

any idea what the ip adress is your wireless uses for connection with the adslrouter? (you can find that by going to a whatsmyip site from your laptop or another wireless device)
If thats also an internet ip then i assume your adsl router only allows outgoing connections and doesnt act as a hub routing traffic from wireless to linux box
You could try enabling that (your modem - you have the docs i suppose) or even have the adsl rouyer act as a dhcp server or hub for a local network using your own adress space - i.e. 192.168.X.X
Just a thought - is this modem provided by your isp?
 
Old 02-08-2009, 02:34 PM   #5
linuxlainen
Member
 
Registered: Jul 2006
Location: Earth
Distribution: Ubuntu 9.04
Posts: 64

Original Poster
Rep: Reputation: 16
Hi,

Here is an IP of one of the machines connected to the WLAN router: 192.155.179.211
Yes, the ADSL modem is provided from the ISP.

I'm afraid I didn't understand what I am supposed to do. Would you simplify please.

Thanks
 
Old 02-08-2009, 03:58 PM   #6
jimjones
Member
 
Registered: May 2005
Location: Belgium
Distribution: slackware 10.2
Posts: 43

Rep: Reputation: 15
Quote:
Originally Posted by jimjones View Post
you can find that by going to a whatsmyip site from your laptop or another wireless device
well that didnt work too well

and i suppose you will not be able to configure the adsl router either- so no luck

so back to my first suggestion : the easiest way is to get your linux box also behind the wireless

good luck
 
Old 02-12-2009, 10:55 AM   #7
linuxlainen
Member
 
Registered: Jul 2006
Location: Earth
Distribution: Ubuntu 9.04
Posts: 64

Original Poster
Rep: Reputation: 16
Hi,


Well, I finally managed to make it work, by following your advice and connecting the linux box straight to the wlan router.

However, there is still a nasty issue pending. When I connected the ADSL modem to WLAN router through the WAN connction, the Linux box lost its connection to the internet. The only way I managed to solve is, was by connecting the ADSL modem to the WLAN router through one of the 4 normal hub connections. Any idea why is that?
This is of course not the best option for me as I am now losing one needed Ethernet connection of my WLAN router.

Please advise.
 
Old 02-12-2009, 11:20 AM   #8
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,187

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
Buy a Ethernet switch box and cable it (as an additional hub) to your WLAN router port, thus (assuming a 4 port switch) giving you three additional cable ports to your WLAN. (A four-port switch should be in the $10 price range. That's what I paid in 1998 for the last one I needed.)
 
  


Reply


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
Connecting 2 machines using my DSL router (or router/bridge) resetreset Linux - Networking 3 07-29-2008 04:18 AM
adsl modem/router in bridge krayz1e Linux - Networking 5 03-04-2006 10:44 AM
AP, Bridge or Router? bigearsbilly Linux - Wireless Networking 10 02-15-2005 09:05 AM
ADSL Routers Setup- Microsom Deskporte router 100 and Planet ADSL modem router mabonline Linux - Hardware 1 02-27-2004 05:36 PM
ADSL Router + Linux Router + LAN = HELP!!! linuxlois Linux - General 2 09-16-2003 08:24 AM

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

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