Home / the Internet / Connectivity / How to configure the Internet on Linux

How to configure the Internet on Linux

/
62 Views

How to configure the Internet on Linux</a>

By installing Linux on your computer, you will sooner or later come across the issue of connecting to the Internet.

Internet setup in Linux is different from the setting in Windows.

So forget the usual menu with options and tips, and follow the directions.

Instructions

    1

Open the console and type ifconfig.

    2

If an error occurs, type su, enterThe administrator's password and write again ifconfig. This command - will show information about the network connections currently connected and the degree of configuration of their parameters. Then you need to take the settings received from your Internet provider.

    3

Now the most important thing is to configure the Internet on Linux:
- open the settings file sudo gedit / etc / network / interfaces, gedit? This is the editor-

- In this file enter the Internet settings. In the event that you have a static IP address, then write the following template:
Auto eth0? Instant download of network interface-

Iface eth0 inet static? Prevents the capture of someone else's IP-

Address -.-.-.- your IP-

Netmask -.-.-.- then enter the mask-

Broadcast -.-.-.- leave this line unchanged or do not write at all-

Hostname myname? Enter your network name in this line-

Gateway -.-.-.- then enter the gateway of your ISP.

    4

In the event that you do not have Internet settings or the IP address is static, the following template:
Auto eth0? Instant download of network interface-

Iface eth0 inet dhcp? Allows you to receive IP automatically.

    5

Save the changes in the settings.

    6

Restart the Internet.

    7

Write DNS, for what enter:
Sudo /etc/resolv.conf? This command will open the file with the DNS servers.

Nameserver -.-.-.- here enter the DNS of your Internet provider

Nameserver -.-.-.- enter any alternate DNS.

    8

Restart the Internet.

    9

Check the availability of the Internet? Enter ping ya.ru.
At this setting is over, it turns out that setting up the Internet on Linux is not so difficult.

How to configure the Internet on Linux Was last modified: June 20th, 2017 By Noofiijf
It is main inner container footer text