How to assign Debian running on virtual box a static ip?
Hi I would like to assign a static IP to Debian running on my virtual box. How should I do it? What needs to be written in /etc/network/interfaces. Something extra? Thx
|
Hi,
If you mean do you need to set up anything extra for a static IP in Debian on a VPS, not within debian itself. You may have to setup a gateway on the VPS hosting software or main host itself depending on the type of networking that is going on and if the VPS software is set to automatically forward all traffic straight out on the main network feed or into a virtual network. If you need a guide for setting up Debian Static IPs themselves, I found one on a quick google search here. |
Quote:
Thank you, but what I want to do is create a virtual network on virtual box. debian will have as a server static ip. than using samba ill be able to connect to it windows host as well running on virtual host run on it bind and apache as on real server with static ip . I dont know how to do that in virtual box so if you can please help with that. Thx |
Setting it as usually operater in not ok? System->administation->Network..
But using FC not Debian. : ) |
Setting a static in Debian is easy. Here is an example stanza for /etc/network/interfaces
Code:
auto eth0 Evo2. |
Quote:
To set it up in VirtualBox I go File>Preferences>Network>VirtualBox Host Only Adapter then Edit Netowk and in Host Only Network Detail I set IPv4 to 192.168.2.1 and DHCP disable and I have to enable on specific virutal host network settings as well. Thats it. Right? |
All times are GMT -5. The time now is 02:55 PM. |