LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 11-17-2003, 01:47 PM   #1
Psykoral
LQ Newbie
 
Registered: Jun 2003
Distribution: Mandrake 9.1
Posts: 20

Rep: Reputation: 0
Changing IP, DNS, Gateway, etc...


Using Mandrake 9.1:

Hi. I need to be able to change all of the aforementioned via the shell. Previously, I had the conveienence of doing this in X (that's about the only thing I use X for anymore lol). I know some of the files I need to change, I know some of the services to restart after I make those changes, but I just wanted to be sure and ask for EVERYTHING I need to change.

I'm sending my machine out to a colo soon, and I wanna be SURE it's gonna boot and have internet access without a hitch once it arrives. Unfortunately, I have to manually input all the settings at a location that will not work with the IP/DNS info that my colo gives me, so I have no real way of testing these settings prior t shipping my machine to the colo. I'm sure you can all imagine the frustration of sending a machine somewhere far and not having any access to it if it doesn't gain internet access correctly...Hence, my question...

So does anyone know ALL the files I need to change in order for a machine currently booting via DHCP, that will be booting staticly. I need to manually input DNS, IP, and Gateway...

Let me give you a little background on what I've tried...
Chaning IP: Linuxconf, Networking, Host name and IP network devices...

On Eth0 I have config mode set to Manual, and I've enterd the IP address manually. Then hit accept, and onto "Name server Specification(DNS)".
Changed "IP of name server 1 and 2" and have the box checked for "DNS is required for normal operation". Under "Routing and Gateways" I have the "Default Gateway" set to the IP of the gateway server... should I check the "Enable routing box"?

I restart the network, I restart the internet service... but no luck... this is why I always ended up doing it in X

Any help would be awesome!
 
Old 11-17-2003, 03:48 PM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
I don't understand...Is it the IP dynamic (DHCP) or static? It looks it's static...In such case
ifconfig eth0 IPaddress
route del default
route add default gw gatewayIP
Then you need to edit /etc/resolv.conf to make it look this way:
nameserver primaryDNS
nameserver secondaryDNS
 
Old 11-18-2003, 10:32 AM   #3
Psykoral
LQ Newbie
 
Registered: Jun 2003
Distribution: Mandrake 9.1
Posts: 20

Original Poster
Rep: Reputation: 0
As of right now, the setup I have is for Dynamic... It will be moving to a location that has a static IP, which is why I wanted to make sure to make all the changes nessisary to go from DHCP to a Static IP.

Thanks for your help! I'll have to try those commands/settings and hopefully take my box somewhere that has a static IP I can try it on before I send it out.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
DNS Blocked by gateway! Samhein Linux - Networking 4 11-28-2005 04:46 AM
How to see DNS ,GATEWAY etc.. tkmuthuvel Linux - Networking 1 09-12-2005 02:53 PM
DNS and gateway ThorRune Linux - Hardware 3 08-26-2005 02:19 PM
Changing Gateway IP GraemeK Linux - Networking 2 04-30-2004 10:47 AM
Gateway and DNS jayakrishnan Linux - Networking 5 07-05-2003 02:01 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva

All times are GMT -5. The time now is 10:35 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration