Quantcast
Channel: Ubuntu Forums - Virtualisation
Viewing all articles
Browse latest Browse all 4211

[ubuntu] How to set static IP on VM

$
0
0
Hi

host ubuntu 14.04 desktop
vm ubuntu 16.04 desktop

bridge-utils already installed on both host and vm

vm
Network
Bridged Adapter
br0

On vm
ifconfig
Code:

...
enp0s3    Link encap:Ethernet  HWaddr 08:00:27:42:e8:1f
...

eth0 is NOT shown

Unable to connect Internet
NAT works without problem

Please advise how to fix the problem? Thanks

[Edit]
On vm

$ cat /etc/netwok/interfaces
Code:

# interfaces(5) file used by ifup(8) and ifdown(8)
auto lo
iface lo inet loopback

# The primary network interface
auto eth0
iface eth0 inet manual

# add bridge ports
auto br0
iface br0 inet static
        address        192.168.x.x
        dns-nameservers xxx.xxx.xxx.xxx xxx.xxx.xxx
        network        192.168.x.x
        netmask        255.255.255.0
        broadcast      192.168.x.255
        gateway        192.168.x.x
        bridge_ports    eth0
        bridge_fd      9
        bridge_hello    2
        bridge_maxage  12
        bridge_stop    off

Regards
satimis

Viewing all articles
Browse latest Browse all 4211

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>