473,378 Members | 1,495 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

What happen in my network architecture?

11 Byte
Hi, I'm MaskerTim.
and I attach a diagram about my network architecture and what problem I have.

Under the premise on my network setting:
  1. All firewall in host I close.
  2. I set some route table. (That describes in picture)
  3. Device A at the LAN side can succeed to ping to Server A at the WAN side, however, Server A didn't ping successfully to Device A. (Also in picture)

I don't know why fault it is?
Jun 25 '20 #1

✓ answered by Banfa

If you put the server on anything other than the subnet the router is on then it will not work; what you are battling is the router which is incapable of handling anything other than a single subnet.

If you are in a lab with bits a pieces lying around then what you could do is

Find some PC/Laptop/Box with 2 Ethernet ports (you can always add ports with a USB to Ethernet) Connect 1 port to the Wireless router using DHCP and the other port to your switch.

You now have 2 separate phsyical networks with a computer between them; I would install Linux on this computer (Windows may be able to do this I'm not sure, Linux can). This computer is going to bridge the 2 networks (i.e. connect them together).

On the computer
  • Configure the port connected to the router to use DHCP so that it is part of the routers subnet (you can configure the router to always give it the same address (normally)).
  • Give the port on the wired network a static IP in the same subnet as the router.
  • Set up the routing table to route packets from 1 port to the other

On the server
  • Configure it with a static IP address in the subnet of the wired network
  • Configure the bridge computer as the gateway for the other network using its IP address on the wired network

On your wireless devices connected to the router
  • Configure the bridge computer as the gateway for the wired network using its IP address from the router

Modified picture attached

15 4595
Banfa
9,065 Expert Mod 8TB
Can you ping the wif brouter from the server? I'd say the problem is in you WiFi router especially given its configuration.
Jun 25 '20 #2
MaskerTim
11 Byte
Oh, I forgot to mention. Indeed, I also can't ping to wifi router gateway. And static route setting in wifi router, I only can set WAN in interface column. Is wifi router only one NIC? I think Server A need to send WAN IP and transform into LAN IP and then send to Device A. Is my knowledge wrong?
Jun 25 '20 #3
Banfa
9,065 Expert Mod 8TB
I am not at all sure what you are trying to do is possible, I am sure that with some hardware it would definitely be impossible. The problem is around how a router works.

A lot of the time a router works by using NAT forwarding, this only works in 1 direction, inside the network to outside because what the router does is replace the IP address in the packets it receives with it's own IP address before forwarding on a different port selected for the purpose of that communication. When it receives replies to that port it then knows which internal IP address the packet is destined for and re-writes the correct IP address into the packet.

What this means is that the router is just not expecting to see packets with IP addresses for its internal network on its external port so it ignores them (also why your routing table is limited to the WAN interface).

I think if you want that network topology to work you will need a Wireless AP rather than a Wireless router. An access point acts a bit more like a bridge, connecting 2 networks together seamlessly.
Jun 25 '20 #4
MaskerTim
11 Byte
If I want to build a internal network and two different sub-network. Like Device A and Server A in my diagram. They are two different internal network domain then I want to communicate each other. Can Wireless AP split two sub-network and connect between?

In my mind, two different network domain need to use router to transform IP into the other network domain (just NAT you mentioned) whatever they are internal or external. Do you have any opinion on my point of view?
Jun 25 '20 #5
Banfa
9,065 Expert Mod 8TB
No with a Wireless AP you would effectively have a single sub-net with a single DHCP server somewhere (on the server??); unless of course your switch is a layer 3 switch supporting VLANs and routing between them.

With the Wireless Router the router is running a DHCP server for the Wireless sub-net while you must have another DHCP server running on the wired portion of the network. The problem is that the oruter you have doesn't appear to route traffic from the wired to the wireless side.

Keeping the wireless and wired devices in different sub-nets (or VLANs) is a good idea, for problem solving and security reasons but it requires the right hardware to do it; since you have not specified what your hardware is it is hard to know but I have been assuming consumer level kit (dumb switch, consumer Wireless router) which generally are not so easy to configure as the manufactures tend to lock down their functionality, presumable for cost reasons but I expect they'd say they were assisting the user in not displaying a dizzying array of configuration options which the user won't understand.
Jun 26 '20 #6
MaskerTim
11 Byte
My wifi router I use is DIR-859, Dlink manufacturer. I think that's a consumer kit. It can set QoS, route table, bind ip with Mac..., so I think that's not complex setting.

I'm still network beginner. Although I don't know what VLAN is, but I think it doesn't provide this function (I think that's for user not network manager).

I use static IP setting on server. So server A doesn't by dhcp. Wireless side use dhcp setting, so Devic A's IP is assigned from wireless router.

You point out a important view about router may not have router traffic from wired side to wireless side.

I want to connect with each other in different sub-net. If I want to solve this problem, do I need to use two router to connect? I use the switch (layer 2) with wifi router(WAN port) and server A. I just think I set static IP on server A to make different sub-net from device A below wireless router.
Jun 26 '20 #7
MaskerTim
11 Byte
Okay, I would try to search the case that is similar to mine on this forum and do more try-error in lab.
Jun 26 '20 #8
MaskerTim
11 Byte
Thanks. It's not assignment in college. I just learn to build network for the future of designing and constructing network architecture.

My problem is that I want to build two sub-net, and one side use wireless then another side use wired connected to wifi router's WAN port (just the diagram I draw). I can send from device below wifi router to WAN connected to Server, but reversely can't send successfully.

