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 09-01-2011, 01:46 PM   #1
DeMus
LQ Newbie
 
Registered: Sep 2011
Location: The Netherlands
Posts: 11

Rep: Reputation: Disabled
Connecting two networks with different IP-ranges


Hi,

I have a network at home consisting of a modem, directly connected to a router with LAN addresses in the 192.168.0.xxx range.
Because of having bought a new laptop, with a wi-fi connection, I also would like to use this wireless connection. I received a wireless router from my brother-in-law and connected it to the original router. The wireless router uses addresses in the 192.168.1.xxx range.

With the laptop I can use the internet very well, but I can't see my other computers connected to the other network router.

I can't use the wireless router (Linksys WRT54G) as main router since the speed between WAN and LAN is limited to 20mbits which is half my internet speed. As said internetting with it is just fine for the laptop where I don't download large files.

I have now connected the original router not to the WAN side of the wireless router but to its LAN side AND switched off the DHCP server inside. The router has been demoted to a switch. Now I do get addresses in the original routers range and the computers can make contact.

I just wonder is there another way of connecting 2 networks together without switching off a router so it becomes a switch?
At the moment I can't reach the wireless routers settings because it's no longer a router. I would like to upgrade the firmware but since it is now only a switch there is no internal address I can go to. I probably also don't need to upgrade the firmware when I use it as a switch anyway.

At the following site I have a drawing which probably explains it a bit better than what I wrote:
File in PDF format

Who can help me to make my network work the right way?
 
Old 09-01-2011, 03:02 PM   #2
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora
Posts: 3,935
Blog Entries: 5

Rep: Reputation: Disabled
Access to different IP networks is configured using routes. If I understood you correctly, in your case you'll have a default router (assigned by DHCP), and an additional static route that gets you to 192.168.1/24

What OS / version?
 
Old 09-01-2011, 03:23 PM   #3
DeMus
LQ Newbie
 
Registered: Sep 2011
Location: The Netherlands
Posts: 11

Original Poster
Rep: Reputation: Disabled
Hi, thank you for helping me.
On my desktop I use LinuxMint 9 Isadora and onmy laptop I use LinuxMint 11 Katya.
Both OS'es in 64-bit.

Edit: did you see the pdf file which I hope makes it a bit more clear.

Last edited by DeMus; 09-01-2011 at 03:27 PM.
 
Old 09-02-2011, 10:35 PM   #4
DeMus
LQ Newbie
 
Registered: Sep 2011
Location: The Netherlands
Posts: 11

Original Poster
Rep: Reputation: Disabled
Is there onbody here who has experiences with this problem? A bit hard to believe.
Come on, who can help me, please?
 
Old 09-03-2011, 03:23 AM   #5
bouke
LQ Newbie
 
Registered: Apr 2004
Location: Drachten
Distribution: CentOS + Ubuntu
Posts: 17

Rep: Reputation: 0
Quote:
Originally Posted by DeMus View Post
Is there onbody here who has experiences with this problem? A bit hard to believe.
Come on, who can help me, please?
I think that you use the wireless router's WAN connection to connect to the modem's LAN connection? I think you need to change two things:
1. change LAN config of your wireless router
2. connect wireless router LAN port to modem's LAN port

Modem = 192.168.0.X
Wirelesse router = 192.168.1.X

What you could do is:
1. disconnect wireless router from modem (and connect it to your desktop/laptop wired)
2a. connect to wireless router's web interface and change LAN IP address to (for example): 192.168.0.253 (this IP needs to be outside DHCP schope of your modem)
2b. Enter for subnet the same you've got on your modem
2c. Enter for gateway and DNS the IP address of your modem (if possible)
3. disable DHCP on the Wireless router
4. connect LAN port of Wireless router to LAN port of your modem

Please write down the details of your modem before you start (IP address and subnet). You need them.

We could help you more effecient if you give use the following details:

1. Brand + type of modem
2. Brand + type of wireless router
3. IP address + subnet of modem
4. DHCP scope of modem

But I think you've got the idea now ;-)

Last edited by bouke; 09-03-2011 at 03:25 AM.
 
Old 09-03-2011, 04:48 AM   #6
DeMus
LQ Newbie
 
Registered: Sep 2011
Location: The Netherlands
Posts: 11

Original Poster
Rep: Reputation: Disabled
Bouke, thank you for your answer.
As I said in my original post I wrote already I have connected the wireless router with a LAN connector to the other router and I have switched of the DHCP server in the wireless router. It works this way, but I have demoted the wireless router to a wireless switch.
My laptop now gets an address from the normal (not wireless) router just as the other PC's. Also when I connect the laptop with a cable I still have an address in the same series as the other PC's so I can see those computers without a problem.

It's just I would think there would be another way of doing this. Obviously not.

DeMus.

Edit: See new PDF file of the current situation

Last edited by DeMus; 09-03-2011 at 04:57 AM.
 
Old 09-03-2011, 09:16 AM   #7
bouke
LQ Newbie
 
Registered: Apr 2004
Location: Drachten
Distribution: CentOS + Ubuntu
Posts: 17

Rep: Reputation: 0
Talking

Hello DeMus,

Your network looks fine (no problem with this). I think it is the best way to keep things simple (KISS-principe) ;-)

There is an option to connect 192.168.0.x to 192.168.1.x using network address translation... or a (fixed) routing table... but why? It would make your network (unnecessary) complicated :-)

You could give us more details about your modem, router and wireless router (brand and type), so we are able to find out if it would work... but I think it is better to keep things simple; network administration sometimes is a challenge... but it shouldn't be a struggle.
 
Old 09-03-2011, 09:48 AM   #8
DeMus
LQ Newbie
 
Registered: Sep 2011
Location: The Netherlands
Posts: 11

Original Poster
Rep: Reputation: Disabled
Thank you Bouke. In the mean time I was reading some more about the subject and I found one website where the author wrote it is possible to keep the wireless router as a router, but without DHCP of course. I should be able to use the WAN port but when I do this it does not work. I have to use the LAN port and thus changing the router into a switch with antenna's

I keep it this way, it works and that's what it is all about.

My modem is a Ziggo cable modem(don't know make and model), my router is a D-Link DIR-100 and the wireless switch is a Linksys WRT54G.

DeMus
 
  


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 two different (sub)networks yivi Linux - Networking 10 03-26-2009 12:49 AM
Connecting to MS networks Nay_Nay Linux - Networking 4 01-29-2006 12:07 PM
connecting two networks sfichera Linux - Networking 1 03-26-2005 09:54 AM
Connecting 2 networks via VPN OpsVentus Linux - Networking 2 01-23-2004 02:00 PM
connecting multiple networks kierl Linux - General 2 03-14-2003 04:59 PM

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

All times are GMT -5. The time now is 05:01 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration