Portal Home > Knowledgebase > Articles Database > How to change dhcp to static IP with 1and1.com?


How to change dhcp to static IP with 1and1.com?




Posted by illimunati, 03-17-2012, 06:10 AM
I have Ubuntu root server with 1and1.com and I need to set the static IP info for it. Unfortunately whatever I try fails. I am hitting exactly the same issue with this guy: howtoforge.com/forums/showthread.php?t=54042, however instructions on the second post there did not help me. I also tried this solution anotherwayuk.wordpress.com/2007/05/05/howto-11-root-server-networkdhcp-issues-fixing-network-connectivity with no joy. And if what 1and1 says on faq.1and1.com/dedicated_servers/root_server/other_questions/2.html true, then how on earch I could set static IP for my server?

Posted by relichost, 03-17-2012, 07:12 AM
Hi Are you saying that you get a different IP if you reboot your dedicated server ? The norm is to get a dedicated IP with a dedicated Server. Also as you bought the server via 1and1 why not contact there support and ask them, after all that what you pay for. Thanks Andrew

Posted by twikamltd, 03-17-2012, 07:15 AM
Never tried anything to do with 1&1, but generally speaking, get a DHCP lease, make a note of all the details, IP, gateway, subnet etc - make the static details EXACTLY the same, and you should be ok, unless they've got something weird going on.

Posted by illimunati, 03-17-2012, 07:23 AM
Tried that. Unfortunately doesn't work. I am not the only one of 1and1 customers in the same situation. This guy also had this problem lists.debian.org/debian-user/2006/01/msg03299.html unfortunately follow up recommendation to him also didn't work for me.

Posted by illimunati, 03-17-2012, 07:44 AM
No, the server always get the same IP. However I need to set static IP in /etc/network/interfaces. Currently I have: but I need something like: Unfortunately, whatever I put for netmask, network, gateway, broadcast, nothing works. And, of course, I first tried to contact 1and1.com customer support, however they sent me an e-mail:

Posted by srider, 03-17-2012, 08:17 AM
Double check that netmask,

Posted by DiegoRBaquero, 03-17-2012, 09:41 AM
The IP is static... The way it's assigned by their router is DHCP, just get the details from ifconfig and done

Posted by Bernardoo, 03-17-2012, 10:33 AM
Doesn't their panel have something that does that automatically i find 1and1 panel to be very complete i could be wrong though.

Posted by Donder, 03-17-2012, 10:35 AM
just put a space somewhere in the url, like this http:/ /www.example.com/page.htm The link isn't clickable but it won't be blocked, and people can cut, paste, and fix to make it work.

Posted by UK Servers, 03-17-2012, 10:45 AM
Why do you need to set it to be static? What does ifconfig eth0 actually show when set to DHCP?

Posted by illimunati, 03-17-2012, 03:44 PM
I had to re-image my box from Ubuntu to CentOS hoping that will ease setting up static IP for the server, but the matter in essense is the same and unfortunately still persists. Following this guide http://www.networkinghowtos.com/howt...ress-in-centos gave me no joy. Unfortunately, it is not possible to set static IP for the server through 1and1 control panel. Thanks for the suggestion, but that limitation was only until a new user has 5 posts and I already have. New users could not be that intuitive and inventive. Good question, thanks. Well I would happily live with DHCP, but I really don't like Pleask, which is provided by 1and1 and wanted to install Virtualmin, for which static IP is recommended as reads on http://www.virtualmin.com/documentation/dns/faq: There are workarounds for Virtualmin to be able to work with DHCP, however lot's of users find it quite problematic as we can see on http://www.virtualmin.com/node/8690, http://www.virtualmin.com/node/19960, http://www.virtualmin.com/node/18473 and I use Virtualmin on couple of other servers with static IPs and it works very smoothly, so I believe that I could put little bit more effort and with the help of WHT community to get 1and1 server to go static. ifconfig eth0 currently gives (IP changed):

Posted by Coolraul, 03-17-2012, 04:00 PM
The post restrictions are there for a reason. Don't try to bypass the rules with fluff posts. In terms of your problem, why did you take a server with Plesk if you don't like it? Does 1and1 provision IP's this way (via dhcp) to their servers? Ask their support if you are allowed to use a static IP at all? I have personally never seen providers provision servers with dhcp but anything is possible.

Posted by illimunati, 03-17-2012, 04:15 PM
I don't see I said anywhere I took a server with Plesk. Your post is not very much helpful, so you could spare your time. But if others wonder yes 1and1 provides DHCP to all their dedicated servers. I have quoted reply from their support above, which shows they don't mind, but they don't provide support and it is completely up to users to configure static IP.

Posted by Coolraul, 03-17-2012, 04:22 PM
Sorry I must have misunderstood this: "Good question, thanks. Well I would happily live with DHCP, but I really don't like Pleask, which is provided by 1and1 and wanted to install Virtualmin, for which static IP is recommended as reads on http://www.virtualmin.com/documentation/dns/faq:" I thought Pleask was misspelled Plesk. What did you mean there? 1and1's response was so generic including that link that I didn't take it as them saying "you can do static ip's". I was suggesting that if their method of assigning and tracking ip's are via dhcp with long leases then it is possible they don't really allow it. If you are sure they do.. no worries carry on but just don't post fluff posts as that is against the rules. I let your post with the url's stay that I should have removed as I understand you just want to get some help.

Posted by illimunati, 03-17-2012, 10:01 PM
I had telephone conversation with 1and1 support and they confirmed they are ok with changing servers' IPs to static ones, they just can't consult how to do that.

Posted by net, 03-17-2012, 10:43 PM
Moved > Hosting Security and Technology.



Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read
Bandwidth meter (Views: 775)
CatsNine- Monty Down (Views: 876)


Language: