How to configure the Internet on Linux

How to configure the Internet on Linux

Having installed itself on the Linux OS computer, you will face a question of connection to the Internet sooner or later. Setup of the Internet in Linux differs from setup in Windows. So forget the usual menu with options of the choice and hints, and follow instructions.

Instruction

1. Open the console and write ifconfig.

2. If there is an error - write su, enter the password of the chief manager and again write ifconfig. This command - will show information on the network connections connected at present and extent of setup of their parameters. Then it is necessary to take the settings received from your Internet service provider.

3. Now the most important to configure the Internet on Linux:
- open the file of the settings sudo gedit/etc/network/interfaces, gedit - it is the used editor;

- in this file enter settings of the Internet. If you have a static IP address, write on a template:
auto eth0 – instant loading of the network interface;

iface eth0 inet static – prevents capture of others IP;

address---.---.---.-your IP;

netmask---.---.---.-here you enter a mask;

broadcast---.---.---.---you leave this line without changes or do not write at all;

hostname myname – enter your network name in this line;

gateway---.---.---.-here enter the gateway of your Internet service provider.

4. When you have no settings of the Internet or the IP address is static, the following template:
auto eth0 – instant loading of the network interface;

iface eth0 inet dhcp – allows to receive IP automatically.

5. Save changes in settings.

6. Reboot the Internet.

7. Prescribe DNS for what enter:
sudo/etc/resolv.conf – this command will open the file with the DNS servers.

nameserver---.---.---.-here enter DNS of the Internet service provider

nameserver---.---.---.-enter any alternative DNS.

8. Reboot the Internet.

9. Check availability of the Internet – enter ping ya.ru.
On it setup is ended, it turns out that to configure the Internet on Linux not so already and difficult.

Author: «MirrorInfo» Dream Team


Print