A
A
alexrett2016-06-07 14:02:55
linux
alexrett, 2016-06-07 14:02:55

How to forward real ip addresses on guest machines on KVM?

Perhaps for experienced admins my question will seem simple and obvious, but this is the first time I have encountered a similar task and sat in a puddle, therefore I ask for the community's help.

Given :
Server with centos 5
10 ip ranges configured as
ifcfg-eth0-rangeN

IPADDR_START=1.1.1.0
IPADDR_END=1.1.1.150
CLONENUM_START=0
ARPCHECK=yes
NETMASK=255.255.255.0
ONBOOT=yes

Installed KVM and network not configured yet.

Task :
Organize the network setup so that real addresses from the host system are forwarded to the guest VMs.
But not 1 IP per system, but N pieces. those. for one guest system, several ranges can be bound in a total number of up to 300 ip addresses.

---
I honestly looked through and read a bunch of forum threads and documentation. From what I understood, it is still necessary to configure the bridge and adjust the interface config both on the host and on the guest. But all the examples talked about 1 address, but alas, I need a lot. In total, it is planned to deploy no more than 3-4 virtual machines on the server.

Lord admins, please help.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
devian3000, 2016-06-07
@alexrett

In the same way, through the bridge.
Then just set up ip addresses on virtual machines.

D
Dmitry Aitkulov, 2016-08-15
@Scarfase1989

and that it is possible somehow not through the bridge to configure the grid in the guest OS?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question