Whi is debian 9 ignoring my interfaces?

Kernels & Hardware, configuring network, installing services

Whi is debian 9 ignoring my interfaces?

Postby SystemUser » 2018-08-10 18:38

Hi!

I ran
Code: Select all
apt-get purge network-manager
update-rc.d -f dhcpd remove


I put the following in /etc/network/interfaces
Code: Select all
# This file describes the network interfaces available on your system
# 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

auto eth0
iface eth0 inet static
    address 192.168.1.192
    netmask 255.255.255.0
    gateway 192.168.1.1


Now the problem I have is that ifconfig is now showing me eth0. Why? I also tried manually run ifup eth0 and it said
Code: Select all
Cannot find device "eth0"
Failed to get interface index: No such device


I then found that there is /etc/network/interfaces.d/setup that only described lo. But it didnt help.

Any ideas how to make debian use /etc/interfaces?

ifconfig -a shows me this:
Code: Select all
root@debian-test:~# ifconfig -a
enp0s3: flags=4098<BROADCAST,MULTICAST>  mtu 1500
        ether 08:00:27:b3:47:50  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
Last edited by SystemUser on 2018-08-10 18:45, edited 1 time in total.
SystemUser
 
Posts: 9
Joined: 2018-08-01 19:59


Re: Whi is debian 9 ignoring my interfaces?

Postby Bulkley » 2018-08-10 19:03

When you purged network-manager what else did it remove? Do you still have wpa-supplicant?
Bulkley
 
Posts: 5626
Joined: 2006-02-11 18:35

Re: Whi is debian 9 ignoring my interfaces?

Postby SystemUser » 2018-08-10 19:19

Tnx. enp0s3 helped me.


When you purged network-manager what else did it remove? Do you still have wpa-supplicant?

No, I dont. But now it already works.
SystemUser
 
Posts: 9
Joined: 2018-08-01 19:59


Return to System configuration

Who is online

Users browsing this forum: No registered users and 7 guests

fashionable