Linux internet connection and partitions

Asked By 0 points N/A Posted on -
qa-featured

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.

SHARE
Best Answer by rasel2100
Best Answer
Best Answer
Answered By 5 points N/A #118107

Linux internet connection and partitions

qa-featured
If your system is a single boot i.e. Ubuntu only, then you can do a primary partition, swap partition, and Zero or more primary/logical partitions. If your system is a dual booting i.e. Ubuntu and Windows, then you can do the following partition, e.g. Resizing existing the Windows partition, creating the root partition, creating the swap partition or creating a separate home partition.
 
You can find further information at this link https://help.ubuntu.com/community/HowtoPartition. See more. 
 
The problem could be solved if your system is running on Ubuntu. Two different network interfaces, i.e. external and local interface are required to create your system like a router.
 
Ubuntu Partitioning is to change the hard drive layout. You can do the partitioning only after installation is completed. When the installation is finalized, the hard disk will automatically do re-partition. The existing data on hard disk will be removed.
 
Please follow these steps to tackle your problem.
1. To set external interface DHCP (Broadband)
Use command ‘ sudo gedit/ etc / network / Interfaces’ to pen ‘/etc / network / interfaces’. Then delete all files in the directory and paste below instead.
# Set up the local loopback interface auto lo iface lo inet loopback # The external interface auto eth0 iface eth0 inet dhcp
 
2. To set external interface static IP
Use command ‘ sudo gedit/ etc / network / Interfaces’ to pen ‘/etc / network / interfaces’. Then delete all files in the directory and paste below instead.
#static addressxxx.xxx.xxx.xxx netmask xxx.xxx.xxx.xxx gateway xxx.xxx.xxx.xxx
Address, Netmask and gateway provided by your ISP#
 
3. To setup DNS which is provided by Internet Service Provider
Use command ‘sudo gedit / etc / resolv.conf’ to open ‘/etc / resolv.conf’
nameserver xx.xx.xx.xx nameserver xx.xx.xx.xx nameserver xx.xx.xx.xx
 
4. To setup internal interface
Use command ‘sudo gedit / etc / n etwork / Interfaces’ to open ‘/etc / network/ interfaces’
Delete all files in the directory and paste 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 
 
You can find further information at this link https://help.ubuntu.com/community/Router. See more.
Answered By 10 points N/A #118108

Linux internet connection and partitions

qa-featured

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

 

Related Questions