A
A
akgndkut2016-05-18 18:33:34
linux
akgndkut, 2016-05-18 18:33:34

How to set up internet on Debian?

Hello, I need to deal with the Internet on the Debian console, I enter nano /ect/network/interfaces in the console under the nano admin, I change the data to

auto lo
iface lo inet loopback

allow-hotplug eth0
iface eth0 inet static
address пишу айпи сети
netmask здесь маску сети
gateway шлюз
dns-nameservers два днс через пробел
auto eth0

then I create a file, since it is not in etc resolv.conf
nameserver адреса
nameserver адреса

I enter ifconfig, but it gives out only lo, eth0 is not present, the Internet cable is connected, where did I go wrong?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
B
brar, 2016-05-18
@brar

auto eth0 top
comment out allow-hotplug
/etc/init.d/networking restart

S
Slava Kryvel, 2016-05-18
@kryvel

# ifconfig eth0 up ?
what version of debian?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question