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 ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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. |
|
|||
|
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 ************************************************** */ |
|
|||
|
"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? |
|
|||
|
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. |
|
|||
|
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 ************************************************** */ |
|
|||
|
"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. |
|
|||
|
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. |
|
|||
|
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 ************************************************** */ |