Linux Linux help

Linux Networking

1. How do I change my network setting in Linux?

Linux has some network configuration in the Control Center, Network settings. Here you can configure DHCP or static IP address, DNS addresses, hostname (see /etc/hostname) and list of hosts (see /etc/hosts).

Network settings


2. How do I view or change network card settings?

Unfortunately, those options are not visible here. You can install new network drivers via Software Manager. To view which network card you have open a Terminal and type lspci and it will display something like:
00:03.0 Ethernet controller: Intel Corporation 82450EM Gigabit Ethernet Controller.
To view detailed settings, for the ethernet device (eth0), type ifconfig eth0 which will display IPv4 and IPv6 addresses, hardware address, broadcast address, netmask, metric and transmission statistics.
You can view or change your network speed and settings using the mii-tool or ethtool commands e.g. mii-tool -v eth0. The network settings are stored in the /etc/network/interfaces file.

3. What is Internet Protocol Version 6 (TCP/IP)?

IPv6 was introduced first with Linux kernel 2.1.8 in 1996 to expand on IPv4 to get past the limitation of a maximum of 4 Billion IP addresses using the old 32 bit system. IPv6 now uses a much longer IP address using Hexadecimal numbers. Linux will automatically assign an IPv6 address when you configure your normal IPv4 address. Here is an example of an IPv6 address:
fe80::4490:9230:7194:a69b. You can view the IPv6 address using the ifconfig command.

4. How do I enable or configure the firewall?

Linux Mint has the ufw, a netfilter firewall installed, which can block some incoming and some outgoing connections. It is configured from the command line or from a graphical front end such as gufw (which will need to be installed seperately). Use the rules to allow or block specific programs or ports in the machine, see the Secure PC page.


5. How do I change the Computer or Workgroup name?

You can change the computer or hostname via Control Centre, Network Settings. See also the /etc/hostname file. You can also set its primary domain suffix in the 'Domain name' box.


The workgroup or Windows domain name can be configured in the Shared Folders, General Properties page. By default, it is set to WORKGROUP.
If using the command line, workgroup and WINS configuration can be found in the /etc/samba/smb.conf file.


6. How do I share a folder for other computers to access them?

To share a folder, open the Control Centre, Shared Folders, click add and enter path of the folder to share, the share method (ususally SMB), name of the share and whether it is read only or not.

Share folder

7. Can I join my Linux machine to a Windows NT domain or Active Directory domain?

Yes, samba and especially Samba4 can be used to make use of Windows' Active Directory domains so that you can use common usernames and passwords with your windows systems.
You will need to do a few steps before you can join your Linux machines to the domain, see this article on the steps to take: Samba and Active Directory.

8. I use a proxy server, to access the updates over the internet, how do I configure my proxy settings?

Proxy settings for network are stored in /etc/environment file and can be edited via the Terminal and enter sudo gedit /etc/environment and add these lines (modified to match your proxy):


If using apt as well, then you also need to create a new file at /etc/apt/apt.conf.d/95proxies and add the following lines (modified to match your proxy):

Acquire::http::proxy "";
Acquire::ftp::proxy "";
Acquire::https::proxy "";

If you are using wget then configure proxy settings in /etc/wetrc (or .wgetrc in user home folder):

If using curl command, the configure proxy settings in .curlrc in user's home folder: