0

I am only starting to learn how to use linux but I cannot connect ssh to my virtual linux installed through VMware. I tried pinning 192.168.211.132 from my windows but it shows request timed out. I changed the Internet setting to Bridged but the issue sustains. I also checked that my firewall is inactive. I simply have no idea what is going on here. The Internet of my linux is working fine since I can browse through firefox.

Also I should mention that the ip address of my windows also starts with 192.168.

enter image description here

2
  • on your windows what is your IP ? Commented Jun 6, 2020 at 5:23
  • ipv4 says 192.168.86.1, do they have to be exactly the same?@EchoMike444
    – z.z
    Commented Jun 6, 2020 at 5:33

2 Answers 2

2

As you are a beginner, it would be easier to set the Linux machine to get the IP address from DHCP, then you would not need to worry about setting the IP address until you have learnt some more. You can get the assigned IP address from the Linux machine by opening the terminal (command line interface) and typing “ip address”

Otherwise, put the Linux VM in “bridged” mode for the network interface and if you Windows PC IP address is 192.168.86.1 with a subnet mask of 255.255.255.0 then your Linux VM would have an IP address of 192.168.86.2 with a subnet of 255.255.255.0. Just make sure you check the IP address is available on your network before assigning it to the Linux VM by using the ping command, if you get a response, use another IP as that one is taken by something else!

1
  • So if I want to set a static ip to my linux, it has to be in the bridge mode?
    – z.z
    Commented Jun 8, 2020 at 15:13
1

Your ens33 subnet mask is 255.255.255.0, which means that your Windows machine may be on a different subnet. Your Windows machine would need to have the IP address of 192.168.211.X to be able to ping the Linux VM

3
  • Sorry, I meant to say what I should do in this case. I changed my ip address of my windows to the same as the linux, but that messed up my Internet.
    – z.z
    Commented Jun 6, 2020 at 14:44
  • I tried ifconfig ens33 102.168.86.3 on linux but it still does not work
    – z.z
    Commented Jun 6, 2020 at 15:37
  • Check the following article. danielmiessler.com/study/manually-set-ip-linux You might have to configure gateway IP as well as DNS servers.
    – Stuka
    Commented Jun 7, 2020 at 16:31

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .