NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
mrmabmn
Aug 18, 2017Aspirant
GS510TLP inter vlan
How do you configure the GS510TP for inter vlan communication. I am new to VLANs, I have a single GS510TPL. How do I configure 3 VLAN to create 3 separate networks which can communicate on the ...
- Aug 18, 2017
Hi,
I have tried to outline for you, what you need to do.
1. You must add an IP addresses to each of your VLAN interfaces under "Routing" --> "VLAN" --> "VLAN Routing". You have to create the VLANs first. I think you have already do this?
2. Static routes needs to be done on your Internet router for Internet access to these VLANs. You need static on your router so that the router can be made aware of the networks on the switch.
3. You need a DHCP server in each VLAN as your switch does not support DHCP relay from what I know. You cannot do the DHCP from the router as it will not be aware of the VLANs on your switch and the switch itself can't do DHCP server either, I think. The alternative is of course static IP addresses. That will work, but that is a pain for a large network.
Here is an example of a config. I am using your 3 VLANs for explanation + a VLAN used for routing to the Internet (VLAN 99). I have left VLAN 1 alone here.
VLAN 10 = 192.168.0.0 /24
VLAN 20 =172.16.20.0 /24
VLAN 30 = 192.168.77.0 /24
VLAN 99 = 192.168.99.252 /30Router IP: 192.168.99.254 /30
Switch VLAN interface IPs (set these under: "Routing" --> "VLAN" --> "VLAN Routing").
Routing VLAN 99 IP: 192.168.99.253 /30
VLAN 10 IP: 192.168.0.250 /24
VLAN 20 IP: 172.16.20.250 /24
VLAN 30 IP: 192.168.77.250 /24- Go to the routing table of the switch ("Routing" --> "Routing Table") and set the default gateway for the switch to: 192.168.99.254
- Turn on "Routing Mode" on the switch, under "Routing" --> "IP".
- Devices in VLAN 10 must have and IP of 192.168.0.x, with a default gateway address of: 192.168.0.250
- Devices in VLAN 20 must have and IP of 172.16.20.x, with a default gateway address of: 172.16.20.250
- Devices in VLAN 30 must have and IP of 192.168.77.x, with a default gateway address of: 192.168.77.250
- On the switch port that connects to the router, you want to untag that port for VLAN 99 and set a PVID of 99.
- On the switch ports that connects to VLAN 10 common non VLAN-aware devices, you want to untag those ports for VLAN 10 and set PVID of 10.
- On the switch ports that connects to VLAN 20 common non VLAN-aware devices, you want to untag those ports for VLAN 20 and set PVID of 20.
- On the switch ports that connects to VLAN 30 common non VLAN-aware devices, you want to untag those ports for VLAN 30 and set PVID of 30.On the router you need to set static routes back to the subnets that the router is not aware of: 192.168.0.0 /24 and 172.16.20.0 /24 and 192.168.77.0 /24
So, three static routes in total on the router. They should look like this.
Destination network: 1192.168.0.0
Subnet mask: 255.255.255.0
Gateway/Router/Next Hop: 192.168.99.253Destination network: 172.16.20.0
Subnet mask: 255.255.255.0
Gateway/Router/Next Hop: 192.168.99.253Destination network: 192.168.77.0
Subnet mask: 255.255.255.0
Gateway/Router/Next Hop: 192.168.99.253
Hope that makes sense. Else let me know :)
Cheers
mrmabmn
Aug 19, 2017Aspirant
Quick question,
If my internet router has the IP address of 192.168.1.1, can I make VLAN99 192.168.1.251?
Hopchen
Aug 19, 2017Prodigy
Hi again,
Yes, you can make VLAN 99 whatever IP scheme you want. Just make sure that the router's IP is in the same subnet as the VLAN 99 interface on the switch. And if you change the VLAN 99 IP scheme from what I suggested, then you need to make adjustments in the static routes, etc.
Also, note that you currently use 192.168.1.x for VLAN 1 on the switch. The switch won't allow you to use the same subnet for two different VLAN interfaces, so you would need to change the VLAN 1 IP scheme to something else before you can assign 192.168.1.x to VLAN 99.
BTW, the reason I introduce VLAN 99 in the first place is because I believe that these smart switches won't allow VLAN 1 to be part of routing. Probably because it is considered a management VLAN not to be routed amongst other VLANs.
- mrmabmnAug 21, 2017Aspirant
Hello Hopchen,
I truly appreciate all of the help.
I think I have all of the settings correct except the Routing Table, because I cannot get to the other vLANs.
Here is my layout
VLAN 1 IP is the default of 192.168.0.234
VLAN 99 IP = 192.168.1.250 for Internet access, my Netgear wireless router IP is 192.168.1.1, sn=255.255.255.0 I also have other hosts on this same subnet for example @192.168.1.15, sn=255.255.255.0, gw=192.168.1.1. Ports used are 2, 3, and 4
VLAN 20 IP = 172.16.20.250 sn = 255.255.255.0 with 1 host @ 172.16.20.96, sn =255.255.255.0, gw=172.16.20.250, Ports used are 5, 6, and 7
VLAN 30 IP = 192.168.77.250 sn= 255.255.255.0 with 1 host @ 192.168.77.134, sn =255.255.255.0, gw=192.168.77.250, Port used is 8
I have configured the static routes on my netgear wireless router. I have attached two screen shots and 1 diagram, one from the GS510TLP and one from my Nighthawk X6 R8000 wireless router. The VLANs are not communicating and even the hosts on the same VLAN as the internet router cannot see the internet.
Route 1 Destination network: 172.16.20.0 sn:255.255.255.0 gw: 192.168.1.1
Route 2 Destination network:192.168.77.0 sn:255.255.255.0 gw: 192.168.1.1
When I go into the routing table setting on the GS510TLP switch, I do not see how to see where I set the default gateway, I have submitted a screenshot of what I have configured.
Any suggestion on why it is not working?
- HopchenAug 21, 2017Prodigy
Hey,
You are almost there! Just a few amendments you need to make. See my comments below.
"VLAN 99 IP = 192.168.1.250 for Internet access, my Netgear wireless router IP is 192.168.1.1, sn=255.255.255.0 I also have other hosts on this same subnet for example @192.168.1.15, sn=255.255.255.0, gw=192.168.1.1. Ports used are 2, 3, and 4"Those devices on port 2, 3 and 4 - I would suggest that you use 192.168.1.250 as the default gateway. Reason being that it makes it more efficient for the inter-VLAN routing rather than those devices sending packets to the router - only to be send back to the switch :) Make sure that ports 2, 3 and 4 are untagged (with a "U") for VLAN 99 and have the PVID set to 99.
"VLAN 20 IP = 172.16.20.250 sn = 255.255.255.0 with 1 host @ 172.16.20.96, sn =255.255.255.0, gw=172.16.20.250, Ports used are 5, 6, and 7"All good! Just make sure that ports 5 6 and 7 are untagged (with a "U") for VLAN 20 and have the PVID set to 20.
"VLAN 30 IP = 192.168.77.250 sn= 255.255.255.0 with 1 host @ 192.168.77.134, sn =255.255.255.0, gw=192.168.77.250, Port used is 8"All good here as well. Again, just make sure that port 8 is untagged (with a "U") for VLAN 30 and have the PVID set to 30.
"When I go into the routing table setting on the GS510TLP switch, I do not see how to see where I set the default gateway, I have submitted a screenshot of what I have configured."You have done it correctly :) The default route for the switch is indeed set under "Routing" --> "Routing Table" (like you did) and the screenshot you showed also has the correct "Next Hop Address" (192.168.1.1 - the Nighthawk router). Spot on!
As for the two static routes created on the Nighthawk router, they are not entirely correct. The gateway on those static routes should be different. So, like this:Route 1
Destination network: 172.16.20.0
sn: 255.255.255.0
gw: 192.168.1.250 (the VLAN 99 IP of the switch)Route 2
Destination network: 192.168.77.0
sn: 255.255.255.0
gw: 192.168.1.250 (the VLAN 99 IP of the switch)
Lastly, remember to enable Routing Mode on the switch, under the section "Routing" --> "IP".Let me know if you need any assistance. Cheers.
- mrmabmnAug 21, 2017Aspirant
Hello Hoschen,
Almost there :) with the one exception, I still cannot access the internet, even the system on the same VLAN99 with an IP of 192.168.1.15.
I just have a standard RJ-45 cable coming from the 24 port Netgear switch going into Port #2 of the GS510TLP. The Netgear switch is connected to the Wireless Router which provides internet access.
Related Content
NETGEAR Academy

Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!