The earlier post we talk about how to determine our IP address which assign to our PC. Now we talk how do we change that IP address statically. We use same command as we used in earlier post. That is ifconfig. We want to change our IP address as 10.0.0.5 and we assign the 24 prefix sub net to our Ethernet interface (eth0).
[root@fedora]# ifconfig eth0 10.0.0.5 netmask 255.255.255.0 up
Here to enable the interface we use
up, and to disable the interface use
down[root@fedora]# ifdown eth0
[root@fedora]# ifup eth0
No comments:
Post a Comment