Настроил сеть в файле /etc/network/interfaces"
Вот его содержимое:
Код: Выделить всё
# and how to activate them. For more information, see interfaces(5).
source /etc/network/interfaces.d/*
# The loopback network interface
auto lo
iface lo inet loopback
iface enp0s3 inet static
address 192.168.1.15
netmask 255.255.255.0
gateway 192.168.1.1
auto enp0s3
Код: Выделить всё
ifdown enp0s3 && ifup enp0s3
При просмотре настроек ifconfig видит enp0s3
Код: Выделить всё
root@ubuntu:~# ifconfig
enp0s3 Link encap:Ethernet HWaddr 08:00:27:06:02:51
inet addr:192.168.1.15 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::a00:27ff:fe06:251/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:472 errors:0 dropped:0 overruns:0 frame:0
TX packets:289 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:44290 (44.2 KB) TX bytes:46799 (46.7 KB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:8348 errors:0 dropped:0 overruns:0 frame:0
TX packets:8348 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1
RX bytes:618480 (618.4 KB) TX bytes:618480 (618.4 KB)
Может еще требуется сделать какие настройки?