can't set ip for my tag port in vlan hp switch 1820

pilanita

Commendable
Nov 24, 2016
5
0
1,510
I have a HP switch 24 port which I want to use to configure 4 VLANs.
For trial, I made 1 VLAN new ( except the default ) as VLANID 2, and tag port 3 for VLANID 2.
I setup static IP in VLANID 1 on port 1, and then I want to set IP for port 3 in VLANID 2 ( different segment from VLANID2 ), but changes the setting is takes more time, even I have to re-loggin because the switch 'read' me don't do anything ( actualy I wait for the setting display )

If anybody ever have the same trouble or have a way to solve this, please kindly let me know.. kekeke..

Thank You
 
Solution
You need only 1 ip on the switch, best on vlan 1 and that is only used to configure and mange the switch. You want to choose a ip that is outside the dhcp pools you define on your router.

The key here is the concept of layer 2 and layer 3 that networking guys talk about all the time. A switch only works with layer 2 ie mac addressees..and of course vlans since those are virutal switches. Anything related to ip addresses is done at layer 3. A router is layer 3. Pretend layer3 switches do not exist to avoid getting confused for now.

You will do all the setup and configuration of anything related to ip addresses in your router.
I would have to read the manual to be sure but just guessing by what it is doing I am going to bet you have a simple layer 2 switch.

The IP on these devices is only used to manage the switch and is generally kept in the default or vlan1. In general you can not assign IP to the other vlans. Some switch allow this but do not actually let you use the ip, others will only allow a ip on a single vlan but it can be on any.

Unless your switch is a layer3 switch there is no purpose to assigning ip to the vlan interfaces. The switch will not pass data between the vlans. The ip on the switch is only used for management of the switch. In general you will seldom use any ip on a layer 2 switch since its only purpose is mangement.
 
is layer 2 or 3 default from the switch or I have to configure it become layer 2 or 3 ?
My siwtch is HP 1820-8G, it have VLAN configuration. I already make the VLANIDs and tag ports which I want to use to carry the internet traffic. The problem come when I want to set IP for each port, when I want to change page from one VLANID to another VLANID, the process really take long time until the page loggout by it self....

Note : I have 3 VLANIDs ( except default VLAN from swtich ) each VLANID have same taged port, that same tagged port which I want to set IP.

So I can't do any further setting..
 
A layer3 switch actually performs most functions a router will (not meaning those stupid boxes called routers you buy in the consumer store). It is something you must buy when you buy the switch. They contain different hardware so it is not even a software upgrade.

The switch you have is a very basic layer 2 switch.

You will have to buy another device but is stupid to buy a layer 3 switch when you only have 8 ports. Best to get a consumer router load dd-wrt on it and connect this switch to it using the vlan tagging.
 
It makes little difference unless you are willing to spend 3-4 times what you paid for your current switch to replace it with 24 port layer 3 switch.

Now if you actually have a need to transfer traffic between the vlans at a high rate ...ie greater than 1g.. then you have little option but to buy a layer 3 switch. Otherwise you use a external router to provide the layer 3 capability.
 
A layer 3 switch has additional "brains" that can process LAN traffic based on IP address ranges, thus it can route traffic to certain ports according to VLAN IP assignments. A layer 2 switch doesn't have this intelligence and therefore all traffic is available to all ports (although a switch will remember IP addresses of devices connected to a port, unlike a "hub"). As written before, a layer 3 switch costs more for the added feature. It is the only way to segregate traffic according to VLANs on devices connected to it.
 
soo.. any other solution for my VLAN setting without buy a new switch which support 3 layer ?
My bad that I don't explain furher what I want to do. I want to make 4 SSID to wifi, each SSID will give different IP in different segment, I have one router linksys e1200 as my router, the SSIDs will receive intenet from same router ( linksys e1200 ). As access point I use UAP ( ubiquiti access point ), in UAP I manage to setup for SSIDs use VLAN too. And the last I have this swicth HP 1820 24G - gigabyte I guess. So I want to serve IP in different segment for whoever acces the access point, whicever SSIDs people use , people can receive internet and IP per SSIDs they access.

Please let me know what you think ... =D
 
You have to check very carefully but I am pretty sure your router support dd-wrt firmware. There are a number of different versions of the e1200.

A layer3 switch is what most people call a router but it is a very special high speed router that is missing a few features the key one being able to run NAT to the internet. So because you want to hook this to the internet you will need a actual router.

Now most routers do not support vlans or multiple segments. These routers tend to be a little more expensive since they are designed for more commercial customers.

Now if I am correct and you can load dd-wrt on your router you can accomplish what you want with your current router. You would define a connection to your switch and tag all the vlans over the port going to the switch. You would then define vlan interfaces in the linksys with different ip and dhcp scopes. There likely are a number of other steps because I assume you want some limitation between the users in the different vlans.

You are getting into a commercial installation with the feature you want and you will have to learn quite a bit. This is not a simple thing to configure properly there are lots of details.
 
I don't mind to learn quite a bit, because I'm really new and exited about this setup. Correct me if I'm wrong, so if I use dd-wrt I can set up IP for VLANs in router ? or I still have to set IP for VLANs in my switch ?
 
You need only 1 ip on the switch, best on vlan 1 and that is only used to configure and mange the switch. You want to choose a ip that is outside the dhcp pools you define on your router.

The key here is the concept of layer 2 and layer 3 that networking guys talk about all the time. A switch only works with layer 2 ie mac addressees..and of course vlans since those are virutal switches. Anything related to ip addresses is done at layer 3. A router is layer 3. Pretend layer3 switches do not exist to avoid getting confused for now.

You will do all the setup and configuration of anything related to ip addresses in your router.
 
Solution
You would need to look at the release of ddwrt but yes ideally you would set the DHCP scopes for the vlans on the router with the managed switch having an IP on either the native vlan (I wouldn't recommend) or a separate management vlan where all your hardware resides. (Google "router on a stick" for layout.