Adding First IP in - Red Hat KVM

1) Add the lines below in your /etc/sysconfig/network-scripts/ifcfg-eth0. Change Your-VPS-Main-IP-Address with the main IP of your VPS and Your-IP-MAC-ADDRESSwith your IP MAC Address.

DEVICE=eth0
BOOTPROTO=none
ONBOOT=yes
USERCTL=no
IPV6INIT=no
PEERDNS=yes
TYPE=Ethernet
NETMASK=255.255.255.255
IPADDR=Your-VPS-Main-IP-Address
GATEWAY=192.99.21.254
ARP=yes
HWADDR=Your-IP-MAC-ADDRESS

2) Add the lines below in your/etc/sysconfig/network-scripts/route-eth0

192.99.21.254 dev eth0
default via 192.99.21.254 dev eth0

3) Add Nameserver in /etc/resolv.conf

nameserver 213.186.33.99

4) Enable network.

ifup eth0
  • 0 Users Found This Useful
Was this answer helpful?