Thank you for being a valued part of the CNET community. As of December 1, 2020, the forums are in read-only format. In early 2021, CNET Forums will no longer be available. We are grateful for the participation and advice you have provided to one another over the years.

Thanks,

CNET Support

Resolved Question

IP Networks Issue

May 30, 2018 3:12AM PDT

Hello Friends,

Ive been facing this issue for quite a long time now, and couldn't figure out it's logic. So let me explain what i got:

I have Xampp installed on a Linux Desktop PC which is connected to two local networks at the same time: The first one (192.168.1.0/24) doesn't go out to the internet, but the second one does (192.168.0.0/22) and is connected via Wifi.

My problem is that i can't access Xamp whith an ip adress in the 192.168.1.X range when i'm connected to the 2nd network. Keep in mind that it's (192.168.0.0/22) range is from 192.168.0.0 to 192.168.3.255. However, i can access Xampp just fine when i put on and ip adress in the 192.168.0.X, 192.168.2.X or 192.168.3.X ranges.

I know it probably has something to do with the 192.168.1.X range on the first local net. maybe some kind of conflict ?

Discussion is locked

Zak_B18 has chosen the best answer to their question. View answer

Best Answer

- Collapse -
That sounds like
May 30, 2018 9:32AM PDT

Mind you that this is an area I do not fix networks for others. I will write it sounds like a configuration issue or possibly DNS setup.

But for now, check your routing and your DNS resolver.

- Collapse -
Just re-read.
May 30, 2018 10:50AM PDT

The LAN that is /22. That's an issue as the server is technically on that LAN.

You may have to redesign that 192.168.1.x/24 LAN to not be inside the 192.168.x.x/22 address space.

- Collapse -
True
May 31, 2018 4:54AM PDT

I think you're right.

192.168.0.0/22 encompasses the IP range from 192.168.0.0 to 192.168.3.255 - this includes 192.168.1.0/24. I don't think there is a clean way you can route from 192.168.0.0/22 to 192.168.1.0/24.

So i might have to move the offline stub's subnet out of the connected subnet, e.g. use 192.168.129.0/24 and test it out.

- Collapse -
As they often say.
Jun 1, 2018 10:48AM PDT

"Once you see it."

I think you'll sort this out RSN.

- Collapse -
Answer
explain what sort of "access" you are blocked from
May 30, 2018 10:38AM PDT

The one you can't access it is the restricted LAN. The Xampp is set up to serve the unrestricted IP address range. How then can it also serve the restricted one and still keep that one secure?

- Collapse -
Answer
Advanced Linux
Jun 2, 2018 12:27PM PDT

If this is really urgent and ready to play with your configuration, then you can do the below settings

1. Add your local lan in network namespace
2. keep your wifi in main sys
3. start your xamp in linux with below command
ip netns exec [namespace] "xamp start command"

For your reference read below link
https://blog.scottlowe.org/2013/09/04/introducing-linux-network-namespaces/

This way lan and wan routing would be seprated and wont conflict

- Collapse -
This doesn't address the IP Plan.
Jun 2, 2018 12:39PM PDT

Next time, tell how this applies to their IP plan problem.

- Collapse -
Explaining further
Jun 4, 2018 3:57AM PDT

192.168.1.0/24 -> In Network Namespace LAN
192.168.0.0/22 -> In Main console
routing for lan can be done via simple ip route command
routing for wifi can be done via ip netns exec wijunglens ip route
It is just like you are having two containers.

Let me know if you still have any doubt

- Collapse -
Still doesn't fix the issue I covered above.
Jun 4, 2018 8:36AM PDT

No worry, I didn't see the problem until the second reading.

If you feel simple routing commands will work, most folk will need working examples of the commands to use.

Post was last edited on June 4, 2018 8:50 AM PDT