Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

IP address keeps resetting, please help quick

Status
Not open for further replies.

cspm2003

Programmer
Nov 24, 2004
78
DE
I have a big problem! I want my linux box to join my win2k domain, but the ip address on the linux pc keeps reseting itself after every restart. So when I restart the pc, I first have to log-in locally, set the ip address again, and then I can loginto the domain.

I used the command

ifconfig eth0 192.168.0.55

to configure the ipaddress. why does my ipaddress allways reset it self?
 
You probably have the the network settings set to use DHCP to figgure out what it's IP address is... What distro are using? (This is set in files that are loaded by the network daemon, they are typically in the networkscripts directory (buried in /etc)).
 
I am using SuSe9.2

I dunno if I have DHCP enabled, how do can I check it? I also looked for a networkscripts folder in /etc but didnt find it
 
Fire up yast and set your address.
Your file will have the nic mac rather than a
vanilla label like eth0 which is much more specific
and better to work with, when you have n interfaces
and there are questions of what's first on the bus,
etc...
Location is something like:
/etc/sysconfig/network/ifcfg-eth-id-mac address
 
ok, Ive checked the
/etc/sysconfig/network/ifcfg-eth-id-mac address
file, and it looks like this:

BOOTPROTO='static'
MTU=''
REMOTE_IPADDR=''
STARTMODE='auto'
UNIQUE='oxTw.oCDJOrMCWA7'
USERCONTROL='no'
_nm_name='bus-pci-0000:02:08.0'
BROADCAST='172.26.255.255'
IPADDR='172.26.66.237'
NETMASK='255.255.0.0'
NETWORK='172.26.0.0'
 
You have IPADDR set to a "172....." space which is statically defined. Every time you reboot or bounce your network service, you will revert to this setting

Your management of the IP setting through the "ipconfig ..." parm list is fine, but it is lost at reboot or network service bounce.

I don't know Suse at all, but I understand from a previous post that using hte YAST config tool will help you set the network and static IP to something in the 192.168.... space, which is the implied "correct" IP space from your posts.

Hosting Solutions for Home or Business.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top