D
D
Dark_Sad2012-10-07 09:25:22
linux
Dark_Sad, 2012-10-07 09:25:22

How to set up a network on Debian+DHCP using qemu-KVM?

Initial data:
Debian server, eth0(internet with white IP), eth1(switch with LAN), wlan0(in hotspot mode).

What I want to configure:
DHCP + NAT for the local network is configured on the host system (eth1 + wlan0 bridge), nginx, apache, mysql, postgresql, etc. are installed on the guest machines.

Question:
How to configure the server interfaces so that guest machines receive addresses from the host system and are visible as local machines for the entire local network? And it was possible for web servers (and possibly other machines) to forward a port to an external IP.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Andrey Burov, 2012-10-07
@BuriK666

tunctl -u yourusername
in the VM, specify the tap0 device for the network (I don’t know what VM you have, I would have known - I’d say exactly what and how)
then consider that the tap0 device is a direct wire to your virtual machine.

A
Andrey Burov, 2012-10-07
@BuriK666

-net tap,ifname=tap0

A
alz, 2012-10-07
@alz

Make a bridge from eth1 and all interfaces from virtual machines

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question