issue: not folder of root@localhost:~# ls /sys/class/net/bond0/device/

DEBUG:Cannot replug bond0: cannot read link /sys/class/net/bond0/device: [Errno 2] No such file or directory: '/sys/class/net/bond0/device'

==================================
Ubuntu version: Ubuntu 18.04.1 LTS

root@localhost:~# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 18.04.1 LTS
Release:        18.04
Codename:       bionic

======================

config file as below:
network:
  version: 2
  renderer: networkd
  bonds:
    bond0:
      addresses: [10.10.10.3/24]
      interfaces: [**eth2**, **eth3**]
      parameters:
         mode: active-backup
          primary: eth2

===============================
===issue log===

root@localhost:~# netplan --debug apply
** (generate:5230): DEBUG: 23:00:54.787: Processing input file //etc/netplan/bond_test.yaml..
** (generate:5230): DEBUG: 23:00:54.787: starting new processing pass
** (generate:5230): DEBUG: 23:00:54.787: bond0: setting default backend to 1
** (generate:5230): DEBUG: 23:00:54.788: Generating output files..
** (generate:5230): DEBUG: 23:00:54.788: NetworkManager: definition bond0 is not for us (backend 1)
DEBUG:netplan generated networkd configuration exists, restarting networkd
DEBUG:no netplan generated NM configuration exists
DEBUG:Cannot replug bond0: cannot read link **/sys/class/net/bond0/device:** [Errno 2] No such file or directory: '/sys/class/net/bond0/device'
DEBUG:netplan triggering .link rules for bond0


root@localhost:~# ls /sys/class/net/eth2/device/
driver/          iommu/           modalias         power/           subsystem/
driver_override  iommu_group/     net/             rescan           uevent
root@localhost:~# ls /sys/class/net/bond0/dev_
dev_id    dev_port

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.