I have three devices:

  • Windows PC
  • Managed switch: D-Link DGS-1510-20
  • Linux Webserver with static IP


How do I configure the switch to access the static IP webserver from the Windows PC through the switch in a local Network? (complete networking noob here..)

2 Answers 2


Removed first line - Overlooked link Schematic

A switch is not supposed to access anything but to forward traffic of machines that wants to access a machine within your LAN. In short: a switch is a Layer-2-Relay (See the OSI- or TCP/IP reference model for an explanation of networking layers).

I now assume, that you want to be able to access the webserver on your windows pc which is connected to that switch.

Usually, regardless of whether the switch is managed or not, it should forward traffic to a device without configuration.

To achieve this, your client and your windows-pc must be in the same LAN (say in the same IP-subnet) and either directly or indirectly connected to the switch.

If client and server are not within the same IP-subnet, you may have to configure the switch's routing. Unfortunately, I dont know how to do this on your device.

Also, make sure that the windows firewall is not blocking traffic to your webserver.


Note: Switches supporting VLAN's are Layer-3 capable. Otherwise communication between computers across (V)LAN's would be impossible.

To gain a solid knowledge of computer-networking, I recommend Cisco's CCENT Certification Guide. Even if you don't want to get the certificate it provides great explanations of networking fundemantals for people who have never been in touch with computer networking.

  • Thank you! I will try to route the client IP to the server IP-subnet (cant be changed). Jan 28, 2020 at 14:42

if it's layer 2 switch or asuming you are using layer2 switch then connect your server and pc to layer 2 switch and configure network adapter ip setting

For example

Window pc - ip address Subnet mask : Gateway : 192 .168.10.1

Web server : Subnet mask : Gateway :

Ensure that both web server and pc is connected to same gateway .. consider this brief example and use your internal ip address you will be able to access server services from pc

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .