View previous topic :: View next topic |
Author |
Message |
tactless l33t
Joined: 14 Jul 2002 Posts: 642 Location: Mitzpe Adi, Israel
|
Posted: Wed Jul 24, 2002 10:31 pm Post subject: How do I get off DHCP? |
|
|
I've installed Gentoo using DHCP, and my golden days of a fixed IP are over. Since I often host Quake games, and like to SSH into my machine from friends' (just to show off, heh), I'd really like my fixed IP back... can anyone please write a short explanation about not using DHCP? _________________ Tactless
"If it wasn't for fog, the world would run at a really crappy framerate."
Jabber: tactless@amessage.info |
|
Back to top |
|
|
mrchuckles Tux's lil' helper
Joined: 09 Jul 2002 Posts: 125 Location: Severn, MD
|
Posted: Wed Jul 24, 2002 10:35 pm Post subject: |
|
|
Edit /etc/conf.d/net. The directions there are pretty self-explanatory. |
|
Back to top |
|
|
pjp Administrator
Joined: 16 Apr 2002 Posts: 20067
|
Posted: Wed Jul 24, 2002 11:04 pm Post subject: Re: How do I get off DHCP? |
|
|
tactless wrote: | I've installed Gentoo using DHCP, and my golden days of a fixed IP are over. Since I often host Quake games, and like to SSH into my machine from friends' (just to show off, heh), I'd really like my fixed IP back... can anyone please write a short explanation about not using DHCP? | Do you actually have a static IP from your ISP? _________________ Quis separabit? Quo animo? |
|
Back to top |
|
|
Echo5ive n00b
Joined: 03 Jul 2002 Posts: 35
|
Posted: Wed Jul 24, 2002 11:08 pm Post subject: Re: How do I get off DHCP? |
|
|
kanuslupus wrote: | Do you actually have a static IP from your ISP? |
My ISP has. It's not unheard of. |
|
Back to top |
|
|
reverius42 Apprentice
Joined: 16 Jul 2002 Posts: 166 Location: Tucson, AZ
|
Posted: Wed Jul 24, 2002 11:08 pm Post subject: Re: How do I get off DHCP? |
|
|
kanuslupus wrote: | Do you actually have a static IP from your ISP? |
Heh... if he does, then it wouldn't matter that he's using DHCP, because it would be giving him the same IP address every time. More likely, he's on a lan with a cable/dsl router or something...? _________________ Even a stopped clock gives the right time twice a day. |
|
Back to top |
|
|
pjp Administrator
Joined: 16 Apr 2002 Posts: 20067
|
Posted: Wed Jul 24, 2002 11:10 pm Post subject: Re: How do I get off DHCP? |
|
|
Echo5ive wrote: | kanuslupus wrote: | Do you actually have a static IP from your ISP? |
My ISP has. It's not unheard of. | I'm aware of that. I was wanting to know if he had a static IP. If he does, it is fairly simple. If his ISP doesn't provide a static IP, then he's stuck with DHCP. _________________ Quis separabit? Quo animo? |
|
Back to top |
|
|
mrchuckles Tux's lil' helper
Joined: 09 Jul 2002 Posts: 125 Location: Severn, MD
|
Posted: Wed Jul 24, 2002 11:14 pm Post subject: |
|
|
Quote: | Do you actually have a static IP from your ISP? |
Technically, no. I have a cable modem, and my provider uses DHCP. However, my IP address hasn't changed in the nine months I've lived in my house. I use a static internal IP on my Gentoo box so my router always knows where to forward incoming connections.
I use a dynamic IP addressing service (dyndns.org), so that I always have a hostname that points to my router's IP address. My router then forwards incoming connections to the approriate boxes. I use this to ssh and sftp into my box from work to grab needed files, run an emerge, etc.
Because my IP addresses rarely changes, I use dyndns's "mostly static" service. They have a dynamic service designed for people who's IPs change frequently. You can then use some client software to update the dynamic IP providers DNS servers automatically. They have client software for Win32, Mac, and Linux. Best of all, this service is entirelly free. |
|
Back to top |
|
|
pjp Administrator
Joined: 16 Apr 2002 Posts: 20067
|
Posted: Wed Jul 24, 2002 11:14 pm Post subject: Re: How do I get off DHCP? |
|
|
reverius42 wrote: | kanuslupus wrote: | Do you actually have a static IP from your ISP? |
Heh... if he does, then it wouldn't matter that he's using DHCP, because it would be giving him the same IP address every time. More likely, he's on a lan with a cable/dsl router or something...? |
tactless wrote: | I've installed Gentoo using DHCP, and my golden days of a fixed IP are over. | Suggests he isn't maintaining a single IP. _________________ Quis separabit? Quo animo? |
|
Back to top |
|
|
reverius42 Apprentice
Joined: 16 Jul 2002 Posts: 166 Location: Tucson, AZ
|
Posted: Wed Jul 24, 2002 11:15 pm Post subject: |
|
|
mrchuckles wrote: | Quote: | Do you actually have a static IP from your ISP? |
Technically, no. |
I think he was asking someone else... possibly tactless, whom he was quoting at the time. _________________ Even a stopped clock gives the right time twice a day. |
|
Back to top |
|
|
pjp Administrator
Joined: 16 Apr 2002 Posts: 20067
|
Posted: Wed Jul 24, 2002 11:19 pm Post subject: |
|
|
mrchuckles wrote: | Quote: | Do you actually have a static IP from your ISP? |
Technically, no. I have a cable modem, and my provider uses DHCP. However, my IP address hasn't changed in the nine months I've lived in my house. I use a static internal IP on my Gentoo box so my router always knows where to forward incoming connections.
I use a dynamic IP addressing service (dyndns.org), so that I always have a hostname that points to my router's IP address. My router then forwards incoming connections to the approriate boxes. I use this to ssh and sftp into my box from work to grab needed files, run an emerge, etc.
Because my IP addresses rarely changes, I use dyndns's "mostly static" service. They have a dynamic service designed for people who's IPs change frequently. You can then use some client software to update the dynamic IP providers DNS servers automatically. They have client software for Win32, Mac, and Linux. Best of all, this service is entirelly free. | Handy information. I think I noticed a lease on my IP for some ridiculous number of days like 12k or something. I'll have to check that out. I always thought that you could lose an IP before the lease had expired though. Perhaps that was just something odd in Win NT. _________________ Quis separabit? Quo animo? |
|
Back to top |
|
|
Naan Yaar Bodhisattva
Joined: 27 Jun 2002 Posts: 1549
|
Posted: Wed Jul 24, 2002 11:53 pm Post subject: |
|
|
The only pain is that they drop you from their dynamic list if you don't do an update within 30 days. Since my client updated only on IP changes and my IP hasn't changed in about 3 years(!), I kept having to go back and re-register. Never got around to putting in a timed update in the client... I now use the static service they provide. Works nicely.
mrchuckles wrote: | ...
Because my IP addresses rarely changes, I use dyndns's "mostly static" service. They have a dynamic service designed for people who's IPs change frequently. You can then use some client software to update the dynamic IP providers DNS servers automatically.... |
|
|
Back to top |
|
|
tactless l33t
Joined: 14 Jul 2002 Posts: 642 Location: Mitzpe Adi, Israel
|
Posted: Thu Jul 25, 2002 12:15 pm Post subject: |
|
|
mrchukle's suggestion seems to be right... however, I have no idea what values I should put there. I'll try using dyndns.org first. _________________ Tactless
"If it wasn't for fog, the world would run at a really crappy framerate."
Jabber: tactless@amessage.info |
|
Back to top |
|
|
mrchuckles Tux's lil' helper
Joined: 09 Jul 2002 Posts: 125 Location: Severn, MD
|
Posted: Thu Jul 25, 2002 12:47 pm Post subject: |
|
|
Quote: | however, I have no idea what values I should put there |
You can't just put anything there. Assuming you have a single computer hooked-up to an Internet connection, you need to get an IP address from your ISP to put in there, as well as the subnet mask, broadcast address, and default gateway. You'll need to get the DNS servers to put on in you're /etc/resolv.conf.
If you're on a network with a DHCP server, you'll need to pick and address for your PC that's not handled by the DHCP server, but is still on the same subnet. Either that, or create a reservation for your chosen IP on the DHCP server.
If all of the above is over your head, perhaps you'd better just leave well enough alone, and stick with DHCP. |
|
Back to top |
|
|
tactless l33t
Joined: 14 Jul 2002 Posts: 642 Location: Mitzpe Adi, Israel
|
Posted: Thu Jul 25, 2002 2:10 pm Post subject: |
|
|
Got myself a dyndns account, and it works great.
I know that setting a static IP works with my connection, because that's how Mandrake, Redhat and Windows had it working... it's not even a real IP address, just an internal one in our WAN. I was worried that maybe dyndns won't handle that, but it does. ddclient is also available in portage _________________ Tactless
"If it wasn't for fog, the world would run at a really crappy framerate."
Jabber: tactless@amessage.info |
|
Back to top |
|
|
booyeah451 n00b
Joined: 09 Jul 2002 Posts: 6 Location: TX
|
Posted: Thu Jul 25, 2002 3:46 pm Post subject: dns2go |
|
|
tactless wrote: | Got myself a dyndns account, and it works great.
I know that setting a static IP works with my connection, because that's how Mandrake, Redhat and Windows had it working... it's not even a real IP address, just an internal one in our WAN. I was worried that maybe dyndns won't handle that, but it does. ddclient is also available in portage |
If your dns2go account times out and doesnt work, tell me and I will send you a script thats a keep alive for dns2go. Sometimes I ran into the problem where it would not work after 5 days... |
|
Back to top |
|
|
|