OVH Community, your new community space.

how to configure the network for virtual machine


crowarth
16-09-2014, 20:58
Quote Originally Posted by alex
you need follow the following guide:

http://help.ovh.co.uk/BridgeClient

i used the following for ubuntu - it's a cut and paste of what i have in config now (and it's pretty much the same as the guide alex linked)

Code:
weezel@weezel:/etc/network$ cat interfaces

# This file describes the network interfaces available on your system

# and how to activate them. For more information, see interfaces(5).



# The loopback network interface

auto lo

iface lo inet loopback



# The primary network interface

auto eth0

iface eth0 inet static

        address 178.32.62.118 (FAILOVER IP)

        netmask 255.255.255.255 (subnet mask to use)

        network 178.32.62.118 (FAILOVER IP)

        broadcast 178.32.62.118 (FAILOVER IP)

        post-up route add xx.xx.xx.254 dev eth0 (hypervisor gateway IP (the gateway your physical server would be using))

        post-up route add default gw xx.xx.xx.254 (hypervisor gateway IP (the gateway your physical server would be using))

        post-down route del xx.xx.xx.254 dev eth0 (hypervisor gateway IP (the gateway your physical server would be using))

        post-down route del default gw xx.xx.xx.254 (hypervisor gateway IP (the gateway your physical server would be using))





        # dns-* options are implemented by the resolvconf package, if installed

        dns-nameservers 213.186.33.99

alex
16-09-2014, 17:47
you need follow the following guide:

http://help.ovh.co.uk/BridgeClient

hm91408
16-09-2014, 17:40
Hey brothers ,i really need your help .
I buy one server from OVH ,and divide into 4 virtual machine ,and also buy 4 addtional ip for every virtual machine ,now i don't know to set my network ,as the virtual machine can't access the internet ,i tried around 1 week.
Eg IP,Gateway ,sub-netmask and DNS,pls i need help ,thanks so much in advance.