How can Linux computer allocate a single internet connection with multiple machines? Can it be made a router? If so how can I do it? And when installing Linux, how many partitions needed to set it correctly? What is the minimum and maximum numbers of partitions can be made? Thank you.
- Login or Signup Now to post comments

Ubuntu Partitioning
Single boot - Ubuntu only
Partitioning does not occur until you finalize the installation, so you can decide to abort the installation at the very last minute if you require. After finalizing the installation, however, the hard disk will be re-partitioned and all existing data stored on it will be lost.
Or
Dual booting Windows and Ubuntu
See more
You can use Ubuntu to solve the problem. Create your pc like router you need two network interfaces. One use for external interface and another for local interface. Now open your terminal and follow the instructions.
1. To set your external interface DHCP(Broadband)
Open "/etc/network/interfaces" by "sudo gedit /etc/network/interfaces" command. Delete everything and paste in what is below.
# Set up the local loopback interface auto lo iface lo inet loopback # The external interface auto eth0 iface eth0 inet dhcpTo set your external interface static IP
Open "/etc/network/interfaces" by "sudo gedit /etc/network/interfaces" command. Delete everything and paste in what is below.
# Set up the local loopback interface auto lo iface lo inet loopback # The external interface Auto eth0 Face eth0 inet static address xxx.xxx.xxx.xxx netmask xxx.xxx.xxx.xxx gateway xxx.xxx.xxx.xxxAddress, Netmask and gateway provided by your ISP.
2. Now setup your DNS which provided by your ISP it may one to many. Open "/etc/resolv.conf " by "sudo gedit /etc/resolv.conf" command
Open "/etc/network/interfaces" by "sudo gedit /etc/network/interfaces" command. Add everything and paste in what is below.
# The internal wired network auto eth1 iface eth1 inet static address 192.168.1.1 network 192.168.1.0 netmask 255.255.255.0 broadcast 192.168.1.255 See moreI guess by using a computer that has Linux as the router, you mean using it as a server if I am not wrong. Because I have not heard of an incident where you can use a computer as a router. If you mean a server, then that is possible, and you can connect as many computers depending on the level of your network.
As for the partitions you can allocate when installing Linux that will directly depend on the hard disk space that you have on your system. If the space is too small then you might be limited to few partitions, even as few as one partition. But if the space is large then you can have many partitions depending on the space you want allocated for each partition which should not be too small.
Regards
Thompson Locker