P
P
pithhabr2022-03-22 11:36:08
Computer networks
pithhabr, 2022-03-22 11:36:08

Is it possible to make a switch and a router in a virtualization environment?

Hello, I would like to ask if it is possible to make a virtual switch and router to build a network using virtualbox, vmware or qemu?
There is a certain scheme in the cisco packet tracer (I did not configure it, because I just need to show the essence) and it would be necessary to implement it in a virtual environment, but I don’t really understand how to implement a switch and a router for this. Here is the diagram:
62398a2040544960387950.png
The switches work to separate the vlan, and the router to communicate with the server.
I would be grateful if you leave literature, articles and videos. Thank you.

Answer the question

In order to leave comments, you need to log in

7 answer(s)
P
pfg21, 2022-03-22
@pfg21

run linux in a separate virtual machine and configure it to work as a switch or router.
or whatever.

K
Kenny00, 2022-03-22
@Kenny00

Hypervisors have their own "switches" and the ability to create private networks.
The gateway can be done softovy most already. (multiple interfaces)
Vbox network setup
Original Network Vbox documentation (may not be available in your region)
vmware - Mware-Workstation-Player if it's a player.

A
AntHTML, 2022-03-22
@anthtml

Most "adult" network emulators, such as ensp, gns3 and the like, work on top of virtualization systems. PacketTracer runs on its own emulation, so it's a bit poor.
If in a bare plan, then in most virtualization systems there are virtual switches to which adapters of virtual and host machines can be connected, some of them are able to assign VLAN trunks.
There are distributions of virtual routers for x64-x86 platforms, the same Mikrotik. Fortigate and others.
Virtual L2, ala 2960, can be made from a virtual router by simply sketching the required number of ports

R
res2001, 2022-03-22
@res2001

Can. In one form or another, there is a virtual router there (I will not say only for qemu), because. virtual machines need to emulate the network. Naturally, this is not an analogue of some cisco, just settings for subnets, VLANs, something else. See native product documentation.

D
Drno, 2022-03-22
@Drno

Yes. there is a switch by default
You can raise the router on a separate virtual machine and throw all virtual machines into a common network, after creating an "internal network" and adding virtual machines there

T
TheBigBear, 2022-03-22
@TheBigBear

there are virtual switches in any virtual environment - create as many as you need and combine
Router - full of virtual machines (mikrotik CHR, OpenWRT) - add several network cards, run and set up
And even better - GNS3 - also allows you to visualize the network

A
Anton, 2022-03-26
@CCR1036-12G-4S

Try eve-ng

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question