Le 28/02/2018 à 18:14, David Wright a écrit :
$ cat /etc/network/interfaces /etc/network/interfaces.d/directcable
# 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
#
# /etc/interfaces.d/directcable for west 2018-02-25
auto eth0
iface eth0 inet static
address 192.168.2.15/24
Fine. You could also add "allow-hotplug eth0" in case eth0 would be
discovered late.
$ ip a
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group
default qlen 1000
link/ether 00:1c:23:3b:9f:34 brd ff:ff:ff:ff:ff:ff
inet6 fe80::21c:23ff:fe3b:9f34/64 scope link
valid_lft forever preferred_lft forever
The IPv4 address is not configured on eth0. No need to check the
connectivity with ping, it won't work until the IPv4 addresses are
configured on both ethernet interfaces.
After adding the iface stanza, did you restart the system, or start the
interface with "ifup -a" ?