atl_andy Posted April 21, 2008 Share Posted April 21, 2008 I'm going to start here because I think this is a linux issue and not apache. My LAMP server is running on Fedora 8, with a static ip of 192.168.10.51. I noticed today that when the server reboots, the ip becomes 192.168.10.143. A gui under system->network shows a static ip of .51, but ifconfig in a terminal window shows an ip of .143. Confusion has set in. How can I have a static ip set, but the system acts as if it is still using dhcp? Logic told me that ifconfig trumps the gui, and I set the ip back to .51 manually. Where should I look/what should I change to make the static ip permanent? Link to comment https://forums.phpfreaks.com/topic/102229-static-ip-problem-fedora-8/ Share on other sites More sharing options...
neylitalo Posted April 22, 2008 Share Posted April 22, 2008 Check /etc/conf.d/net and /etc/conf.d/net.example. Link to comment https://forums.phpfreaks.com/topic/102229-static-ip-problem-fedora-8/#findComment-523521 Share on other sites More sharing options...
atl_andy Posted April 22, 2008 Author Share Posted April 22, 2008 ok, thanks. I'll check tomorrow when I get to the office. Link to comment https://forums.phpfreaks.com/topic/102229-static-ip-problem-fedora-8/#findComment-523556 Share on other sites More sharing options...
steviewdr Posted April 22, 2008 Share Posted April 22, 2008 Check: /etc/sysconfig/network-scripts/ifcfg-eth0 Below is a sample based on a rpm distro: -bash-3.1# cat ifcfg-eth0 # Please read /usr/share/doc/initscripts-*/sysconfig.txt # for the documentation of these parameters. TYPE=Ethernet DEVICE=eth0 #BOOTPROTO=dhcp BOOTPROTO=none ONBOOT=yes IPADDR=10.0.0.10 NETMASK=255.255.0.0 GATEWAY=10.0.0.1 -steve Link to comment https://forums.phpfreaks.com/topic/102229-static-ip-problem-fedora-8/#findComment-523871 Share on other sites More sharing options...
atl_andy Posted April 22, 2008 Author Share Posted April 22, 2008 Steve-- ifcfg-eth0 was set up properly BOOTPROTO=static IPADDR=192.168.10.51 Is there another config file that controls ip's during boot? Link to comment https://forums.phpfreaks.com/topic/102229-static-ip-problem-fedora-8/#findComment-524248 Share on other sites More sharing options...
steviewdr Posted April 24, 2008 Share Posted April 24, 2008 You might be aswell to do a: yum remove dhcp (do a "yum list installed | grep dhcp" first to see the exact name of the dhcp package installed). Do you have just the one network card? (try doing: "lspci | grep -i ethernet" to find out. lspci might not work by default on fedora). It could well be that your gui sits ontop of the sysconfig and changes it after the system boots. I would try removing the dhcp package and then seeing. -steve Link to comment https://forums.phpfreaks.com/topic/102229-static-ip-problem-fedora-8/#findComment-525906 Share on other sites More sharing options...
atl_andy Posted April 24, 2008 Author Share Posted April 24, 2008 Thanks for your time on this. I have removed dhcp and it still went to the wrong ip at reboot. The server does have eth1 as well, but I disabled that a while ago thinking it was interfering. I'm going to see what networking services are starting at boot and track it down that way. Link to comment https://forums.phpfreaks.com/topic/102229-static-ip-problem-fedora-8/#findComment-526467 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.