Hi!
When I look at my subject field it dawns on me: this shouldn't be very hard should it?
Changing the IP-address isn't supposed to be hard? I have done this a million times before, and if there is one thing evolution has told us is that:
Changing the Ip-address on Debian 6 isn't hard.
Why can't I accomplish this? This shit is making me crazy like old Yeller in the end. Or Cujo, the cute St. Bernhard which goes quite mental after it's owner doesn't bother to give him rabies vaccine. But who could have known?
Anyway, I try this: ifconfig eth0 10.x.x.x netmask 255.255.255.0 up and when I do the world famous: ifconfig eth0 I get the exact Ip-address I have typed in.
When I reboot the virtual server, the old Ip-address shows up, no matter what I do.
The thing is that I have changed to another subnet, and the old Ip doesn't work anymore...
Help me, Obi-Wan Kenobi, you are my only hope.
Markers
Debian 6 | Nagios XI | Change to static Ip
Re: Debian 6 | Nagios XI | Change to static Ip
Why not do the following:
Login
vi /etc/network/interfaces
Comment (adapt of course):
allow-hotplug eth0
iface eth0 inet dhcp
add the following (adapt of course):
auto eth0
iface eth0 inet static
address 192.168.40.9
netmask 255.255.255.0
network 192.168.40.0
broadcast 192.168.40.254
gateway 192.168.40.1
save and quit
reboot and be done
Login
vi /etc/network/interfaces
Comment (adapt of course):
allow-hotplug eth0
iface eth0 inet dhcp
add the following (adapt of course):
auto eth0
iface eth0 inet static
address 192.168.40.9
netmask 255.255.255.0
network 192.168.40.0
broadcast 192.168.40.254
gateway 192.168.40.1
save and quit
reboot and be done