Jump to content


 


Register a free account to unlock additional features at BleepingComputer.com
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.


Click here to Register a free account now! or read our Welcome Guide to learn how to use this site.

Photo

HELP configuring LAN to WAN network


  • Please log in to reply
18 replies to this topic

#1 juanodiy

juanodiy

  • Members
  • 13 posts
  • OFFLINE
  •  
  • Local time:04:14 PM

Posted 10 July 2015 - 04:26 AM

 thanks for read this topic, I am trying to set up a small network, just 3 computers and one server, the thing goes as follows:

 

3 computers sharing files with server, 

 

only server needs internet connection

 

as the office is located in a warehouse, the internet connection is shared by all the offices, therefore I need to create a subnet for just this office, my problem is when I try to change the IP address of the 2nd router which would be acting as a bridge I lost connection to it, and even if I try to access again through the new IP it just does not connect so I have to reset again to default,

some description here

 

1st router:

IP: 192.168.1.1

subnet mask: 255.255.255.0

DHCP from 192.168.1.100 to 192.168.1.199

 

2nd router

default IP: 192.168.15.1

subnet mask: 255.255.255.0

DHCP from 192.168.1.100 to 192.168.1.199

 

 

I am trying to change 2nd router IP to 192.168.1.2 and creating a LAN to WAN connection so then I would have a private subnet for just the office I want, problem is everytime I change any further option like gateway or channel suddely i lost connection and i can't recover it, when i type ipconfig nothing appears in gateway IP, what can I do to set up this network, any advice any help would be highly appreciated, thanks

 

btw the topology is, all hosts and server to a switch, switch to 2nd router and 2nd router WAN port to 1st router LAN port, however when I am setting up the router is not connected no anything yet.



BC AdBot (Login to Remove)

 


#2 Kilroy

Kilroy

  • BC Advisor
  • 3,391 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Launderdale, MN
  • Local time:12:14 AM

Posted 10 July 2015 - 05:33 AM

Do you want to prevent the other network from accessing these computers and vice versa?  If you want both networks to be separate you need three routers.

 

You're going to either have to set static IPs on the client machines or use the router to prevent Internet access.



#3 Tiempo

Tiempo

  • Members
  • 12 posts
  • OFFLINE
  •  
  • Gender:Male
  • Local time:02:14 PM

Posted 10 July 2015 - 07:33 AM

Hi Juanodiy, I don't think Router -> Router -> Switch -> Computers is possible. Unless you disable the DHCP of your 2nd router or make it as "client bridge", but you need a 3rd party software to do that. Try to search DD-WRT. Note: Please be guided that installing open source firmware to your router may break it, make sure that your router can support it.



#4 juanodiy

juanodiy
  • Topic Starter

  • Members
  • 13 posts
  • OFFLINE
  •  
  • Local time:04:14 PM

Posted 10 July 2015 - 07:39 AM

well, yeah, that is my idea, I don't want the other computers in the network to have access to the files in this computers, is there any easier way?



#5 juanodiy

juanodiy
  • Topic Starter

  • Members
  • 13 posts
  • OFFLINE
  •  
  • Local time:04:14 PM

Posted 10 July 2015 - 07:46 AM

Hi Juanodiy, I don't think Router -> Router -> Switch -> Computers is possible. Unless you disable the DHCP of your 2nd router or make it as "client bridge", but you need a 3rd party software to do that. Try to search DD-WRT. Note: Please be guided that installing open source firmware to your router may break it, make sure that your router can support it.

 

Hi Tiempo, I didn't want to disable the DHCP of the 2nd router because that means is just gonna work as a hotspot, although could be a possibility if cannot do it otherwise, unfortunately that router does not support any 3rd party software that I know, I check the DD-WRT database but is not there and also tomato, it seems like a very limited router, however i read on some articles that you don't need any 3rd party software to make it work, anyway, the problem is every time i tried to change the IP address of the router I loose connection after a while and I don't know why



#6 Tiempo

Tiempo

  • Members
  • 12 posts
  • OFFLINE
  •  
  • Gender:Male
  • Local time:02:14 PM

Posted 10 July 2015 - 07:59 AM

well, yeah, that is my idea, I don't want the other computers in the network to have access to the files in this computers, is there any easier way?

Hello juanodiy, how about hiding your hard drives or "turning off network discovery" and "turning on password protected sharing"?



#7 YeahBleeping

YeahBleeping

  • Members
  • 1,258 posts
  • OFFLINE
  •  
  • Gender:Male
  • Local time:12:14 AM

Posted 10 July 2015 - 09:43 AM

In Router # 2 ( just to make sure ) you connected the WAN port to one of Router #1's open ports correct?  You may need to assign Router #2's IP address in Router #1 as a static IP.  But as Killroy suggested if you want these two 'locations' to be separate you need 3 routers or 2 routers and a switch.



#8 Wand3r3r

Wand3r3r

  • Members
  • 2,027 posts
  • OFFLINE
  •  
  • Local time:10:14 PM

