1. Store
  2. Apps
  3. Hardware
  4. Support
  5. Solutions

ClearFoundation

Forums
Welcome, Guest
Network confusion for ClearOS acting as a Gateway
(1 viewing) 1 Guest
Go to bottomPage: 1
TOPIC: Network confusion for ClearOS acting as a Gateway
#43188
Network confusion for ClearOS acting as a Gateway 10 Months, 3 Weeks ago  
Hi,
am a little bit confused about cabling all the network stuf i have.

Currently it is like that:

Linksys DSL modem/Router -> Linksys Wireless Router -> Switch -> Workstations

Don't ask me, why there is a second router in this chain, but everything works.

Now we have a appliance box (with two nic's), where we want to install ClearOS.

Then it should be like: DSL modem/router -> Clear OS Appliance -> Switch -> Workstations

I will get no Internet connection, so i changed the setting to:

DSL modem/router -> Wireless Router -> Clear OS Appliance -> Switch -> Workstations

What i am wondering about now is:

The Appliance is able to connect to the internet, and i can ping both nics from the Workstations behind the switch. But the workstations cannot reach out to the internet.

Before the DSL Modem/Router has been the gateway, with IP x.x.x.254.

So, how do i configure both nics? One of them has got an static IP of x.x.x.48, which is being set to external and hooks up to the internet, the second has got an static IP of x.x.x.249, which is being set to internal.
I am really confused, as i tried different settings, various reinstalls etc. Which one is the correct gateway address?

Anybody being able to push me in the right direction? What do i miss?
Thanks and best

w_e
Charles Schultz
Fresh Boarder
Posts: 3
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#43193
Re: Network confusion for ClearOS acting as a Gateway 10 Months, 3 Weeks ago  
What are the Linksys DSL modem/Router's LAN subnet, the Linksys Wireless Router's LAN subnet and the ClearOS LAN subnet?.

Can you log into the Linksys Wireless Router's web interface and see how it is connecting to the WAN. Is it PPPoE or DHCP? If it is DHCP, what is its WAN IP?

The best way of connecting, if you can, is to put the DSL modem/router into bridge mode and the ClearOS WAN to PPPoE. The ClearOS LAN subnet should be different from the modem subnet. If you are configuring the ClearOS interfaces manually, the WAN should be given a static IP address in the subnet of the device it is directly connecting to. The LAN should be in a different subnet and is commonly given a .1 or .254 IP address. Again, if configuring manually, you will need to fix your WAN DNS servers manually. These can be set to your ISP's, or possibly one of the routers further up the chain or to a public DNS service such as OpenDNS or Google DNS.

It would help if you did not munge your IP addresses or else use a different letter combination for each subnet.
Nick Howitt
Platinum Boarder
Posts: 4129
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#43196
Re: Network confusion for ClearOS acting as a Gateway 10 Months, 3 Weeks ago  
Thanks,
well it seems, that i made a big mistake in the first place.

Ok, all devices are in the same subnet, i.e. 192.168.79.something. It was faster to type x.x.x than the whole lot
. DSL Modem/Router is connecting via PPPOE, So it should be that way:

Linksys DSL Modem WAG354G: 192.168.7.252 ->
Linksys Wireless Router WRT54GL (with dd-wrt Firmware): 192.168.7.253 ->
ClearOS:eth0: 192.168.7.254 (WAN) eth1: 192.168.79.254 (LAN) ->
Switch for Everything else: 182.168.79.something

Btw, i have for various devices like printers, Server etc. static IPs. Which IP as gateway to use then ?

Sill a little bit confused
Thank you for help
Best
w_e
Charles Schultz
Fresh Boarder
Posts: 3
graphgraph
User Offline Click here to see the profile of this user
Last Edit: 2012/07/02 11:11 By just_me.
The administrator has disabled public write access.
 
#43200
Re: Network confusion for ClearOS acting as a Gateway 10 Months, 3 Weeks ago  
If you have the WRT54GL between ClearOS and modem with the WRT54GLWAN connected to the modem and the WRT54GL LAN connected to ClearOS then you need to change the WRT54GL LAN subnet.

Better would be to change the WAG354G to bridge mode (sometimes called RFC1483), remove the WRT54GL and change the ClearOS WAN to type DSL/PPPoE. If you get this going, post back as you can then use the WRT54GL as a WAP on your LAN but you need to change a couple of settings in it.

For your various devices (printers, Server etc.), if they are connected to the ClearOS LAN, their gateway should be 192.168.79.254.
Nick Howitt
Platinum Boarder
Posts: 4129
graphgraph
User Offline Click here to see the profile of this user
Last Edit: 2012/07/02 13:32 By NickH.
The administrator has disabled public write access.
 
#43273
Re: Network confusion for ClearOS acting as a Gateway 10 Months, 2 Weeks ago  
Pheew,
this was an interesting experience. So it works now. I set the DSL Modem to Bridging Mode, and after fiddling around with various loginsettings for the internet provider, it finally worked out (getting tons of grey hair, till it was working ...

So thanks for pushing me in the right direction.

This leaves one question open: If i want to connect to the DSL Modem, with ip 192.168.7.252, how could i achieve this? From ClearOS LAN this does not work. I could, of course, hook up a Computer to the Modem, set the ip of the laptop to 192.168.7.100 and connect. Is there another way to do this?
Best and thanks again <bow>
w_e
Charles Schultz
Fresh Boarder
Posts: 3
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#43277
Re: Network confusion for ClearOS acting as a Gateway 10 Months, 2 Weeks ago  
I don't run a DSL modem do I can't test the solution. I have posted it before and I not 100% sure it works. I am not sure if the menu option exists in 6.2, but in 5.2 the idea is to create a virtual interface (from memory in Webconfig > Networking ? IP Addresses then a grey button near the bottom) for your PPPoE interface which would appear something like eth1:0. Give the virtual interface a static IP on the same subnet as your Modem. In theory this should allow you to connect directly but I cannot guarantee it. I found this solution by googling around a long time ago.

[edit]
I'm trying to google it with little success at the moment. One reference I've found makes me think something may need to be added to the routing table as well. Perhaps something like "route add -host 192.168.7.252 gw 192.168.7.100 dev eth1:0"
[/edit]
Nick Howitt
Platinum Boarder
Posts: 4129
graphgraph
User Offline Click here to see the profile of this user
Last Edit: 2012/07/04 07:55 By NickH.
The administrator has disabled public write access.
 
#44387
Re: Network confusion for ClearOS acting as a Gateway 9 Months, 2 Weeks ago  
hi,

what do you mean different subnet? ist subnet mask or not?
Esam Zain
Fresh Boarder
Posts: 8
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#44406
Re: Network confusion for ClearOS acting as a Gateway 9 Months, 2 Weeks ago  
A subnet is made up of an IP address and subnet mask and it defines the entire range of the subnet e.g. 192.168.100.1/255.255.255.0 (or 192.168.100.1/24) has an IP address of 192.168.100.1 and a subnet mask of 255.255.255.0. This gives a subnet consisting of addresses 192.168.100.0 - 192.168.100.255. The .0 address is not usable for addressing and the .255 is the broadcast address for the subnet and so should not have a device assigned to it.
Nick Howitt
Platinum Boarder
Posts: 4129
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
Go to topPage: 1
  get the latest posts directly to your desktop