LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 02-02-2002, 11:07 AM   #1
paradoxlight
LQ Newbie
 
Registered: Jan 2002
Posts: 25

Rep: Reputation: 15
My dynamic IP is destroying my system.


I am using an @home connection for my linux box and it seams that everytime my IP changes (usually about 3 months) It almost renders my system usless. They may not be related but they sure seem to be.

First Problem: Probably the most annoying is that Symbolic lynx flash red at the console as if they are broken, Yet they work and brand new ones get created the same.

Second Problem: My X server freezes when it starts. I have a feeling it has something to do with the broken links to the font files and the init scripts.

Lastly: The hostname (kind of @home assigned) will not change. I think i have found a solution to that by changing the /etc/sysconfig/network hostname entry to read the name I have in the /etc/hosts file and attached that to the internal interface. (I use it for firewall and routing)

Any suggestions, Advice, or fixes would greatly be appreciated.
Thanx in advance.
 
Old 02-02-2002, 11:42 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
what do these links do? there's no way a dynamic IP should affect anything. you shouldn't have an entry to yourself (other than on localhost) in /etc/hosts my external IP is dynamic, but my system has nothign to do with the IP address at all. I presume you've configured your system strangely.
 
Old 02-02-2002, 04:10 PM   #3
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
I use @home


if you put this in you ifcfg file for the nic it will connect
/etc/sysconfig/network-scripts/ifcfg-eth0

DEVICE=eth0
BOOTPROTO=dhcp
ONBOOT=yes
DHCP_HOSTNAME=cc?????-?


you can setup your hostname to anything you want in /etc/sysconfig/network

Last edited by DavidPhillips; 02-02-2002 at 04:11 PM.
 
Old 02-11-2002, 05:28 PM   #4
rblue
LQ Newbie
 
Registered: Feb 2002
Location: Ontario, CA
Distribution: Red Hat
Posts: 3

Rep: Reputation: 0
Printing (among others) gets hosed when I change my hostname

OK, I goofed when I installed RedHat using DHCP. I went brain dead when the install asked for a hostname, and I gave it a fully qualified hostname. Now, my hostname is "hostname-dom-dom-dom-org.dom.dom.dom.org" .

I want to change this, so I use the hostname command, then I check /etc/sysconfig/network and everything is copacetic until I try to print or reach my linux host via ftp or telnet. When I print, I get a "bad Hostname" message and ftp and telnet from another machine gives me an unknown host message.

The printer is a shared printer on a Windows 2000 box running lpd.

I've tried restarting all of the related processes, (dhcpd, lpd, etc.) on both machines, even a couple of reboots, but nothing seems to fix this. What am I missing here?
 
Old 02-12-2002, 01:06 AM   #5
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
If you changed your hostname with the hostname command things can go bad if you don't put it in /etc/hosts

and putting search localdomainname in it would not hurt


Also you should probably put the hostname in /etc/sysconfig/network

you could also append it with .localdomainname

or add the domainname seperate

Last edited by DavidPhillips; 02-12-2002 at 01:09 AM.
 
Old 02-13-2002, 12:29 PM   #6
rblue
LQ Newbie
 
Registered: Feb 2002
Location: Ontario, CA
Distribution: Red Hat
Posts: 3

Rep: Reputation: 0
Thanks. I added the DHCP_HOSTNAME= entry to /etc/sysconfig/networking/devices file and rebooted the box.

All seems to be working well now.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Kernel 2.6.11.10 destroying /dev AxXium Slackware 11 05-24-2005 11:10 PM
Is Microsoft destroying itself? ShakyJake General 35 07-07-2004 06:40 AM
XF86Config destroying my life babajobu Slackware - Installation 10 04-19-2004 08:42 PM
Apache webserver on a DSL Dynamic IP system? bripage Linux - Networking 6 07-17-2003 10:45 PM
Re-Install RH 7.1 w/o destroying old partitions Neelix Linux - Software 2 11-19-2001 06:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 12:58 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration