Friday, January 16, 2009

The Ultimate Linux Reference Guide for Newbies

During the course of your daily sys admin tasks, you definitely need to change IP addresses several times.

In RedHat/Fedora, the first tool that you will find easy to use is probably: system-config-network, then you’ll find your self using the command setup in cases you couldn’t manage to get into Run Level 5, days will pass by and you’ll find your self using ifconfig for this task, and then many tools available for this task.

But how about using the ifcfg command?

ifcfg eth0 del 192.168.0.1

This command takes eth0 down and removes the assigned IP 192.168.0.1

ifcfg eth0 add 192.168.0.2

This command brings eth0 up and assigns the new IP 192.168.0.2

[Originally posted on The Ultimate Linux Reference Guide for Newbies ]

Technorati Tags:
blog comments powered by Disqus