Posted 10 July 2015 - 10:14 AM

juanodiy your ip addressing is wrong.  You can not have a router whose lan dhcp range is x.x.1.x and have it at x.x.15.x as gateway.  You can not have router 1 provide the dhcp services for router2 if connecting by router2's wan port. Dhcp won't go beyond the routers wan port.

 

proper 2nd router

default IP: 192.168.15.1

subnet mask: 255.255.255.0

DHCP from 192.168.15.100 to 192.168.15.199

 

You don't need to do anything for the router2's wan port but leave it at dhcp client default.  You would only need a static ip if doing port forwarding and in your situation that is never going to happen.

 

Most likely the reason you are losing your connection to router2 is for the following reasons;

Your network card has a static ip in the 192.168.1.x range  which will not allow you to connect to a router at 192.168.15.x

You disabled or misconfigure the dhcp service on router2.



#9 juanodiy

juanodiy
  • Topic Starter

  • Members
  • 13 posts
  • OFFLINE
  •  
  • Local time:04:14 PM

Posted 10 July 2015 - 10:55 AM

Thanks Wand3rer I'm gonna have a look at that, funny thing is, when I change the 2nd routers IP from 192.168.15.1 to 192.168.1.2 for example, I can still have access to it but then after a while I lost the connection, so should I change something in the Ip address config in the laptop?



#10 Wand3r3r

Wand3r3r

  • Members
  • 2,027 posts
  • OFFLINE
  •  
  • Local time:10:14 PM

Posted 10 July 2015 - 11:07 AM

"when I change the 2nd routers IP from 192.168.15.1 to 192.168.1.2"

why are you doing this?

 

If router2 is connected to router1 via its wan port and router 1 is using 192.168.1.x for its lan/router2's wan and you change the 2nd routers lan to 192.168.1.x router2 can not route with the same subnet on its lan as on its wan.

 

Your laptop should be set to "optain ip address automatically"



#11 Kilroy

Kilroy

  • BC Advisor
  • 3,391 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Launderdale, MN
  • Local time:12:14 AM

Posted 11 July 2015 - 06:50 PM

Here are a couple of pages to look at for setting up multiple routers NAT Router Security Solutions and Multi-NAT Router Networks



#12 juanodiy

juanodiy
  • Topic Starter

  • Members
  • 13 posts
  • OFFLINE
  •  
  • Local time:04:14 PM

Posted 12 July 2015 - 09:29 AM

"when I change the 2nd routers IP from 192.168.15.1 to 192.168.1.2"

why are you doing this?

 

If router2 is connected to router1 via its wan port and router 1 is using 192.168.1.x for its lan/router2's wan and you change the 2nd routers lan to 192.168.1.x router2 can not route with the same subnet on its lan as on its wan.

 

Your laptop should be set to "optain ip address automatically"

 

I understand that, but I haven't even got there, I mean I haven't even had the chance to connect the routers because as soon is I make a change on 2nd router, I loose connection to it, I can't access to it anymore, is like there is no response when I try to call the IP, then i have a hard reboot the modem to its factory settings again

 

 

Here are a couple of pages to look at for setting up multiple routers NAT Router Security Solutions and Multi-NAT Router Networks

 Thanks Kilroy, I will have a look



#13 CaveDweller2

CaveDweller2

  • Members
  • 2,629 posts
  • OFFLINE
  •  
  • Gender:Male
  • Local time:01:14 AM

Posted 12 July 2015 - 12:31 PM

When you connect to Router2 to make the change what address do you enter? cause if it is .15.1 and you change it to .1.2, your PC is still in the .15.X network, so you have to do an ipconfig /release /renew to get into the .1.X network.


Hope this helps thumbup.gif

Associate in Applied Science - Network Systems Management - Trident Technical College


#14 juanodiy

juanodiy
  • Topic Starter

  • Members
  • 13 posts
  • OFFLINE
  •  
  • Local time:04:14 PM

Posted 12 July 2015 - 10:13 PM

Guys, what am I doing wrong I am trying to set up 2nd router as follows:

 

  Internet IP address: 192.168.2.1 // creating a new subnet

subnet mask: 255.255.255.0

gateway 192.168.1.1 // 1st router IP

primary dns 192.168.1.1

 

it says Ip address and gateway cannot be the same as subnet mask



#15 Wand3r3r

Wand3r3r

  • Members
  • 2,027 posts
  • OFFLINE
  •  
  • Local time:10:14 PM

Posted 13 July 2015 - 08:57 AM

gateway 192.168.2.1

dns 192.168.2.1

 

x.x.1.x is wrong

 

Here is a diagram:

 

internet<>[wan port] router1[lan port/gateway 192.168.1.1]<> [wan port at 192.168.1.2] router2 [lan port/gateway 192.168.2.1]

 

Router 1's dhcp scope 192.168.1.100-254

Router 2's dhcp scope 192.168.2.100-254

 

Hope this helps


Edited by Wand3r3r, 13 July 2015 - 10:21 AM.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users