Just like Banfa says. Maybe I choose the fault hardware to do that. Maybe that architecture is not correct. I don't know If I want to split two sub-net and connect each other, Is wrong my network architecture and need to change it or How do I build to solve my problem?
Jun 26 '20 #9
MaskerTim
11 Byte
Thanks for Banfa. You give me lots of advices. I have some direction to try-error my network. If you have other opinion, I'm pleasure to communicate with you and tell what my point of view is.
Jun 26 '20 #10
Banfa
9,065 Expert Mod 8TB
So the DIR-859 is a standard consumer router providing connections out to a WAN (broadband) as well as wired and wireless connections internally on the same network.

The routes you have set-up in the Wireless router are doing nothing because they concern the WAN port which is not in use. I can tell if you have a separate switch or if you are referring to the switch with-in the router providing the 4 gigabit Ethernet ports but the assumption in a router of this type is what everything is on the same subnet (because that is what is simplest for most consumers).

By giving your server a static IP in a different sub-net you are placing it on a different sub-net to everything else hence it can communicate with nothing.

By setting a static IP on the WAN in the router you have statically set the IP address of the WAN port, but note this is not the Ethernet ports that your wired network is using. Additionally if this was actually connected to a WAN you would almost certainly have broken the link as most networks expect equipment to request an IP address not set one statically.


To make this topology work with this equipment your best option is to switch on DHCP in your server, it will then obtain an IP address from the router putting it on the same subnet as the router and all the wireless devices.

If you want a topology with different sub-nets then there are a number of options but all of them involve buying new network gear.
Jun 26 '20 #11
MaskerTim
11 Byte
Don't worry about buying network gear, we have a lot Ethernet switches in our lab. So if I would like to one side using wireless and the other side using wired (Ethernet), I need to put Server under the Switch (Server wired to Switch), then Switch plug into wifi router's LAN and Device use the wifi router's DHCP assigned. Server set static IP to split its sub-net.

If I build what I talk above, is that concept correct?
Jun 26 '20 #12
MaskerTim
11 Byte
Just like what I draw.

That is my reconstruct I think.
Jun 26 '20 #13
Banfa
9,065 Expert Mod 8TB
If you put the server on anything other than the subnet the router is on then it will not work; what you are battling is the router which is incapable of handling anything other than a single subnet.

If you are in a lab with bits a pieces lying around then what you could do is

Find some PC/Laptop/Box with 2 Ethernet ports (you can always add ports with a USB to Ethernet) Connect 1 port to the Wireless router using DHCP and the other port to your switch.

You now have 2 separate phsyical networks with a computer between them; I would install Linux on this computer (Windows may be able to do this I'm not sure, Linux can). This computer is going to bridge the 2 networks (i.e. connect them together).

On the computer
  • Configure the port connected to the router to use DHCP so that it is part of the routers subnet (you can configure the router to always give it the same address (normally)).
  • Give the port on the wired network a static IP in the same subnet as the router.
  • Set up the routing table to route packets from 1 port to the other

On the server
  • Configure it with a static IP address in the subnet of the wired network
  • Configure the bridge computer as the gateway for the other network using its IP address on the wired network

On your wireless devices connected to the router
  • Configure the bridge computer as the gateway for the wired network using its IP address from the router

Modified picture attached
Jun 26 '20 #14
MaskerTim
11 Byte
You give me a clear point, the Bridge. I forget that concept. I would try this architecture in lab when the work days start. The lab is closed during these days (because of the holidays in my country), so I can't entry my lab. That's why I can only image what it would run.

After Two days later, I would try it and then reply the result whether it is success or not.

Thanks Banfa. You give me a big advice. And the diagram you redraw makes me have a way to try.
Jun 26 '20 #15
MaskerTim
11 Byte
Okay, I succeed to do it!! Thanks for your help.
Jun 29 '20 #16

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: P.Hill | last post by:
I have this simple bit of code that when you check a checkbox and it displays or hides two other fields (well actually two parts of the document with two different IDs. Pretty straight forward......
1
by: lauch2 | last post by:
After performing the following steps, what happen to my application or the system: 1. My application has a class, namely CMyWnd, which is inherited from CWnd. 2. Instantiate a CMyWnd object by:...
1
by: Yok | last post by:
Can I create a singleton class and put a SqlConnection in it and keep it open?
12
by: William | last post by:
VB6 had the ability to pause your execution while debugging, messing with the code, and continue executing right from where you left off. Is DotNet ever going to have this capability? I really...
0
by: ABC | last post by:
class PremiumControl { DataTable DefaultView; LoadData() ............ SaveData() ...................
6
by: **Developer** | last post by:
I can't find how to search an entire solution for a string, say "Sub (ByRef" Nor how to search the entire solution using Regular Expressions. These were my favorite things - please don't tell me...
8
by: luanhoxung | last post by:
hi all! i want to create group text for showing my invoice number. the invoice no. is created by 3 parts. 1st part: autonumber increasing at each new record. 2nd part: 2 characters of current...
5
by: Ronald S. Cook | last post by:
I'm trying to see if a file exists on a server. I have the below code which doesn't seem to work. Must I necessarily have a mapped drive to that the path starts with X:\ or similar? if...
5
by: Vols | last post by:
class A{ public: int x; }; class B : public A{ public: int y; }; void foo()
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.