VLAN creation

tisec Posted messages 19 Status Member -  
 tisec -
Hello,

I am planning to create VLANs on a switch to which several PCs and a printer will be connected.

The idea is to create a VLAN that includes one PC and one printer.

For example:
VLAN 1: PC1 and PRINTER 1 from room 1 connected to ports 1 and 2 of the switch
VLAN 2: PC2 and PRINTER 2 from room 2 connected to ports 3 and 4 of the switch

Knowing that the internet box is also connected to the switch, on port 5

Despite the configured VLANs, can port 5 be opened to ports 1 and 3 (PC 1 and PC 2) in order to use the internet?

Thank you

4 answers

brupala Posted messages 111109 Registration date   Status Member Last intervention   14 434
 
Hello,
different VLANs mean different IP networks.
Does your box know how to manage 2 different IP networks on its LAN?
I doubt it.

--
and ... Here you go!
0
Tisec
 
Hello,

Is that not possible then? It's just a classic configuration, isn't it, that a PC connected to a printer can also benefit from an internet connection?

Everything falls apart with VLANs as soon as an internet box is connected?
0
brupala Posted messages 111109 Registration date   Status Member Last intervention   14 434
 
No,
there are plenty of routers that allow multiple LAN networks, but it's rare with ISP boxes.
Then,
if you want to put multiple VLANs on a port (like the test PC case), they need to be tagged, at least one in native (untagged).
This implies having a driver on the PCs that manages VLANs, so multiple network interfaces on the same card. This exists, but generally in servers or ... under Linux.
0
tisec
 
Hello,

thank you for the responses. OK, so I need to get a router that allows for multiple IP addresses to be distributed via the LAN ports.

The idea would be to connect a switch to the router.

So it would be the switch that distributes these different addresses, and since the Wi-Fi antennas are connected via a cable, it is imperative that the switch distributes both IP addresses on one port. Then as many ports as there are antennas, of course. Is that right?

This is for the antenna network. For the different PCs also connected to the switch, the idea would be to configure a port group corresponding to the Private VLAN only. Even if it means using another port on the router configured only on the private network VLAN. Thus, the PCs will be connected to the private network in the same way as the private Wi-Fi network. Since the IP addresses will be identical.
In the end, the PCs will not need a driver that manages the VLANs, since only one PC address will be connected to the PCs.

Let me know if I’m missing something?

Thank you.
0
brupala Posted messages 111109 Registration date   Status Member Last intervention   14 434
 
Whoa,
the way you're talking about it, router distributing addresses, it scares me for the future.
A router connects several IP networks, that’s all.
For that, it has an address in each IP network it connects, and the clients have many others that it doesn’t know yet.
Wi-Fi has nothing to do with it.
So yes,
you’re missing a lot of things as a result.
In the end, PCs won't need a driver to manage VLANs, since only one PC address will be connected to the PCs
that’s the basics, but you want the PC to be connected to several VLANs, so how do we do that?
0
tisec
 
To clarify, the internet box is connected to the router. We agree that the router can assign multiple IP addresses to its ports, right? For example:

-PORT 1 192.168.1.X
-PORT 2: 192.168.2.X

?

Regarding the Wi-Fi, I'm not talking about the router's Wi-Fi, but the Wi-Fi broadcasted by the antennas once connected to the router via an Ethernet cable.

But you want the PC to be connected to several VLANs, so how do we do that?

There are several VLANs, but each PC is connected to only one VLAN at a time.
0