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 :p Any help would be awesome! |
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 |
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. :) |
All times are GMT -5. The time now is 05:16 PM. |