FruitNotes beta
Your All-in-One Online Notebook
FruitNotes Blogs | Home  
changing the IP of linux server
Last updated at (Tue Dec 25 2007 02:42:33)
Posted by: Nitin Gupta
0%




http://www.experts-exchange.com/Operating_Systems/Linux/Linux_Administration/Q_20908201.html 

 

U can run "netconfig" command for that...

Also "neat" also may help you..

which is written at /etc/sysconfig/network-scripts/ifcfg-eth0


also do
service network restart
 or
/etc/init.d/network restart
 
 
========
 
[root@francoisvn ~]# vi /etc/sysconfig/network-scripts/ifcfg-eth
0

example of my eth0 after the change.

DEVICE=eth0
BOOTPROTO=none
BROADCAST=192.168.1.255
IPADDR=192.168.1.245
.......
......
etc....

changed my IPaddr from .18 to .245 and wrote and quit the file and then ran

[root@francoisvn ~]# ifconfig
eth0      Link encap:Ethernet  HWaddr 00:A0:C9:E8:17:B6
          inet addr:192.168.1.245  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::2a0:c9ff:fee8:17b6/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:347144 errors:0 dropped:0 overruns:0 frame:0
          TX packets:308963 errors:147 dropped:0 overruns:0 carrier:147
          collisions:0 txqueuelen:1000
          RX bytes:238158724 (227.1 MiB)  TX bytes:39996874 (38.1 MiB)

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:2527 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2527 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:2820303 (2.6 MiB)  TX bytes:2820303 (2.6 MiB)
 

Rate this blog

   Report Abuse


Comments


Leave your comment(s) below:
To start Your own Blog




Other Blogs
» 
» 
» 
» 
» 
» 
» 
» 
» 
» 
» 
» 
» 
» 
» 
» 
» 
» 
» 
» 
» 
» 
» 
» 
» 
» 
» 
» 
» 
» 
» 
» 
» 
» 
» 
» 
» 
» 
» 
» 
» 
» 
» 
» 
» 
» 
» 
» 
» 
» 
» 
» 
» 
» 
» 
» 
» 
» 
» 
» 
» 
» 
» 
» 
» 
» 
» 
» 
» 
» 
» 
» 
» 
» 
» 
» 
» 
» 
» 
» 
» 
» 
» 
» 
» 
» 
» 
» 
» 
» 
» 
» 
» 
» 
» 
» 
» 
» 
» 
» 
» 
» 
» 
» 
» 
» 
» 
» 
» 
» 
» 
» 
» 
» 
» 
» 
» 
» 
» 
» 
» 
» 
» 
» 
» 
» 
» 
» 
» 
» 
» 
» 
» 
» 
» 
» 
» 
» 
» 
» 
» 
» 
» 
» 
» 
» 
» 
» 
» 
» 
» 
» 
» 
» 
» 
» 
» 
» 
» 
» 
» 
» 
» 
» 
» 
» 
» 
» 
» 
» 
» 
» 
» 
» 
» 
» 
2007 FruitNotes.com - All Rights Reserved.