How to setup Internet on Debian?

Hi, we need to understand the Internet on the console of Debian, enter in the console under the administrator nano /ect/network/interfaces change the data on the
auto lo
iface lo inet loopback

allow-hotplug eth0
iface eth0 inet static
address write the IP of the network
netmask here netmask
gateway gateway
dns-nameservers two DNS with a space
auto eth0

next, create the file because it is not in the etc resolv.conf
nameserver addresses
nameserver addresses

I enter ifconfig, but returns only lo, no eth0, the cable Internet is connected, where did I go wrong?
July 9th 19 at 13:18
3 answers
July 9th 19 at 13:20
auto eth0 up
salmeterol allow-hotplug
/etc/init.d/networking restart
ifconfig shows local and Internet, but the ping is still unknown host - sydney18 commented on July 9th 19 at 13:23
: the ping to your gateway? Hosts in the Internet by IP address pinouts? - jace.Bogan51 commented on July 9th 19 at 13:26
: p.s. You say "write the IP address of the network" - and it's not an IP network it is necessary to write, and the host address. Perhaps you had in mind, but still different things. - jace.Bogan51 commented on July 9th 19 at 13:29
writes that the network is unavailable if pinguy gateway, but what about IP, it's all true
explain where I made a mistake: introduced
auto eth0
auto lo
iface lo inet loopback

iface eth0 inet static
write the IP address
netmask mask
gateway gateway
dns-nameservers DNS
look at ifconfig for eth0 there is giving and receiving, but lo says the inet addr and 127.0.01 mask 255.0.0.0, no pings IP, writes unreachable, has introduce the Google, it does not know the host that it must be with the LAN and Internet?
there may be a problem with the network, to delve into the BIOS, or all settings on debian - sydney18 commented on July 9th 19 at 13:32
it was, pinging Google, but it does not update via the repository, the system writes a connection error with the server, what could be wrong? - sydney18 commented on July 9th 19 at 13:35
sometimes /etc/init.d/networking restart does not raise the interface, but the reset will help. (if the interfaces are all correctly spelled) - Garland36 commented on July 9th 19 at 13:38
: can you get in touch tete-a-tete? - sydney18 commented on July 9th 19 at 13:41
July 9th 19 at 13:22
# ifconfig eth0 up ?

and what version of Debian ?
nothing happened. 8th - sydney18 commented on July 9th 19 at 13:25
July 9th 19 at 13:24
ifconfig-a gives eth0 ifup runs without errors?
writes ignore - sydney18 commented on July 9th 19 at 13:27

Find more questions by tags LinuxDebian