I need some advice on how to set up 2 VLANs (on one switch, I have HP v1910-48G switch) that separate broadcast domain and also share a single internet connection. The two Vlans must remain separate, and cannot communicate with each other.
I did some searching and then found this example
And this is what I tried (Editted):
- I have a HP-1910 48 ports layer 3 switch.
- I connected a cable to the router (Linksys X1000, at 192.168.0.253) to the switch (backbone) on port 1. (vlan1, default)
- I created another vlan 2 and then tag the backbone (port 1) and assigned ports 17-32 as untagged port of vlan 2.
- I created another vlan 3 and then tag the backbone (port 1) and assigned ports 33-48 as untagged port of vlan 3,
- Assigned the vlan interface ip 192.168.0.241(vlan1), 192.168.1.241/24(vlan2) and 192.168.2.241 (vlan3).
- I connected 2 computers to port 17 and port 18(vlan 2) set gw of pc to 192.168.1.241. I have no problem pinging PCs in same vlan. I can also ping 192.168.1.241 (vlan2's interface). I can ping the router (192.168.0.253).
- Then I connected a computer to port 35 (vlan 3) and set the default GW of the PC to 192.168.2.241. I tested the PC in Vlan1. It can't ping (which is fine, that's what I want), also no problem pinging 192.168.2.241 (vlan3's interface).
- I cannot access to the Internet from vlan2 and vlan3.
- If I connect the computer to vlan1 (1,2,3,4), I can access Internet.
How can I solve these problems?
HP v1910 IPv4 routing
HP v1910 Vlans
Linksys X1000 Routing table