LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 06-30-2005, 07:59 AM   #1
mht
LQ Newbie
 
Registered: Jun 2005
Distribution: SuSE8.1|fedora|slackware
Posts: 10

Rep: Reputation: 0
ip from dhcp changed after new install


hello, i'm a linux newbie.
my pc is part of an network wich gives ip's throu a dhcp. some days ago a had to reinstall suse81. and to my own surprise, the dhcp gave a new ip. the problem: many users in the network ran services over ip (e.g. ftp://xxx.xxx.xxx.xxx or samba //xxx.xxx.xxx.xxx/pub). now i have to tell them all the new ip???
my net-adapter does not changed, so why i have a new ip?
is there a way to access services over a name? do i have to run a dns server for this purpose? but a dns is already running in the network.
please help. thanks!
mht
 
Old 06-30-2005, 10:59 AM   #2
Half_Elf
LQ Guru
 
Registered: Sep 2001
Location: Montreal, Canada
Distribution: Slackware; Debian; Gentoo...
Posts: 2,163

Rep: Reputation: 46
the D in DHCP mean "DYNAMIC".
If you expected your ip to be static, you shouldn't have used DHCP at first. DHCP _try_ to keep the same ip, your client will request the same one from the server and the server will _try_ to give the same one if possible. But there is no warranty. Another client probably got your ip while you were reinstalling or your DHCP lease (the _time_ your ip is reserved for you) probably prevented your computer to get a new one.

In any case, if you want a static ip, use a static configuration ( mean, set it manually in your network card configuration), but you will probably need to talk with your network administrator yo make sure the DHCP will not give this ip to someone else then (what would result in a conflict on the network). You could also ask the admin to set some old BOOTP protocol options in the DHCP server so that the server will send ips according to MAC addresses (MAC address is an hardware address burned into your network card, it shouldn't never change). This is the only way to get "static" address from DHCP.

Or you could also run a DynDNS so your computer will get a hostname that will update when your ip will change?
 
Old 06-30-2005, 11:26 AM   #3
mht
LQ Newbie
 
Registered: Jun 2005
Distribution: SuSE8.1|fedora|slackware
Posts: 10

Original Poster
Rep: Reputation: 0
dhcp

hello,
and thanks for reply.
i know that dhcp is dynamic, but for over a year it was static. i thought the MAC adresses are the reason for a (static) ip from the dhcp. so when i change network adapter i get a new ip. but hardware is still the same.
to speak with the network admin: forget it, no chance.
i thought there is a way to give the pc a hostname, so you can use
//hostname/pub instead of //x.x.x.x/pub or ftp://hostname instead of ftp://x.x.x.x
i realy dont like to give a dyndns-adress.
how do i manage to give a hostname that is known everywere in the network segment, WITHOUT having dyndns?
i have to have an adress that is there for the rest of time.
thanks
mht
 
Old 06-30-2005, 11:59 AM   #4
Half_Elf
LQ Guru
 
Registered: Sep 2001
Location: Montreal, Canada
Distribution: Slackware; Debian; Gentoo...
Posts: 2,163

Rep: Reputation: 46
hmmm the only way is to run your own DNS, and once again you will need to talk to the admin (unless all your client want to use your DNS instead of the network one?).
However, if your clients are windoze... you could run Samba ( and NMBD daemon ) to set yourself a name, as windoze box try to resolve Netbios name (samba name if you prefer) for every service when they can't find the hostname on DNS. This is some kind of silly behavior, but you could use (read : exploit) it for good purpose
 
Old 07-02-2005, 08:37 PM   #5
mht
LQ Newbie
 
Registered: Jun 2005
Distribution: SuSE8.1|fedora|slackware
Posts: 10

Original Poster
Rep: Reputation: 0
samba and dyndns

now i just use samba and dyndns for ftp. i thought dyndns would not work because i'm behind a proxy. but works fine.
thanks for help.
 
Old 07-03-2005, 07:38 AM   #6
charon79m
Member
 
Registered: Oct 2003
Distribution: Just about anything... so long as it is Debain based.
Posts: 297

Rep: Reputation: 30
Name Resolution without DNS

Another solution would be for the others to toss an entry in their hosts file (Windows = C:\windows\system32\drivers\etc\hosts) (linux = /etc/hosts).

That way, if your address changes you can just give them the new address and they can update the hosts file.

MrKnisely
 
Old 07-06-2005, 07:55 PM   #7
mht
LQ Newbie
 
Registered: Jun 2005
Distribution: SuSE8.1|fedora|slackware
Posts: 10

Original Poster
Rep: Reputation: 0
host flie

hi,
good idea. but: every user in the network have to do this. but a lot of DAU's (german for 'most stupid user') around. they can klick a link, but not edit a textfile.
for the user it should only be one adress for all things: http, ftp, samba, whatever....
mht
 
Old 07-07-2005, 07:02 AM   #8
charon79m
Member
 
Registered: Oct 2003
Distribution: Just about anything... so long as it is Debain based.
Posts: 297

Rep: Reputation: 30
You could create a batch file/shell script to take care of it for them.

MrKnisely
 
  


Reply



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
X changed resolution while trying (and failing) to install an nVidia driver paulBottomley Fedora 1 10-26-2005 05:36 PM
Kickstart installs on ia64 fail if partition table is changed during install da_kidd_er Linux - Newbie 0 11-23-2004 06:04 PM
dhcp problem in Debian netinst install..Help !! install. copter Linux - Networking 11 06-30-2004 01:14 PM
changed ifcfg from dhcp to static ip monc Linux - Software 3 01-21-2004 08:12 AM
machine name changed by DHCP serquicia Linux - General 4 12-18-2002 08:53 PM

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

All times are GMT -5. The time now is 11:55 PM.

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