Supported
OS-Redhat/CentOS/Ubuntu
Step 1:
>vi /etc/resolv.conf
nameserver <provide the
serverIP>
Step2:
>vi
/etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
HWADDR=<default one>
TYPE=Ethernet
UUID=<default-one>
ONBOOT=yes
NETMASK=255.255.255.0
NM_CONTROLLED=no
BOOTPROTO=static
IPADDR=172.20.10.42
Step 3:
>vi /etc/sysconfig/network
NETWORKING=yes
HOSTNAME=host-vm1
GATEWAY=172.20.10.1
Step 4:
>service NetworkManager stop
>service network restart
> ping google.com
PING google.com (216.58.194.206)
56(84) bytes of data.
64 bytes from
sfo03s01-in-f14.1e100.net (216.58.194.206): icmp_seq=1 ttl=54
time=6.46 ms
(#You ll see response like this if everything went well)
No comments:
Post a Comment