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 drivers dvd email error excel firefox hard drive hardware hijackthis internet keyboard laptop malware monitor motherboard network networking outlook problem processor 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 mandrake linux

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

Closed Thread
 
Thread Tools
Fyzbo's Avatar
Senior Member with 1,877 posts.
 
Join Date: Feb 2002
Location: North Carolina, USA
Experience: Programming-Advanced|EVER
14-Sep-2004, 01:49 PM #1
Static IP mandrake linux
I'm in charge of a linux box running mandrake linux in my school's computer science lab. After installing mandrake the ip set up automatically as DHCP with an IP ending in 130. I was asked to change the IP to everything the same only ending in 17. I was told that it should support a static IP, but I can't get it to work. Can anyone possibly list the steps I should take to make this change?

Thank you in advance.
5mi11er's Avatar
Senior Member with 521 posts.
 
Join Date: Aug 2004
Experience: Networking Professional
14-Sep-2004, 07:05 PM #2
Well, without further information, we're going to be shooting in the dark...

But, assuming you've been able to use the ifconfig command correctly, and have the ip address, and mask set correctly, more than likely you're default gateway entry is now missing.

Something along the lines of:
Code:
route add default gw 1.2.3.4
where 1.2.3.4 is replaced by the address of the router's interface that is serving that network, should do the trick.

Hope this helps,
-Scott
tsunam's Avatar
Senior Member with 1,246 posts.
 
Join Date: Sep 2003
Experience: Linux~su
14-Sep-2004, 09:12 PM #3
you should have a /etc/conf.d/net (or something similar, its what your /etc/init.d/net.eth0 calls from to boot up eth0) section. if you edit that it'll allow you to change the gateway, dhcp to static etc.
dago's Avatar
Member with 55 posts.
 
Join Date: Sep 2004
Location: Brazil
Experience: Intermediate
15-Sep-2004, 02:34 AM #4
Fyzbo,
I don't know Mandrake, but assuming the thing is RedHat based, I think you should have the folder

/etc/sysconfig/network/
or
/etc/sysconfig/network-scripts/

Look for file ifcfg-eth0 and take a look on it
As root change
IPADDR=nnn.nnn.nnn.17

If you need gateway, just place
GATEWAY=nnn.nnn.nnn.nnn

Then execute (root)
ifdown eth0
ifup eth0

Hope it helps.
Fyzbo's Avatar
Senior Member with 1,877 posts.
 
Join Date: Feb 2002
Location: North Carolina, USA
Experience: Programming-Advanced|EVER
29-Sep-2004, 12:43 PM #5
Alright so I was able to change the IP address. Now the computer is on the campus network, other computers can ssh/telnet to it without a problem. However when on the linux box itself can't search the net. I open mozilla and it can't get to any webpages. Any thoughts on this?
dago's Avatar
Member with 55 posts.
 
Join Date: Sep 2004
Location: Brazil
Experience: Intermediate
29-Sep-2004, 07:48 PM #6
probably DNS problem.
Do you know DNS server IP address?

If so, execute
Quote:
echo "nameserver AA.BB.CC.DD" >> /etc/resolv.conf
but change AA.BB.CC.DD for that IP
tsunam's Avatar
Senior Member with 1,246 posts.
 
Join Date: Sep 2003
Experience: Linux~su
29-Sep-2004, 08:38 PM #7
also do a route to see where its going on its path to get out. if you don't have anything under it then its a dns/gateway issue. you can try doing a route add gw 10.128.1.30 <--whatever the address is that'd probably get you out as well. Its probably not talking with the dhcp server correctly.
__________________
Gentoo Developer, and 64bit os user

"In feeding Mother Nature, you are fed in return" - Tsunam (2005). Concerning water conservation, and raising water tables.
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 02:08 AM.
Copyright © 1996 - 2009 TechGuy, Inc. All rights reserved.
Powered by vBulletin, Copyright © 2000 - 2009, Jelsoft Enterprises Ltd.
Powered by Cermak Technologies, Inc.