1. Store
  2. Apps
  3. Hardware
  4. Support
  5. Solutions

ClearFoundation

Forums
Welcome, Guest
Loose IP settings every reboot
(1 viewing) 1 Guest
Go to bottomPage: 1
TOPIC: Loose IP settings every reboot
#11789
Loose IP settings every reboot 2 Years, 11 Months ago  
I support a remote clearOS 5.1 install. It is configured in gateway mode.

Every time this PC reboots, the config for ETH0 is lost (the WAN IP). It is supposed to be "external" with static IP information. When the system boots, it comes up "LAN" with static, but does not retain the IP or Gateway.

Therefore, everytime this PC reboots, I have to walk someone through reconfiguring ETH0. We have to change the role, and configure the IP and gateway. After confirming the change, system works fine until next reboot.

I've never had a problem with Clear (or Clark Connect) before, and I'm not sure where to start looking.

I see:
/etc/sysconfig/network
Code:

NETWORKING=yes
NETWORKING_IPV6=no
HOSTNAME="changed.for.security"
NOZEROCONF=yes
GATEWAYDEV="eth0"



/etc/sysconfig/networking/
-- nothing under this directory or its subdirectories

/etc/sysconfig/network-scripts/ifcfg-eth0
Code:

DEVICE=eth0
TYPE="Ethernet"
ONBOOT="yes"
USERCTL="no"
HWADDR="00:40:05:00:00:00"
BOOTPROTO="static"
IPADDR="192.168.3.253"
NETMASK="255.255.255.0"
GATEWAY="192.168.3.254"



Thanks for your input!
Secesh
Fresh Boarder
Posts: 4
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
On some beach, somewhere
There's nowhere to go, and you got all day to get there!
 
#11793
Re: Loose IP settings every reboot 2 Years, 11 Months ago  
There have been a number of reports of this sort of thing happening during the update process where kudzu gets a bit over-enthusiastic. You caold try setting the immutable bit on /etc/sysconfig/network-scripts/ifcfg-eth0 and perhaps also /etc/sysconfig/network e.g.:
Code:

chattr +i /etc/sysconfig/network-scripts/ifcfg-eth0


Remember to unset it if you want to change the file.
Nick Howitt
Platinum Boarder
Posts: 4125
graphgraph
User Online Now Click here to see the profile of this user
Last Edit: 2010/05/26 15:34 By NickH.
The administrator has disabled public write access.
 
#11799
Re: Loose IP settings every reboot 2 Years, 11 Months ago  
Thanks!

I flagged both files and crossed fingers during reboot. Came back up by itself and everything's perfect!
Secesh
Fresh Boarder
Posts: 4
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
On some beach, somewhere
There's nowhere to go, and you got all day to get there!
 
#11823
Re: Loose IP settings every reboot 2 Years, 11 Months ago  
On every machine as a matter course I always do the following (Including Fedora and CentOS) :-
Code:


chattr +i /etc/sysconfig/network-scripts/ifcfg-eth*
chattr +i /etc/resolv.conf
chattr +i /etc/modprobe.conf


also make sure the MAC address is in every ifcfg-ethX file...
Tony Ellis
Platinum Boarder
Posts: 1048
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
Go to topPage: 1
  get the latest posts directly to your desktop