Routing – D-Link L2 & L3 Network Setup

layer2layer3routingsubnet

I'm currently setting up my new network using D-Link DGS-1510 series gigabit stackable smart managed switches. It is the first time i use this L2 & L3 switches and I'm trying to setup the following scenario:

    Internet
       |
       |
    firewall
       | (internal IP: 192.168.1.254)
       |
       |
+-------------+
| L3 - switch |
+-------------+
   |       |
   |       |
   |       | (subnet: 192.168.5.0/24)
   |   +-----------+
   |   | L2-switch |
   |   +-----------+
   |      |  |  |  |  (connections to client computers)
   |
   |
   | (subnet: 192.168.9.0/24)
+-----------+ 
| L2-switch |
+-----------+
  |  |  |  |  (connections to servers)

The L2 & L3 switches are all DGS-1510 series devices. Each computer located in the two subnets, should be able to access the internet. Also should it be possible that the clients can access the servers, and the servers should be allowed to access the clients. Also the servers should be able to talk to other servers in the same network and the client should be able to access all other clients in the same network.

Therefore I created 2 VLANs on the L3 switch. The first one for the 192.168.9.0 network. I gave the port, where the L2 switch was connected, the IP Address 192.168.9.254. On the L2-Switch I added this IP Address as Gateway. For the other network i created the same configuration except that the 9 was replaced by the 9.

Additionally I added the IP 192.168.1.254 (firewall) as gateway to the L3 switch.

This was enough, that the each computer from each network was able to access the internet. But I was not able to send a ping from network 9 to network 5 and vice versa.

This is my first VLAN and routing configuration and I cannot find suitable tutorials for my problems. Is there someone who can help me with my configuration or does know some good tutorials.

Thank you
Andi

Best Answer

The only thing you need to do to make this work, is to create the switch virtual interfaces (SVIs) on the L3 switch and assign them IP addresses for both VLAN 1 and VLAN 2. Then you need to setup your end devices with the default gateway address, which would be the IP address of the SVI in the approperiate VLAN and turn on routing on the L3 switch.

You do not need to configure default gateways on the L2 switches. You would have to do this, if you would like to have L2 switch as a default gateway for your end devices... Then the scenario would be to make an SVI on the L2 switch and point the default-gateway to the L3 switch which would make the routing.

Also... The ports connected to the switches can be normal access ports, unless you want to have 2 different VLANs on the same L2 switch.

I hope that I helped.

Regards!

Related Topic