Instruction
1
Open the console and write ifconfig.
2
If you see a mistake write su, enter the password of the main administrator again and write ifconfig. This command will show information about the network connections currently connected and the degree of tuning of their parameters. Then you need to take the settings provided by your Internet provider.
3
Now the most important thing to configure Internet on Linux:
- open the configuration file sudo gedit /etc/network/interfaces (gedit is the editor used;
in this file, enter the Internet settings. If you have a static IP address, then write on the template:
auto eth0 – instant download network interface;
iface eth0 inet static – prevents the hijacking of IP;
address ---.---.---.- your IP;
netmask ---.---.---.- then enter the mask;
broadcast ---.---.---.--- this line leave without changes or do not write;
the hostname myname – enter your network name in this line;
gateway ---.---.---.- here enter the gateway of your ISP.
- open the configuration file sudo gedit /etc/network/interfaces (gedit is the editor used;
in this file, enter the Internet settings. If you have a static IP address, then write on the template:
auto eth0 – instant download network interface;
iface eth0 inet static – prevents the hijacking of IP;
address ---.---.---.- your IP;
netmask ---.---.---.- then enter the mask;
broadcast ---.---.---.--- this line leave without changes or do not write;
the hostname myname – enter your network name in this line;
gateway ---.---.---.- here enter the gateway of your ISP.
4
In that case, when you have no Internet settings or IP address is static, the following template:
auto eth0 – instant download network interface;
iface eth0 inet dhcp allows to obtain the IP automatically.
auto eth0 – instant download network interface;
iface eth0 inet dhcp allows to obtain the IP automatically.
5
Save the changes to the settings.
6
Restart the Internet.
7
Specify the DNS, enter:
sudo /etc/resolv.conf – this command will open a file with the DNS servers.
nameserver ---.---.---.- here enter the DNS of your ISP
nameserver ---.---.---.- enter any alternate DNS.
sudo /etc/resolv.conf – this command will open a file with the DNS servers.
nameserver ---.---.---.- here enter the DNS of your ISP
nameserver ---.---.---.- enter any alternate DNS.
8
Restart the Internet.
9
Check the availability of the Internet – type ping ya.ru.
The setup is over, it turns out that to configure Internet on Linux is not so difficult.
The setup is over, it turns out that to configure Internet on Linux is not so difficult.