First go to network (System -> Administration -> Network) and double click on the device listed in it. Select "Statically set IP address" and enter required fields. In my machine I have used,
Address : 192.168.1.XX
Subnet mask:255.255.255.0
Default gateway address:192.168.1.1
At this point I was unable to connect to internet. By setting fields in DNS tab I was able to connect to internet, but reset them when machine reboots. So I enter those fields in /etc/sysconfig/network-scripts/ifcfg-eth0. It is as follows,
NETMASK=255.255.255.0
GATEWAY=192.168.1.1
DNS1=XX.XX.XX.XX
DNS2=XX.XX.XX.XX
Finally, I was able to set a static ip and connect to internet.
No comments:
Post a Comment