I need some advice on how to set up 2 VLAN(on one switch, I have HP v1910-48G switch) that seperate broadcast domain and also share a single internet connection. Whilst remaining seperate so that the two networks cannot communicate with each other.
I do some searching and then found this example.
Here is an example. I have one router, a switch, and 20 computers. I connect a cable to the router to the switch (backbone) on port 1. I then connect my computers on the switch from port 2-21.
Now i create the diffrent vlans, i create one that is named guestnet and one called companynet. I then **tag** the backbone (port 1) with both guestnet and companynet (if you dont want access to the internet on one of those vlans you dont tag any ports with that vlan, then its just LAN only.)
Now i can **untag** the ports that the computers will connect to. I tag port 2-11 with guestnet and 12-21 with companynet. Theese vlans cannot communicate between them, which is great for seperating guests from the company files and servers.
Hope this helped!
And this is what I do :
I have a HP-1910 48 ports layer 3 switch.
I connect a cable to the router to the switch (backbone) on port 1.
I created another vlan 10 and then **tag** the backbone (port 1) and assigned ports 5,6,7 and 8 as **untagged** port of vlan 10.
I created another vlan 20 and then **tag** the backbone (port 1) and assigned ports 9,10,11 and 12 as **untagged** port of vlan 20,
Assigned the vlan interface ip 10.0.0.1/24 and 20.0.0.1/24.
I connected 2 computers to port 6 and port 7(vlan 10), no problem pinging to each other pc in same vlan,
Then I connected computer to port 9(vlan 20) and test pinging to pc in vlan 1. It can't ping (with it fine, It that what I want).
Here my problems :
But, I cannot ping 10.0.0.1 from vlan1 and 20.0.0.1 forn vlan2, 192.168.0.254(my router), 192.1680.241(my switch) and Internet.
But if I connect the computer to vlan1 (1,2,3,4), I can access Internet. Please advise
Thank.