For what I've looked up, this is not a duplicate. I need to connect a number of Ubuntu 16.04 machines together using a switch. I don't want them to be connected to the Internet, so I have no router or ISP info. I have set manual IPs but don't know what to put for dns and gateway. Also, I don't know the switch IP.
These are the IP's:
192.168.2.1,
192.168.2.2,
and so on
the mask:
255.255.255.0 for all
the DNS: ?
the gateway: ?
Another problem is I don't know if two interfaces are for two network cards or that one network card can have multiple interfaces too. Please explain that as well.
Also, The interface I'm trying to tweak (in /etc/network/interfaces
) seems to be inactive for it doesnt show up when doing ipconfig
.
Also, could you please specify what files should I edit and how they should be like after the configuration (cause Ubuntu edits them itself sometimes)?
Currently when I ping the other machines from one I get Destination Host Unreachable.
Thanks
Edit:
/etc/network/interfaces
file now:
auto lo
iface lo inet loopback
it used to be like:
auto lo
iface lo inet loopback
iface enp6s0 inet static
address 192.168.2.2
netmask 255.255.255.0
gateway 192.168.2.1 auto enp6s0