Bridged Nic - how to set up static IP?

This is for discussing general topics about how to use VirtualBox.
Post Reply
sternfan
Posts: 49
Joined: 15. Jul 2008, 15:06

Bridged Nic - how to set up static IP?

Post by sternfan »

Hi all,

I have a setup where the guest must get the static IP of 192.168.1.10 (for instance). On the host I setup one of the NICs for this address, then start the guest. So on the guest, I make sure it is set to BRIDGE and then within the guest itself I put in the static IP of 192.168.1.10.

(edited)
I re-read my above post and thought I could clarify it a bit...
If I have a guest that I want to get a static IP, how do I set it up?
- HOST system - is this set to the static IP or dhcp?
- GUEST - is this set to the static IP or DHCP?

Or should they both be the same IP? Or different IPs such as host = 192.168.5.11 and the guest as 192.168.5.10?

Thanks for any and all help,
Rob
fixedwheel
Volunteer
Posts: 1699
Joined: 13. Sep 2008, 02:18

Re: Bridged Nic - how to set up static IP?

Post by fixedwheel »

sternfan wrote:Or different IPs such as host = 192.168.5.11 and the guest as 192.168.5.10?
yes, do just as they were different real machines
sternfan
Posts: 49
Joined: 15. Jul 2008, 15:06

Re: Bridged Nic - how to set up static IP?

Post by sternfan »

Thanks a bunch.

Rob
tubularbox
Posts: 11
Joined: 13. Jul 2011, 17:54
Primary OS: Linux other
VBox Version: OSE Fedora
Guest OSses: Ubuntu 11.04 Server

Re: Bridged Nic - how to set up static IP?

Post by tubularbox »

Hello,
I'm using a CentOS 5.6 host, with two virtual machines running (Ubuntu 11.04 Server -text mode only-) on VirtualBox. I dealed with the guests to go out using NAT, works fine, but when it comes to the bridged mode... i can't even see the eth0 interface in the guest by ifconfig (only the loopback interface)...
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Re: Bridged Nic - how to set up static IP?

Post by Sasquatch »

Create a new topic for that. It's not the same subject as this topic. Read the Forum Posting Guide too before creating the topic so you give enough information, or we won't be able to help you.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
Post Reply