Welcome to Linux Forums!

With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.

Linux Forum ArticlesLinux ForumsLinux Forum DownloadsLinux Hosts
Home|Register|FAQ|Member List|Calendar|Unanswered Posts|Forum Rules|Today's Posts|Advanced Search|
SEARCH FOR IN
Go Back   Linux Forums > Your Distro > Debian Linux Help
Reload this Page Static Ip Problem
Linux Forums
Linux Forums
Welcome To The Linux Forums!
Welcome to Linux Forums. We pride ourselves in being one of the largest Linux communities on the web, we encourage you to REGISTER on our forums and participate in the community. There are over 150,000 members ready to answer your questions. JOINING US today will allow you to make new posts, get support, send messages to other members and submit downloads to our downloads directory and many other great features!

Debian Linux Help Discussions related to Debian GNU/Linux.

Reply
 
Thread Tools Display Modes
Old 04-15-2008   #1 (permalink)
szee
Just Joined!
 
Join Date: Apr 2008
Posts: 8
Static Ip Problem

How i said i'm a newbie and i lost my internet connection on my debian etch trying to change to a static ip address .

i modified etc/networks/interfaces but is not working , i don't know how to make it work again ( the internet )

I must type a desired ip address or what ?
szee is offline   Reply With Quote
Old 04-15-2008   #2 (permalink)
DotHQ
Just Joined!
 
Join Date: Mar 2006
Location: Ohio USA
Posts: 13
Hopefully you saved a copy of the interfaces file before you modified it. Just put it back in place.
If you didn't save a copy before you modified it, remember, for next time, always save a backup copy of your config files before making changes.
Did you supply static IP to start with? If not you might have DHCP turned on. All you have to do in that case is to restore the file as it was before you modified it, and restart the network service or reboot. Either should work.
DotHQ is offline   Reply With Quote
Old 04-15-2008   #3 (permalink)
szee
Just Joined!
 
Join Date: Apr 2008
Posts: 8
i don't have the old file , i lost the previous configuration , i had all the time a different ip address so i decided to make it static but is not so easy for me
szee is offline   Reply With Quote
Old 04-15-2008   #4 (permalink)
szee
Just Joined!
 
Join Date: Apr 2008
Posts: 8
is working again as dynamic ip with this configuration :

auto eth0
iface eth0 inet dhcp

but still no idea how to make it static ip
szee is offline   Reply With Quote
Old 04-15-2008   #5 (permalink)
coopstah13
Linux Enthusiast
 
coopstah13's Avatar
 
Join Date: Nov 2007
Location: MA, USA
Posts: 591
are you part of a network? or is this IP being provided to you by your ISP? if it is being provided to you by your isp then chances are you can't make it static, if you are on a private network of some kind with a network ip and a gateway you should be able to configure it statically as long as the dhcp server doesn't try to assign that ip to someone else you would be ok

Code:
auto eth0
iface eth0 inet static
address w.x.y.z
gateway w.x.y.z
dns-nameserver w.x.y.z
dns-search your-domain
broadcast w.x.y.z
netmask w.x.y.z
most of these values can be figured out from the ifconfig command, you will have to look at the contents of /etc/resolv.conf for the dns information
coopstah13 is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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 Off
Pingbacks are Off
Refbacks are Off




All times are GMT. The time now is 04:42 PM.




© 2000 - 2008 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.0.0