Network Troublshooting > General Networking Support in Linux

changing IP Address thru ifconfig utility

(1/2) > >>

I tried using "ifconfig eth0 up" command to change my ip address from to and it got changed, I confirmed it by using "ifconfig eth0" command, but when i entered "neat" command i found out that the ip address still remained I want to know the reason why..??

You can edit the network script and restart the network demon

vi /etc/sysconfig/network-scripts/ifcfg-eth0 and edit it

and restart network service

I am really thankful to everyone who responded my query.
But i need to know that DO I have to restart the service every time when i change my ip address.
Is neat utility not updated with the ifconfig command ?
And manually editing a network script everytime is a little bit tedious job and for that you will have to remember the exact path of the file too.
Anyways thanks for your reply.

How is IP address assigned to your card in first place?
Through dhcpd or through any router you are using with it?

Because if your router is assigning you the ip then this won't help you and you have to stop the DHCP server on your router.
If you are using manual ip assignment then you best use a dhcp server on your machine and assign the required parameters to it.
And before running the link up you should first shut it down with
$ ifconfig eth0 down

Thanks ManiDhillon
But in my case I need to assign IP address manually to the clients but what the tragic is that when i use a command
say "ifconfig eth0 up" it gets changed but if i go to the neat utility it does not come up. The neat utility shows the previous IP address which is "" So therefore I am in a confusion why it is so ?


[0] Message Index

[#] Next page

Go to full version