Networking Forums

Networking Forums > Computer Networking > Linux Networking > Confused about DHCPCD

Reply
Thread Tools Display Modes

Confused about DHCPCD

 
 
tom
Guest
Posts: n/a

 
      11-18-2003, 05:41 PM
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
 
 
 
 
Neil Horman
Guest
Posts: n/a

 
      11-18-2003, 08:04 PM
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
 
tom
Guest
Posts: n/a

 
      11-18-2003, 08:25 PM

"Neil Horman" <(E-Mail Removed)> wrote in message
news:bpe2ik$pm9$(E-Mail Removed)...
> 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
 
James Knott
Guest
Posts: n/a

 
      11-19-2003, 10:54 AM
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
 
Neil Horman
Guest
Posts: n/a

 
      11-19-2003, 12:39 PM
tom wrote:
> "Neil Horman" <(E-Mail Removed)> wrote in message
> news:bpe2ik$pm9$(E-Mail Removed)...
>
>>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
 
tom
Guest
Posts: n/a

 
      11-19-2003, 04:09 PM

"James Knott" <(E-Mail Removed)> wrote in message
news:9SIub.45965$(E-Mail Removed) 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
 
James Knott
Guest
Posts: n/a

 
      11-20-2003, 01:21 AM
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
 
Neil Horman
Guest
Posts: n/a

 
      11-20-2003, 01:05 PM
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
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 On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
dhcpcd - dns only Paulo da Silva Linux Networking 4 12-09-2010 08:42 PM
dhcpcd can't get an IP George Bell Linux Networking 1 12-19-2003 01:08 PM
DHCPCD fails George Bell Linux Networking 0 12-10-2003 09:10 PM
dhcpcd Matthew Paterson Linux Networking 5 10-29-2003 07:20 PM
Re: DNS update from dhcpcd Nathan Higgins Linux Networking 4 07-01-2003 11:19 PM



1 2 3 4 5 6 7 8 9 10 11