1.edit the file with vi
DEVICE=eth0
ONBOOT=yes
BOOTPROTO=static
IPADDR=192.168.0.20
NETMASK=255.255.255.0
GATEWAY=192.168.0.1
2.To put Dns Server ip address
vi /etc/resolv.conf
nameserver=192.168.0.10
3.restart the network service
service network restart
vi/etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
ONBOOT=yes
BOOTPROTO=static
IPADDR=192.168.0.20
NETMASK=255.255.255.0
GATEWAY=192.168.0.1
2.To put Dns Server ip address
vi /etc/resolv.conf
nameserver=192.168.0.10
3.restart the network service
service network restart
0 comments:
Post a Comment