No of visitors who read this post: 295
Category: Linux
Type: Question
Author: Derek fraser
No votes yet

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.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

# (Solution Accepted)

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

  • A primary partition
  • Swap partition
  • Zero or more primary/logical partitions

Dual booting Windows and Ubuntu

  • Resizing existing the Windows partition.
  • Creating the swap partition.
  • Creating the root partition.
  • Creating a separate home partition.

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 dhcp

To 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.xxx

Address, 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

    nameserver xxx.xxx.xxx.xxx
    nameserver xxx.xxx.xxx.xxx
    nameserver xxx.xxx.xxx.xxx

3. To set your internal interface wired.

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 more

# (Solution Accepted)

I 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