Confused about DHCPCD

This is a discussion on Confused about DHCPCD within the Linux Networking forums, part of the Linux Forums category; OK I have several windows computers and a linux computer behind a blue linksys DSL switch. Now I run dhcpcd ...


Go Back   Usenet Forums > Linux Forums > Linux Networking

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 11-18-2003
tom
 
Posts: n/a
Default Confused about DHCPCD

OK I have several windows computers and
a linux computer behind a blue linksys DSL
switch.

Now I run dhcpcd to get the linux computer online.
How do I write the setup scripts for the ethernet
card to keep the ip addresses consistent?

Please point me to helpful documentation because
I am having trouble finding it.


Reply With Quote
  #2 (permalink)  
Old 11-18-2003
Neil Horman
 
Posts: n/a
Default Re: Confused about DHCPCD

tom wrote:
> OK I have several windows computers and
> a linux computer behind a blue linksys DSL
> switch.
>
> Now I run dhcpcd to get the linux computer online.
> How do I write the setup scripts for the ethernet
> card to keep the ip addresses consistent?
>
> Please point me to helpful documentation because
> I am having trouble finding it.
>
>

What do you mean by "keep the ip addresses consistent"?

--
/************************************************** *
*Neil Horman
*Software Engineer
*Red Hat, Inc., http://people.redhat.com/nhorman
*gpg keyid: 1024D / 0x92A74FA1
*http://www.keyserver.net
************************************************** */

Reply With Quote
  #3 (permalink)  
Old 11-18-2003
tom
 
Posts: n/a
Default Re: Confused about DHCPCD


"Neil Horman" <nhorman@rNeOdShPaMt.com> wrote in message
news:bpe2ik$pm9$1@stan.redhat.com...
> tom wrote:
> > OK I have several windows computers and
> > a linux computer behind a blue linksys DSL
> > switch.
> >
> > Now I run dhcpcd to get the linux computer online.
> > How do I write the setup scripts for the ethernet
> > card to keep the ip addresses consistent?
> >
> > Please point me to helpful documentation because
> > I am having trouble finding it.
> >
> >

> What do you mean by "keep the ip addresses consistent"?
>


What goes in /etc/hosts?

And do you need to run ifconfig in the scripts?


Reply With Quote
  #4 (permalink)  
Old 11-19-2003
James Knott
 
Posts: n/a
Default Re: Confused about DHCPCD

tom wrote:

> Now I run dhcpcd to get the linux computer online.
> How do I write the setup scripts for the ethernet
> card to keep the ip addresses consistent?
>


I'm not sure what you're looking for here. Dhcp normally keeps itself
"consistent" in that it renews the lease part way through the lease time.
Is there a specific problem you're having?

--

Fundamentalism is fundamentally wrong.

To reply to this message, replace everything to the left of "@" with
james.knott.
Reply With Quote
  #5 (permalink)  
Old 11-19-2003
Neil Horman
 
Posts: n/a
Default Re: Confused about DHCPCD

tom wrote:
> "Neil Horman" <nhorman@rNeOdShPaMt.com> wrote in message
> news:bpe2ik$pm9$1@stan.redhat.com...
>
>>tom wrote:
>>
>>>OK I have several windows computers and
>>>a linux computer behind a blue linksys DSL
>>>switch.
>>>
>>>Now I run dhcpcd to get the linux computer online.
>>>How do I write the setup scripts for the ethernet
>>>card to keep the ip addresses consistent?
>>>
>>>Please point me to helpful documentation because
>>>I am having trouble finding it.
>>>
>>>

>>
>>What do you mean by "keep the ip addresses consistent"?
>>

>
>
> What goes in /etc/hosts?
>
> And do you need to run ifconfig in the scripts?
>
>

Still not clear on what you're asking for. Are you perhaps trying to
understand how to keep a computers name "consistent", so that when you
ftp, or ssh or ping yourmachine.yourdomain.com, it always sends data to
the same machine on your network, regardless of what ip address has been
asigned to it via DHCP?

Neil

--
/************************************************** *
*Neil Horman
*Software Engineer
*Red Hat, Inc., http://people.redhat.com/nhorman
*gpg keyid: 1024D / 0x92A74FA1
*http://www.keyserver.net
************************************************** */

Reply With Quote
  #6 (permalink)  
Old 11-19-2003
tom
 
Posts: n/a
Default Re: Confused about DHCPCD


"James Knott" <bit_bucket@rogers.com> wrote in message
news:9SIub.45965$j1d.43212@news04.bloor.is.net.cab le.rogers.com...
> tom wrote:
>
> > Now I run dhcpcd to get the linux computer online.
> > How do I write the setup scripts for the ethernet
> > card to keep the ip addresses consistent?
> >

>
> I'm not sure what you're looking for here. Dhcp normally keeps itself
> "consistent" in that it renews the lease part way through the lease time.
> Is there a specific problem you're having?
>
> --
>
> Fundamentalism is fundamentally wrong.
>
> To reply to this message, replace everything to the left of "@" with
> james.knott.


The specific problem I am having is that I cannot get
Samba to work properly. I cannnot see the linux
machine from the windows machines in network
neighborhood. I can telnet into the linux machines
from windows machines using ip addresses.



Reply With Quote
  #7 (permalink)  
Old 11-20-2003
James Knott
 
Posts: n/a
Default Re: Confused about DHCPCD

tom wrote:

> The specific problem I am having is that I cannot get
> Samba to work properly. I cannnot see the linux
> machine from the windows machines in network
> neighborhood. I can telnet into the linux machines
> from windows machines using ip addresses.
>

Then your problem has nothing to do with dhcp. Dhcp is used to assign an IP
address. If you can connect with telnet, you've got a valid IP address.
Based on your comment, I suspect you have a problem resolving host names.
If so, that's handled by a dns server or by use of hosts files, which list
the host names and corresponding IPs.

Get name resolution going first, so that you can ping or telnet by host
name, instead of IP address. Then start working on the Samba issues.

--

Fundamentalism is fundamentally wrong.

To reply to this message, replace everything to the left of "@" with
james.knott.
Reply With Quote
  #8 (permalink)  
Old 11-20-2003
Neil Horman
 
Posts: n/a
Default Re: Confused about DHCPCD

James Knott wrote:
> tom wrote:
>
>
>>The specific problem I am having is that I cannot get
>>Samba to work properly. I cannnot see the linux
>>machine from the windows machines in network
>>neighborhood. I can telnet into the linux machines
>>from windows machines using ip addresses.
>>

>
> Then your problem has nothing to do with dhcp. Dhcp is used to assign an IP
> address. If you can connect with telnet, you've got a valid IP address.
> Based on your comment, I suspect you have a problem resolving host names.
> If so, that's handled by a dns server or by use of hosts files, which list
> the host names and corresponding IPs.
>
> Get name resolution going first, so that you can ping or telnet by host
> name, instead of IP address. Then start working on the Samba issues.
>

Agreed. Without any hostname resolution, or if you don't have a
hostname set on your linux system, samba won't know how to announce you
to the netbios world. If you get your hostname resolution working, then
you can start tackling the samba stuff

--
/************************************************** *
*Neil Horman
*Software Engineer
*Red Hat, Inc., http://people.redhat.com/nhorman
*gpg keyid: 1024D / 0x92A74FA1
*http://www.keyserver.net
************************************************** */

Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 08:47 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0