G
G
grabbee2016-11-30 11:40:59
Computer networks
grabbee, 2016-11-30 11:40:59

How to raise two network devices on one virtual machine?

I don't know how to put it right. Is it possible to connect to a virtual server using an external IP and a local one? For example, I configured br0 bridge and external IP like this:

auto  ens3
iface ens3 inet static

        address 190.155.44.10
        netmask 255.255.255.255
        broadcast 190.155.44.10

        post-up route add 111.222.444.1 dev ens3
        post-up route add default gw 111.222.444.1
        post-down route del 111.222.444.1 dev ens3
        post-down route del default gw 111.222.444.1

On the host
auto enp1s0f0
iface enp1s0f0 inet manual

auto br0
iface br0 inet dhcp
        bridge_ports enp1s0f0
        bridge_stp off
        bridge_fd 0
        bridge_maxwait 0

But you can additionally configure default NAT with an address like 192.168.122.5 - how to do it? What to write on the host and on the guest?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question