Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I am running Ubuntu 10.10 in VMWare Player under Windows 7. Each time I reboot the node, it gets a different private IP address (I can see this with ifconfig).

I would like my VMWare node to keep the same private IP address after each reboot. I am the only one behind my router.

Is this possible? If yes, how should I proceed? Thanks!

share|improve this question
add comment

3 Answers 3

Your Ubuntu guest is using DHCP to get its IP, set it to use an appropriate static instead. Oh and VMWare is a company not a product, what product are you using, can you update your question and tags.

share|improve this answer
    
Do you have a link or a procedure describing how to 'use an appropriate static ip'? I am not a linux expert. Thanks. –  JVerstry Jan 14 '11 at 11:24
    
Well presumably you have a static IP address already that your network staff have given you right? If so then you need to enter them into your Ubuntu box, if you're a novice then I'd suggest you use the GUI tools, it's under system/network-config if I recall correctly but if you can't find how to set this I suggest you get someone to help you in more than just this task. –  Chopper3 Jan 14 '11 at 11:51
add comment

if you have multiple VMs running parallel, keep in mind the VMnet DHCP server might pass out the ip address you select. So stay under .127 (see here : VMWare Description for host IP-configuration )

Also - remember to set the route to the gateway for internet access. on the commandline, that can be done with

route add default gw

share|improve this answer
add comment

I have found this procedure following Chopper3's suggestion. It seems to work. I have skipped the ‘name server xxx.xxx.xxx.xxx update' step. After rebooting the node, ifconfig displays the configured private static IP address.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.