Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
12-17-2004, 01:19 AM
|
#1
|
|
Member
Registered: Feb 2003
Location: sc
Distribution: mandrake 9
Posts: 73
Rep:
|
how to move from static to dhcp in debian
when i installed debian sarge on my desktop box here and i am moving the computer to a friends house.
i had it set up with a static ip ( thats how i installed it)
but now i need it to find a dhcp address when it boots up because thats how my friend gets on the internet.
is there a network config tool to do this ? so i can reconfigure how i connect to the internet?
thanks for any suggestions.
|
|
|
|
12-17-2004, 01:26 AM
|
#2
|
|
Member
Registered: Mar 2003
Distribution: Debian
Posts: 275
Rep:
|
edit /etc/network/interfaces. Change iface static to dhcp and delete the tabbed lines (address, netmask, gateway). i.e.
Code:
iface eth0 inet static
address 192.168.10.1
netmask 255.255.255.0
-becomes-
iface eth0 inet dhcp
|
|
|
|
12-17-2004, 08:46 AM
|
#3
|
|
Member
Registered: Feb 2003
Location: sc
Distribution: mandrake 9
Posts: 73
Original Poster
Rep:
|
OK i tried that but it didnt work.
i rebooted after making the changes to /etc/network/interfaces and i cannot dhcp.
any suggestions ?
|
|
|
|
12-17-2004, 09:43 AM
|
#4
|
|
LQ Newbie
Registered: Oct 2001
Distribution: Debian
Posts: 8
Rep:
|
what does your /etc/network/interfaces look like?
|
|
|
|
12-17-2004, 11:28 AM
|
#5
|
|
Member
Registered: Feb 2003
Location: sc
Distribution: mandrake 9
Posts: 73
Original Poster
Rep:
|
my /etc/network/interfaces looks like this
auto eth0
iface eth0 inet dhcp
with everything else has # in front of it.
i had tried it once with it like this, and once with uncommenting out the lines for nameserver
like nameserver xxx.xxx.xxx.xxx (i dont remember exactly that computer is at home )
thanks, by the way
|
|
|
|
12-17-2004, 11:36 AM
|
#6
|
|
LQ Guru
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522
Rep:
|
hi there
try
editing the
/etc/sysconfig/network-scripts/ifcfg-eth0
file
and put the entries like this
DEVICE=eth0
ONBOOT=yes
BOOTPROTO=dhcp
regards
|
|
|
|
12-17-2004, 12:08 PM
|
#7
|
|
Member
Registered: Feb 2003
Location: sc
Distribution: mandrake 9
Posts: 73
Original Poster
Rep:
|
OK Thanks.
will try that as soon as i get back to the house.
thanks, i will let you know.
|
|
|
|
12-17-2004, 04:24 PM
|
#8
|
|
Member
Registered: Dec 2004
Location: Central New York
Distribution: Debian
Posts: 218
Rep:
|
You could also install the etherconf package and control the net connection via debconf.
|
|
|
|
12-19-2004, 01:45 AM
|
#9
|
|
Member
Registered: Feb 2003
Location: sc
Distribution: mandrake 9
Posts: 73
Original Poster
Rep:
|
ehterconf hooked me up good
thanks for your time
|
|
|
|
All times are GMT -5. The time now is 06:14 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|