Oracle, Web, Script, SQLserver, Tips & Trick

February 2, 2012

How to change network / ip address on command / shell linux

Filed under: centos,linux,linux:centos — sikathabis @ 3:10 am
Tags: , ,

Using root user to change ip address

example

vi /etc/sysconfig/network-scripts/ifcfg-eth#  (change # with default number 0 for first ethernet )

edit eth0 with vi

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Press Insert on your keyboard and Changing your ipaddr

Press ESC on your keyboard and type :wq! to save

Type /etc/init.d/network restart to restart the network

Restart network adapter

 

 

 

 

 

references :

http://www.cyberciti.biz/faq/rhel-centos-fedoracore-linux-network-card-configuration/

http://www.cyberciti.biz/faq/linux-change-ip-address/

http://www.wallpaperama.com/forums/how-to-change-ip-address-in-linux-shell-command-t6092.html

Theme: Rubric. Blog at WordPress.com.

Follow

Get every new post delivered to your Inbox.