Score:0

Can't SSH from host to VM through static IP

gb flag

I'm setting a cluster of servers with ubuntu 16.4 VM's to learn about it. As suggested by some tutorials, I set a static ip for each machine besides DHCP one (2 network interfaces). To achieve that I edited /etc/network/interfaces and added the following config:

# The secondary network interface
auto enp0s8
iface enp0s8 inet static
address 192.168.0.210
netmask 255.255.255.0
network 192.168.0.0
broadcast 192.168.0.255

I can ping both ips just fine between each VM and I can also connect them via SSH (installed openSSH in each machine). From the host (windows 10) I can only ping and ssh to DHCP ips but static ips does not work from host. Any orientation on how to succesfully connect with static ip from host will be appreciated.

ng flag
First, I'd advice you to use a modern Ubuntu. They switched to Netplan instead of `/etc/network/interfaces`, and otherwise you'll have to re-learn everything. Second, the answer would be somewhat broad. You should read up on routing, routing tables, subnets, gateways, etc. The reason your Windows 10 host can't reach `192.168.0.0/24`, is because it has no network presence there. But the _real_ answer to your problem depends on the use case of that second IP. If it's only for node-to-node traffic, you don't need to reach it from elsewhere.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.