Assign IP address to each switch

This thread has been locked for further replies. You can start a new thread to share your ideas or ask questions.

Assign IP address to each switch

This thread has been locked for further replies. You can start a new thread to share your ideas or ask questions.
Assign IP address to each switch
Assign IP address to each switch
2017-11-02 21:54:52
Model :

Hardware Version :

Firmware Version :

ISP :

Hello,

I have a bunch of TL-SG2210P & TL-SG2424 (T1600G-28TS 2.0) and I would like to administer them from my desk without having to physically plug on each.

I created a VLAN dedicated to administration and configured this VLAN (to spread) on every switches

From one switch, I assigned 192.168.33.2 IP address to the VLAN:




The problem is when accessing 192.168.33.2, I get on the "nearest" switch but not the one I set the IP on.

I guess it was not the solution to assign the IP address to the VLAN: How to correctly assign an IP address each switch?
  0      
  0      
#1
Options
9 Reply
Re:Assign IP address to each switch
2017-11-05 18:07:18

rakotomandimby wrote

I have a bunch of TL-SG2210P & TL-SG2424 (T1600G-28TS 2.0) and I would like to administer them from my desk without having to physically plug on each.


Assign each switch a different IP in the System (Default) VLAN. For example, my five switches have IPs 192.168.1.250, .251, .252. .253 and .254. I have no idea why you think that you would have to physically connect to the switch to reach its web UI. Of course the web UI can be accessed from any device which is also connected to the subnet the switch is in.

If you use a management VLAN different from the System VLAN, make sure to set the management VLAN on the switches requiring it. As for the T1600G you set the management IP(s) in menu "Routing" (where you did create the IPs for VLANs). Just enable or disable Admin status according to your needs.

See also http://www.tp-link.com/no/faq-956.html
༺ 0100 1101 0010 10ཏ1 0010 0110 1010 1110 ༻
  0  
  0  
#2
Options
Re:Assign IP address to each switch
2017-11-07 13:46:07
Thank you for your answer, but that doesnt work.
I dont use 192.168.0.0/24 anywhere on my network, and I cant figoure out how to route the traffic for 1 IP address to get to one switch
  0  
  0  
#3
Options
Re:Assign IP address to each switch
2017-11-08 00:15:59
Sure it does work. I do this all the day. A switch is not a router and you can use any IP to go to the switch independent of your network addressing scheme.

But I wonder why you don't just assign free static IPs from your network to the switches? What exactly is the problem in doing so?
༺ 0100 1101 0010 10ཏ1 0010 0110 1010 1110 ༻
  0  
  0  
#4
Options
Re:Assign IP address to each switch
2017-11-08 18:27:44
In recent switches, you wont assign an IP address to the switch but to the VLAN.
But the VLAN is spread across 6 switch here.
If I assign the IP address to the VLAN, the whole VLAN, spread across the whole 6 switch has this IP address
And I dont get in the right switch! (couldnt find on which one I get yet)
  0  
  0  
#5
Options
Re:Assign IP address to each switch
2017-11-08 20:33:15
I still don't get your problem.

In recent switches you assign an IP to the switch's interface of a VLAN. So, if you use VLAN 6 you assign the first switch's IP to the first interface on the first switch, the second switch's IP to the second interface on the second switch and so on.

For example, I use 192.168.1.250 for the first switch on VLAN 1, which is spread to all other switches. The second switch has 192.168.1.251 on its own interface for VLAN 1, the third switch has 192.168.1.252 on its interface for VLAN 1 and so on. I can easily address each switch from any member of VLAN 1.

Maybe, confusion did arise because you think that the VLAN has an IP. A VLAN never has an IP. It's the switch - more precisely: the switch's interface - which has an IP. You need this IP only for routing into a VLAN (if you use Inter-VLAN routing at all) or for accessing a particular switch over this VLAN.

Just imagine that the VLAN is a separate subnet, then it should become very clear that two interfaces on the same subnet never can share the same IP.
༺ 0100 1101 0010 10ཏ1 0010 0110 1010 1110 ༻
  0  
  0  
#6
Options
Re:Assign IP address to each switch
2017-11-14 19:57:18
Let me explain more, I hope it will be clearer.

Step 1:

Initial configuration is this way:



I have 2 switches:
8 port manageable
24 ports manageable

Factory settings are 192.168.0.1 / admin / admin

I created Vlan 33, tagged, on one port of each switch.

Step 2:
I I plug on the 8 ports get into it via 192.168.0.1 and setup an IP to Vlan 33, as this is the recommended way according to http://www.tp-link.com/no/faq-956.html




Step3:

I want to do the same on the 24 port. I plug on the 24 ports, get into it respectively via 192.168.33.5 and 192.168.0.1: I notice the setting Vlan33 has propagated and Vlan33 has already the IP address I assigned through the 8port!




