این آموزش آی پی دادن هست در شبکه او وی اچ
Redhat Like (Redhat, Centos...)
Important:
The gateway you need to use in your virtual machine should not be, The IP of your dedicated server or IP failover but you must use the gateway provides for your dedicated server. You must in no case use: route add default gw dev eth0 otherwise you may cut your IP for the virtual server. To determine the correct gateway to use:
IP failover is: YYY.YYY.YYY.YYY
Main IP of your dedicated server: XXX.XXX.XXX.XXX
So the IP of the gateway for your virtual machine(GATEWAY_VM) : XXX.XXX.XXX.254
This gateway will be used as GATEWAY_VM later in the guide.
Contents of the file: /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
BOOTPROTO=none
ONBOOT=yes
USERCTL=no
IPV6INIT=no
PEERDNS=yes
TYPE=Ethernet
NETMASK=255.255.255.255
IPADDR=IP.FAIL.OVER
GATEWAY=GATEWAY_VM
ARP=yes
HWADDR=MA:MAC:VI:RT:UEL:LE
Contents of the file : /etc/sysconfig/network-scripts/route-eth0
GATEWAY_VM dev eth0
default via GATEWAY_VM dev eth0
Contents of the file : /etc/resolv.conf
nameserver 213.186.33.99





