AnswerBun.com

Access static web-server through managed switch

Server Fault Asked by imperialcode on August 21, 2020

I have three devices:

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

Schematic

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

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 192.168.10.3 Subnet mask :255.255.255.0 Gateway : 192 .168.10.1

Web server :192.168.10.2 Subnet mask :255.255.255.0 Gateway :192.168.10.1

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

Answered by Sagar Uragonda on August 21, 2020

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.

Answered by user540468 on August 21, 2020

Add your own answers!

Related Questions

Any way to migrate AWS T3 x64 to T4G ARM?

1  Asked on November 27, 2020 by ruben-john

         

how to use the pool connection correctly?

0  Asked on November 25, 2020 by lucas-muoz

     

azure networking, azure mover failed

0  Asked on November 25, 2020 by frdric-guigui

   

Servicing ws:// in Node.js via Tomcat and Apache

1  Asked on November 23, 2020 by ken-y-n

       

change URI for tfs project

0  Asked on November 23, 2020 by akrem

   

Problem with symbolic links in FTP client

4  Asked on November 15, 2020 by falcata

       

Fibre channel multipath

0  Asked on November 11, 2020 by kab00m

   

NGINX Dynamic Port proxy_pass

2  Asked on November 8, 2020 by fyroc

   

Printer not reachable in network

2  Asked on November 4, 2020 by andrea

       

Ask a Question

Get help from others!

© 2022 AnswerBun.com. All rights reserved. Sites we Love: PCI Database, MenuIva, UKBizDB, Menu Kuliner, Sharing RPP