[SOLVED] Problem on assigning static ip address.. RHEL 5 as guest OS on Virtualbox
Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
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
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!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.