LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Automatically my static ip changes to 169.254.169.254 (https://www.linuxquestions.org/questions/linux-networking-3/automatically-my-static-ip-changes-to-169-254-169-254-a-4175456423/)

Arunkumar Goge 04-01-2013 03:28 PM

Automatically my static ip changes to 169.254.169.254
 
I'm using cent os i configure static ip 192.168.1.5 and after sometime it automatically changes into 169.254.169.254. if i type "service network restart"
"ifconfig" it gives 192.168.1.5 and after sometimes it changing .. Pls help

TobiSGD 04-01-2013 04:49 PM

The IPs in the 169.254.0.0/16 block are so called "link-local" (or APIPA in Microsoft terms) addresses and are usually assigned automatically to network interfaces that don't get an IP address otherwise.
That your network interface get such an IP assigned although it already has a static IP may be caused by a running DHCP client that never gets a lease and therefore uses and address from that block. Check your system for running DHCP clients.

https://en.wikipedia.org/wiki/Apipa

Arunkumar Goge 04-01-2013 05:19 PM

I already did that TobiSGD and thanks for ur effort .here is my network config is everything correct ?

DEVICE=eth0
BOOTPROTO=static
HWADDR=my mac address
IPADDR=my ip(192.168.1.6)
NETMASK=my netmask(255.255.255.0)
GATEWAY=my gateway(192.168.1.1)
NMCONTROLLED=No
NOZEROCONF=TRUE
ONBOOT=yes
PREFIX=24
TYPE=ethernet
uuid=my id


All times are GMT -5. The time now is 04:51 PM.