Ti spiegherò come configurare il mirroring delle porte Hyper-V
Port mirroring è una funzionalità che rispecchia il traffico di rete dalla porta di un host sorgente a un host secondario per l'analisi. Può essere utilizzato per monitorare, risolvere i problemi e analizzare la comunicazione e la connessione di rete. In questo post, impareremo come configurare il port mirroring per Hyper-V, che è un hypervisor nativo di Windows.Come configurare il mirroring delle porte Hyper-V
Port mirroring è una funzionalità che rispecchia il traffico di rete dalla porta di un host sorgente a un host secondario per l'analisi. Può essere utilizzato per monitorare, risolvere i problemi e analizzare la comunicazione e la connessione di rete. In questo post, impareremo come configurare il port mirroring per Hyper-V, che è un hypervisor nativo di Windows.
Configurare il mirroring delle porte Hyper-V sui computer Windows
Per quanto riguarda il port mirroring, dove è possibile effettuare il mirroring del traffico dall'host sorgente a un secondo host di destinazione, dove c'è un host sorgente o sorgente monitorato e la sua porta mirrorata e la porta di destinazione sono le porte osservate. La tecnica è stata implementata anche con il nome SPAN (Switched Port Analyzer).
In Hyper-V, possiamo usare il port mirroring per analizzare il traffico di rete delle macchine tramite switch virtuali, che le macchine virtuali Hyper-V usano essenzialmente per comunicare con la rete esterna o internamente con altre macchine. Per questo, devi definire una macchina virtuale di destinazione e installare un software di cattura del traffico come Wireshark o usare altri sistemi di rilevamento delle intrusioni (IDS).
Il port mirroring in Hyper-V funziona in modo simile al port mirroring hardware, ma opera a livello di switch virtuale, utilizzando estensioni switch e liste di controllo di accesso alle porte (ACL) per impostare regole per l'inoltro e lo sniffing del traffico. Tuttavia, nel caso di Hyper-V, il port forwarding funziona solo all'interno di un singolo host. Se le macchine si trovano su host diversi, ad esempio nel caso di un cluster di failover o dopo la migrazione, la funzionalità non funzionerà.
Per configurare il mirroring delle porte Hyper-V, è necessario seguire i passaggi indicati di seguito.
- Crea uno switch virtuale
- Configurare la macchina virtuale di origine
- Configurare la macchina virtuale di destinazione
Parliamone in dettaglio.
1] Crea uno switch virtuale
Ciò che faremo ora è configurare uno switch virtuale che verrà utilizzato per trasmettere la comunicazione tra tutte le tue macchine virtuali. Per prima cosa, segui i passaggi e i punti sottostanti:
- Apriamo la gestione Hyper-V, facciamo clic con il tasto destro del mouse sulla macchina host e selezioniamo Gestione Virtual Switch
- Fare clic su Crea switch virtuale
- Assegna un nome allo switch; noi abbiamo usato 'Switch_1'; seleziona l'opzione esterna e clicca su Applica > OK.
In this way, we will create a virtual switch that we will use in this tutorial. If you already have a switch configured, you don't have to create a new one.
We need to make some additional settings on the switch. To do so, follow the steps mentioned below.
- Open the Control Panel.
- Go to Network and Internet > Network and Sharing Center.
- Click on Change adapter settings.
- Right click on the virtual switch and then select Properties.
- Go to the Sharing tab and uncheck Allow other network users to connect through the computer's Internet connection.
- Choose a network device from the drop-down menu and click OK.
This setting was necessary to configure port mirroring.
2] Configuring the source virtual machine
Now, we are going to configure the source of the machine so that we can monitor its traffic, to do this follow the steps below.
- From the Hyper-V Manager we right-clicked on our source machine and entered Settings.
- Now you need to click on Network Adapter, click on the plus icon and then on Advanced Features.
- Then, go to the Port Mirroring section and select Source from the Mirroring Mode drop-down menu.
- Click OK.
If you want, you can configure multiple source virtual machines, the only thing you need to keep in mind is that you will need to use a single virtual switch and maintain uniformity. Once this is done, we will proceed to configure the destination machine.
3] Configure the Target VM
We will configure the target VM after the source VM was configured. Now you will create an additional network adapter on the target VM for more accurate network traffic analysis and disconnect all the network services from that adapter. Then you can make sure to perform a complete network traffic dump after shutting down the services and protocols that you don't need. Follow the steps mentioned below accordingly.
- Shut down the virtual machine if it is running.
- Now, right-click on the machine and select Settings.
- Go to Add Hardware, select Network Adapter and then click on the Add button.
- Now, you will need to select the virtual switch that we created earlier and configure it for the source machine. Since we created SwitchWe select it from the drop-down menu and click Apply > OK.
- Now, open the virtual machine settings again using the same method you used earlier.
- Go to the Network Adapter tab, click the Plus (+) icon, and then click Advanced Features.
- Now, navigate to the Port Mirroring section and select Destination from the Mirroring Mode drop-down menu to get the mirrored network traffic.
- Click Apply > OK.
Now, you can analyze the network traffic from the source machine on the destination virtual machine using tools like wireshark.org.
Scopri come risolvere il problema delle macchine virtuali Hyper-Vche scompaiono dopo un riavvio con la nostra guida passo-passo. Risolvi i problemi e ripristina le tue VM facilmente!
Ti consiglierò come migliorare e ottimizzare le prestazioni delle macchine virtuali Hyper-V
Ti consiglierò come ottenere la chiave BIOS ASUS per PC Windows
Ti guiderò su come creare un video con il sito Google AI Vids.new
Se non sai dove trovare il minerale di stagno nel Sengoku Dynasty, ecco una guida che ti aiuterà.
Nel nostro post di oggi vi mostriamo come ottenere un dente di mostro marino in Disney Dreamlight Valley.
Se non sai come raggiungere le profondità di Roblox Fisch, ecco una guida passo passo che ti aiuterà.
Ecco una guida completa che ti insegnerà come ottenere la Perla Nera in Roblox King Legacy.
Nel nostro articolo di oggi vi mostriamo dove utilizzare la nota scritta a mano in Roblox Fisch.
Ti stai chiedendo se dovresti uccidere lo Scià o Roosevelt in STALKER 2? Bene, qui ti lasciamo la risposta migliore.