Re: Changing the IP Address....



Stephane M wrote:

Hi,

I wanted to change the IP address of my machine.

/sbin/ifconfig eth0 down
/sbin/ifconfig eth0 192.168.22.44
/sbin/ifconfig eth0 up

sbin/service network restart

Everything seems to be OK, except that if I check the IP address,
nothing has changed !
I need to reboot the machine, in order to take account the changes

- Any idea what (or which service ) I also need to restart ?
What I did , seems not to be enough :-(


To make the change permanent, try
changing /etc/sysconfig/network-scripts/ifcfg-eth0, and then
restart the network service with "service network restart"

--
Regards,
Tore


.



Relevant Pages

  • Service network restart
    ... I wanted to restart my network so I tried 'service network restart'. ... didn't work so I had to execute '/sbin/service network restart'. ... To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list ...
    (Fedora)
  • Re: /etc/resolv.conf : How to Reload?
    ... > and setvice network restart or boot would change it back. ... The service network restart changed the /etc/resolv.conf ... how to make gethostbyname use the ...
    (linux.redhat)
  • Bond doesnt work after reboot network
    ... but after a network restart (service network restart) my two bonding nics doesn't get up. ... I have to start them manually (ifconfig eth1 up, ...
    (Fedora)
  • Re: /etc/resolv.conf : How to Reload?
    ... >> setvice network restart or boot would change it back. ... > given by service network restart? ...
    (linux.redhat)