LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Creating a bridge from ADSL router to WLAN router (https://www.linuxquestions.org/questions/linux-networking-3/creating-a-bridge-from-adsl-router-to-wlan-router-703069/)

linuxlainen 02-08-2009 01:43 AM

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

jimjones 02-08-2009 04:48 AM

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 :)

linuxlainen 02-08-2009 07:37 AM

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)


jimjones 02-08-2009 11:06 AM

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?

linuxlainen 02-08-2009 02:34 PM

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

jimjones 02-08-2009 03:58 PM

Quote:

Originally Posted by jimjones (Post 3436191)
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

linuxlainen 02-12-2009 10:55 AM

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.

PTrenholme 02-12-2009 11:20 AM

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


All times are GMT -5. The time now is 04:03 PM.