How to change ip address in linux

I wrote this draft quite ago . Just stumbled upon on it in the drafts section, may this would help someone

Change IP address

You can change ip address using ifconfig command itself. To set IP address 192.168.1.5, enter command:

# ifconfig eth0 192.168.1.5 netmask 255.255.255.0 up
# ifconfig eth0

To make permanent changes to IP address you need to edit configuration file according to your Linux distribution.

Here are some detailed posts:

 
Shoaib Ahmed

Shoaib Ahmed

Embedded Linux System Software Engineer, mostly involved in design and development of home automation and security systems for ARM based boards. Area of expertise: Linux system programming. Considerably proficient with device drivers and kernel compilation.

 

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.