Score:0

Do routers need to have assigne IP from given VLAN to foward VLAN packages?

cn flag

(sorry for my basic question but I had noone to ask)

Does routers/smart-switches that foward/pass vlan packets inside same network need to have assign IP from that given VLAN that they foward packets (thru TRUNK port) or they only need one IPfrom management VLAN so administrator can access them from that single VLAN ?

us flag
Please clarify what you mean by `VLAN packages`? Do you mean ethernet frames that have 802.1Q VLAN header in them? Or do you mean IP packets that are sent in a VLAN?
Va_ni_tas avatar
cn flag
@TeroKilkanen both ? Each interface has some untagged VIDs. One port is a trunk port with all VLans passing thru. With a netmask of /24 while using around 50 switches/routers inside that network you would lose around 50 IP's from each VLAN network. Thats why I asked.
Score:2
bd flag

Routers need an IP address in every connected network they have to route from/to.

Switches, whether smart or not, only need an IP address for management, none in the networks they forward packets from/to.

Zac67 avatar
ru flag
"Router" can also be a layer-3 switch used for routing.
Va_ni_tas avatar
cn flag
Oh you could be right, its because layer-3 vs layer-4. So its would be IP-spaces-wise to use switches instead of routers when playing with a big number of devices in as small /24 netmask. Thats make a lot of sense now
Score:0
ru flag

"Assigned IP" could mean a few different things.

When I use the term, I only use that for when a system always has a fixed, known IP address.

However, the DHCP protocol (which decades ago I helped develop), is there to "assign" IP addresses for all nodes that don't have one already appointed to them.

Surely EVERY node needs an IP address, and they get that address the one way or the other. As soon as they have such an address, and presuming it's known to the routing systems / software (VPN, "VLAN" or otherwise), then it can communicate anything it wants. What happens from there depends on a lot of other factors such as open ports and so forth...

Tilman Schmidt avatar
bd flag
"Surely EVERY node needs an IP address" - but a layer-2 switch is not a node in that sense. Only its management engine is, in the case of a managed switch.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.