pastebin - collaborative debugging tool
eckelmann.kpaste.net RSS


Status network config mit systemd
Posted by Anonymous on Mon 12th Oct 2020 12:29
raw | new post

  1. Ich muss die bitrate manuell einstellen -> udev?
  2. ================================================
  3. /usr/sbin/ip link set can1 type can bitrate 125000
  4.  
  5. root 00:14 : /usr/lib/systemd/network # cat can0.network
  6. [Match]
  7. Name=can0
  8.  
  9. [CAN]
  10. BitRate=125K
  11.  
  12. Danach sieht es so aus
  13. ======================
  14. root 00:14 : /usr/lib/systemd/network # networkctl
  15. IDX LINK TYPE     OPERATIONAL SETUP    
  16.   1 lo   loopback carrier     unmanaged
  17.   2 can0 can      carrier     configured
  18.   3 can1 can      carrier     configured
  19.   4 eth0 ether    routable    unmanaged
  20.   5 sit0 sit      off         unmanaged
  21.  
  22.  
  23.  
  24. root 00:16 : /usr/lib/systemd/network # ip a
  25. 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
  26.     link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
  27.     inet 127.0.0.1/8 scope host lo
  28.        valid_lft forever preferred_lft forever
  29.     inet6 ::1/128 scope host
  30.        valid_lft forever preferred_lft forever
  31. 2: can0: <NOARP,UP,LOWER_UP,ECHO> mtu 16 qdisc pfifo_fast state UP group default qlen 10
  32.     link/can
  33. 3: can1: <NOARP,UP,LOWER_UP,ECHO> mtu 16 qdisc pfifo_fast state UP group default qlen 10
  34.     link/can
  35. 4: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
  36.     link/ether 00:05:7e:04:47:67 brd ff:ff:ff:ff:ff:ff
  37.     inet 192.168.1.62/24 brd 192.168.1.255 scope global eth0
  38.        valid_lft forever preferred_lft forever
  39.     inet6 fd5c:3d74:f4d7:beef:205:7eff:fe04:4767/64 scope global dynamic mngtmpaddr
  40.        valid_lft 6959sec preferred_lft 3359sec
  41.     inet6 2a02:908:1965:8960:205:7eff:fe04:4767/64 scope global dynamic mngtmpaddr
  42.        valid_lft 6959sec preferred_lft 3359sec
  43.     inet6 fe80::205:7eff:fe04:4767/64 scope link
  44.        valid_lft forever preferred_lft forever
  45. 5: sit0@NONE: <NOARP> mtu 1480 qdisc noop state DOWN group default qlen 1000
  46.     link/sit 0.0.0.0 brd 0.0.0.0

Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.

Syntax highlighting:

To highlight particular lines, prefix each line with {%HIGHLIGHT}




All content is user-submitted.
The administrators of this site (kpaste.net) are not responsible for their content.
Abuse reports should be emailed to us at