Mourning the loss of our friend, WhitPhil.
There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
Search
 
Linux and Unix
Tag Cloud
access audio blue screen boot bsod connection crash dell desktop driver dvd email error excel excel 2003 firefox hard drive hardware hdmi hijackthis internet keyboard laptop malware monitor motherboard network networking outlook problem ram recovery router screen slow sound spyware tdlwsp.dll trojan upgrade vba video virus vista vundo windows windows 7 windows vista windows xp wireless
Search
Search for:
Tech Support Guy Forums > Operating Systems > Linux and Unix >
Static IP and DHCP for linux

Tip: Click here to scan for System Errors and Optimize PC performance
[ Sponsored Link ]

Closed Thread
 
Thread Tools
klam's Avatar
Senior Member with 181 posts.
 
Join Date: Apr 2006
Experience: Advanced
12-Jun-2006, 10:41 PM #1
Static IP and DHCP for linux
Hey there,

Cause the mbr of my computer went corrupt I used a knoppix live cd to get to my files and make the backup. The way I figured was the best to make the backup was to connect this computer to a mac that acted as a server. Aaaanywaayyss, I needed to set up this computer running knoppix on DHCP but not being a linux person myself I wasn't able to do it. I googled it but I couldn't find anything that worked out.

I'm just wondering how do I set up a computer for DHCP or static IP on a linux system? Please be gentle with the explaination.. I'm not a linux person.
__________________
"the only refuge from the damnation of the panta rei, and she guessed it was the Pendulum’s business, not hers"
CouchMaster's Avatar
Distinguished Member with 3,364 posts.
 
Join Date: May 2003
Location: West Texas
Experience: n00b
13-Jun-2006, 06:23 AM #2
lynch's Avatar
Senior Member with 1,962 posts.
 
Join Date: Aug 2002
Location: Back East,Way Back East
14-Jun-2006, 04:18 AM #3
With Knoppix, you should be able to use netcardconfig. Just type sudo netcardconfig from a command prompt.
Or...
Drill down through the Knoppix program menus; it should be under Network/ Internet> Network card configuration.
SweetLou's Avatar
Junior Member with 10 posts.
 
Join Date: Oct 2004
Experience: Intermediate
14-Jun-2006, 11:48 PM #4
Just wondering why you want to back up everything to restore your system? I mean, why not just use Knoppix to fix your MBR?
lynch's Avatar
Senior Member with 1,962 posts.
 
Join Date: Aug 2002
Location: Back East,Way Back East
15-Jun-2006, 04:22 AM #5
Quote:
Originally Posted by SweetLou
Just wondering why you want to back up everything to restore your system? I mean, why not just use Knoppix to fix your MBR?
sudo install-mbr /dev/hda
Change hda to appropriate drive.
klam's Avatar
Senior Member with 181 posts.
 
Join Date: Apr 2006
Experience: Advanced
16-Jun-2006, 07:45 PM #6
Quote:
Originally Posted by SweetLou
Just wondering why you want to back up everything to restore your system? I mean, why not just use Knoppix to fix your MBR?
what? well I didn't know it was possible from a knoppix live cd!

Quote:
sudo install-mbr /dev/hda
Change hda to appropriate drive.
Does it matter that the actual OS installed there is Windows and not Linux? working like this:

sudo install-mbr /dev/c


Also, lynch thanks a lot. I did see a lot of "sudo netcardconfig" but I wasn't able to use it well I admit my level in *nix systems are almost non-existent... say, if I have my computer on DHCP and I boot it from knoppix live cd, how would I change it for a static ip, say 190.23.65.34
__________________
"the only refuge from the damnation of the panta rei, and she guessed it was the Pendulum’s business, not hers"

Last edited by klam : 16-Jun-2006 07:54 PM.
lynch's Avatar
Senior Member with 1,962 posts.
 
Join Date: Aug 2002
Location: Back East,Way Back East
16-Jun-2006, 08:43 PM #7
You're using a Linux program so "/dev / c", a windows name, means nothing to it. If you have one hard drive on the primary master controller then it /dev/hda ; hence , sudo install-mbr /dev/hda.
You use netcardconfig to choose either static or dhcp. The command syntax to do it manually is ifconfig eth0 <ipaddress>.
For adding a default gateway, type route add default gw <ipaddress>
To add dns servers, edit the /etc/resolv.conf file as root:
Code:
nameserver <dns_server_address>
Like nameserver 65.76.89.123
__________________
seldom right,but never in doubt...
Here's a few links I find helpful:
Intro to Linux:A Hands-on Guide
USALUG
A little Linux help
OpenSUSE help+
Bash Commands
klam's Avatar
Senior Member with 181 posts.
 
Join Date: Apr 2006
Experience: Advanced
17-Jun-2006, 04:05 PM #8
Excellent, thanks a lot
Closed Thread Bookmark and Share

THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.

Smart Search

Find your solution!



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
WELCOME TO TECH SUPPORT GUY! Are you looking for the solution to your computer problem? Join our site today to ask your question -- for free! Our site is run completely by volunteers who want to help you solve your computer problems. See our Welcome Guide to get started.

Thread Tools


You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -5. The time now is 04:56 AM.
Copyright © 1996 - 2009 TechGuy, Inc. All rights reserved.
Powered by vBulletin, Copyright © 2000 - 2009, Jelsoft Enterprises Ltd.
Powered by Cermak Technologies, Inc.