IP address automatically changing to DHCP
Hi All,
I am using CentOS-6.5 and configured static IP using NetworkManger(GUI). But this static IP will be often changing to DHCP IP automatically. This is happening since past couple of weeeks and still I couldn't find out the issue. I also tried below ipables rules block dhcp offer but no luck and still it is changing itself to DHCP but there is no any specific time for that(to get DHCP IP). Code:
iptables -I INPUT 1 -p udp --dport 67:68 --sport 67:68 -j DROP So I am suspecting that anybody trying to gain access to my PC with such spoofed IPs or any daemon is changing to DHCP IP. Expecting your kind help. |
1. turn off Network Mgr; its a pain in the ....
Code:
chkconfig NetworkManager off check by running ifconfig to see which ethX is being used Code:
ONBOOT=yes See examples http://www.linuxtopia.org/online_boo...ml#config-file ... and yes, that all applies to Centos6.x as much as it does v5.x |
Guru,
No, It did not help even after the static IP, service NetworkManager stop; chkconfig NetworkManager off. Also there is no DHCP reservation in the server side for my PC. So is there any other way that I can completely block dhcp request to my PC. Also request you to check the above mentioned IP Tables rules are correct to block dhcp IP. |
Hi All,
Still I am facing the same problem, can anybody please suggest how can I completely block dhcp request. Because of this the many downloads(copying backup files using scp) from servers are terminating in the middle and then again I am deleting those incompleted scp files and restarting the downloads. I have already updated the packages using "yum update" command. Excepting your kind help, I am using CentOS release 6.5 (Final) 64 bit O/S. |
assuming you are using eth0 could you pls dump the contents of /etc/sysconfig/network-scripts/ifcfg-eth0?
Best to remove MAC add and anything sensitive. And a copy of /sbin/ifconfig would be helpful. Again, remove all sensitive stuff. Cheers |
Hi timl,
Thanks for the reply. Code:
assuming you are using eth0 could you pls dump the contents of /etc/sysconfig/network-scripts/ifcfg-eth0? Code:
Best to remove MAC add and anything sensitive. Code:
And a copy of /sbin/ifconfig would be helpful. Again, remove all sensitive stuff. |
Quote:
Quote:
Quote:
|
Quote:
Code:
$ /sbin/ifconfig Quote:
I execute "ifconfig" command, in that result my IP will be 192.168.0.245 or 192.168.0.253 or sometime someother IP. There is no any specific time for that to change into dhcp IP. Sometime my static IP will be fine for more than 2-3 days and sometime it will be changing everyday. So this is what I wanted to know whether anybody intentionally attacking to my PC. Now I have renamed below files also, Code:
/sbin/dhclient to /sbin/dhclient.orig |
All times are GMT -5. The time now is 06:33 PM. |