V
V
Valeriu1472017-12-24 01:43:46
Computer networks
Valeriu147, 2017-12-24 01:43:46

How to use interface alias with real ip for virtual machine in KVM?

Network `192.168.110.0/24` is not real. I wrote purely as an example.
I have interface `enp1s0` with main IP` 192.168.110.180`. Configuration part:

auto enp1s0
     iface enp1s0 inet static
             адрес 192.168.110.180
             netmask 255.255.255.0
             шлюз 192.168.110.220


Everything is fine. I created an alias, with an additional ip that the provider gave me

auto enp1s0: 1
     iface enp1s0: 1 inet static
             адрес 192.168.110.1
             netmask 255.255.255.0


It is working. I can ping `192.168.110.1` from the internet. Everything is good. But I want to use this IP address in my VM in KVM. When I worked with VLANS, I just created bridges, but with aliases, I don't know what I should do. Can you help me ? How to create an alias bridge on a virtual machine?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
B
Boris Syomov, 2017-12-24
@kotomyava

Bridges are created not for addresses but for devices.
To which you then assign ip addresses, possibly more than one.
Those. if you have already created a bridge, then set the alias the same way as on the host computer - no additional configuration is required.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question