LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-28-2009, 08:54 AM   #1
odessy
LQ Newbie
 
Registered: Aug 2009
Posts: 4

Rep: Reputation: 0
Question Problem on assigning static ip address.. RHEL 5 as guest OS on Virtualbox


Hi folks,

I'm just new to Linux and I need some help.

I setup a small network at home that comprise of:

1. Desktop
OS = Windows XP
IP = 192.168.1.101
Using Virtualbox, I installed RHEL 5 as guest OS.
Virtualbox host-only Network: IP=192.168.56.1

2. Laptop
OS = Windows XP
IP = 192.168.1.102
Using Virtualbox, I also installed RHEL 5 as guest OS.
Virtualbox host-only Network: IP=192.168.56.1

The router's address is 192.168.1.254 and is connected to the internet.

With those settings, everything is working fine. The RHEL5-Desktop can connect to the internet, and to 192.168.1.101(Desktop XP) and 192.168.1.102(Laptop XP) through smbclient. The RHEL5-Laptop can also do the same. Both RHEL5-Desktop and RHEL5-Laptop are using DHCP.

The problem is I want to connect RHEL5-Desktop to RHEL5-Laptop through ssh. I tried assigning static IP to either RHEL5-Desktop or RHEL5-Laptop with the router's address as default gateway and the connection became pretty messed-up. I tried other things like leaving the default gateway blank or changing the Virtualbox host-only to 192.168.56.2 but still no luck.

I hope somebody can give me a detailed instruction on how to do this correctly. I'd really appreciate it.
 
Old 08-28-2009, 09:27 AM   #2
TBC Cosmo
Member
 
Registered: Feb 2004
Location: NY
Distribution: Fedora 10, CentOS 5.4, Debian 5 Sparc64
Posts: 356

Rep: Reputation: 43
Change the virt box net configuration such that the guests are on bridged adapters and have (DHCP) addresses on the 192.168.1.0/24 network. Without the bridged network, even though the guests appear to be in the same subnet, they are not really on the same physical network segment. And since the router's interface that you want to use as their default gateway is on a different subnet, that won't work either.
 
Old 08-28-2009, 09:31 AM   #3
odessy
LQ Newbie
 
Registered: Aug 2009
Posts: 4

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by TBC Cosmo View Post
Change the virt box net configuration such that the guests are on bridged adapters and have (DHCP) addresses on the 192.168.1.0/24 network. Without the bridged network, even though the guests appear to be in the same subnet, they are not really on the same physical network segment. And since the router's interface that you want to use as their default gateway is on a different subnet, that won't work either.
Thanks for the reply.. I'll get back as soon as I'm finished trying that solution. Thanks again
 
Old 08-28-2009, 11:22 AM   #4
odessy
LQ Newbie
 
Registered: Aug 2009
Posts: 4

Original Poster
Rep: Reputation: 0
Thumbs up

Quote:
Originally Posted by TBC Cosmo View Post
Change the virt box net configuration such that the guests are on bridged adapters and have (DHCP) addresses on the 192.168.1.0/24 network. Without the bridged network, even though the guests appear to be in the same subnet, they are not really on the same physical network segment. And since the router's interface that you want to use as their default gateway is on a different subnet, that won't work either.
That worked perfectly fine. Thanks for lending a hand. I have another question though, the Virtualbox host-only network, what is that for? Please explain to me in details cause I'm just a newbie. Thank you so much!
 
Old 08-28-2009, 11:51 AM   #5
TBC Cosmo
Member
 
Registered: Feb 2004
Location: NY
Distribution: Fedora 10, CentOS 5.4, Debian 5 Sparc64
Posts: 356

Rep: Reputation: 43
This has a great explanation of why the host only network exists.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
problem installing guest additions in Fedora 11 guest (virtualbox) mia_tech Linux - Desktop 9 07-28-2009 12:15 AM
Virtualbox Gentoo Guest - Can't get guest additions working MALDATA Gentoo 3 06-18-2009 11:43 PM
Problem accessing dirs with VirtualBox and guest additions crisostomo_enrico Solaris / OpenSolaris 6 03-24-2008 05:38 AM
Assigning a static IP address hangs system??? dmangal Linux - Networking 2 05-16-2007 04:12 PM
Assigning Static IP Problem canuck_barlow Linux - Newbie 5 01-06-2006 02:54 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:06 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration