I recently installed CentOS 7 on Virtual Box with a minimal installation, and I have enabled the network interface in order to show my IP and access to it through SSH when connected by an Ethernet Cable.

Problem: I can't access to it when connected to wireless network.

If I execute ip addr show when connected through Wireless, I get:


How to set an IP for me to access through SSH when connected through WiFi?

  • 1
    Will the IP addresses of wired and wireless networks be on the same network ? In other words, is this a home setup with one wireless router or is it a workplace/school network, which is heavily firewalled between wireless and wired networks along with many other security measures ? – MelBurslan May 17 '16 at 15:09
  • yes... the os is installed on in the company's laptop at work – Cris Cole May 17 '16 at 15:13
  • 1
    Are both wired and wireless networks use DHCP or do you have static IP addresses ? – MelBurslan May 17 '16 at 15:16
  • I believe both with DHCP – Cris Cole May 17 '16 at 15:33
  • 1
    Oh, I did not notice that this installation was on Virtual Box. What is your host OS ? how did you forward network connections from host to the guest OS ? – MelBurslan May 17 '16 at 16:00

Add network adapter host only in your VM, set an ip within the range the network adapter host only your notebook.

That way you will be able to access your vm via ssh for any network that you are connected, you must use ip host only to connect via ssh.

A post with more details http://christophermaier.name/blog/2010/09/01/host-only-networking-with-virtualbox

  • Thank you for your answer. How can I add a network adapter host only? I'm not sure of what you mean... – Cris Cole May 23 '16 at 12:51
  • @CrisBenois adapter hostonly is like an internal network between your notebook and a virtual machine, take a look at this post on how to add this hostonly network in your virtualbox pixelstech.net/article/… – Caiota May 23 '16 at 13:41

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.