Among that, when I access 192.168.33.5 when plugin either on the 8 ports or the 24 ports: I always get on the 24 ports! (I can see the 24 ports in the web interface)

So the question is: How to assign IP address to the switch, not to the Vlan?
  0  
  0  
#7
Options
Re:Assign IP address to each switch
2017-11-15 00:49:55
Again: you are not assigning IPs to a VLAN. You cannot assign IPs to a VLAN, that's impossible.

You assign IPs to an interface into a VLAN. A switch's interface is not the VLAN, it's an interface, albeit this interface can be a "door" into a VLAN.

The solution is simply to assign different IPs (192.168.0.1, 192.168.0.2, 192.168.0.3 etc.) to different switch interfaces to be able to reach them.
Of course, if you assign the same IP to different switch interfaces, this cannot work. How should a switch know which one you want to reach?

See your picture in post #1: it's a list of interfaces, it is not a list of VLANs. The VLAN ID, Mode, IP and so on belong to the interface. Maybe it helps if you give those interfaces a distinct name such as "switch1", "switch2", "switch3" etc. on the different switches to realize the difference.

Also, 192,168,0,1 isn't a valid IP: change commas into dots to make it an IP.
༺ 0100 1101 0010 10ཏ1 0010 0110 1010 1110 ༻
  0  
  0  
#8
Options
Re:Assign IP address to each switch
2017-11-20 17:18:27
I am sorry but you definitely may assign an IP to a VLAN.
This is something very often in complex environments.
For example, on the Cisco world, you can do like this: http://www.bhcblog.com/howto-create-vlans-on-a-cisco-switch/ (see step 2)
Especially in our case, the TP Link Official FAQ clearly states the assignment is to the Vlan ( http://www.tp-link.com/no/faq-956.html), so you are free to strongly argue this is not assigned to the Vlan but I do assert this is Vlan assignation

Anyway, you tried to help me as far as you can and I really thank you for that.
  0  
  0  
#9
Options
Re:Assign IP address to each switch
2017-11-21 04:27:53

rakotomandimby wrote

I am sorry but you definitely may assign an IP to a VLAN.
This is something very often in complex environments.
For example, on the Cisco world, you can do like this: http://www.bhcblog.com/howto-create-vlans-on-a-cisco-switch/ (see step 2)


No, it does not assign an IP to the VLAN, but it (quote) "assigns IPs to the gateway for this VLAN" (end quote). A gateway is an interface, which needs to have a unique IP to be useful. The VLAN doesn't have nor does it need an IP. Of course, assigning an IP to a gateway of a given VLAN will assign (quote from the blog post you linked) "an address range to a VLAN" (end quote), which is the same as "assigning an IP range to a subnet". A VLAN is a (virtual) subnet and a subnet can have an IP range, but never a single IP address. If you still disagree, I wish you much fun in implementing TCP/IP for a subnet with only one IP address.

You can also see the 192.168.0.0/24 as the IP range for your VLAN, sure. But you cannot assign the IP 192.168.0.0 to a switch's interface (gateway) and you cannot assign an IP such as 192.168.0.1 to more than one device in the same subnet, except if you want such "very complex" setups, where you have to physically connect to a switch to play kind of a roulette in logically connecting to "the right switch" for managing it.

Especially in our case, the TP Link Official FAQ clearly states the assignment is to the Vlan ( http://www.tp-link.com/no/faq-956.html), so you are free to strongly argue this is not assigned to the Vlan but I do assert this is Vlan assignation


Definitely no.

Quote from the TP-Link FAQ: "If you want to change the default management IP address, you will have to go to “Routing”-” Interface ”,click on “Edit” for VLAN 1,and change the IP address and Subnet Mask." [of the interface]. In this menu you are assigning an IP to an interface and you are assigning an interface to a VLAN, that's why the menu reads " Interface list", not " VLAN list" and this interface is a property of the switch's routing policy. But the interface is local to the switch, while the VLAN can span more switches. The interface must have a single IP, the VLAN is used to carry traffic to all interfaces falling into a certain IP range.

If you don't believe me that a VLAN cannot have an IP assigned to it, maybe you believe other senior network admins (see the answers):

https://serverfault.com/questions/118449/why-does-a-vlan-have-an-ip-address

https://supportforums.cisco.com/t5/lan-switching-and-routing/does-native-vlan-need-ip-address/td-p/1886227


We can discuss this endlessly as long as you refuse to get the terminology right, therefore sorry, but I'm out of this discussion.
༺ 0100 1101 0010 10ཏ1 0010 0110 1010 1110 ༻
  0  
  0  
#10
Options